Content: Синергия Основы программирования на С++ Ответы на 81 вопрос.pdf (284.50 KB)
Uploaded: 09.10.2021

Positive responses: 0
Negative responses: 0

Sold: 6
Refunds: 0

$3
Synergy Fundamentals of C ++ Programming (test with answers to 81 questions) 2021-2022. (97 out of 100 points)

In C ++, the bool data type is ...
floating point type, increased precision
an integer type, usually containing members of the ASCII encoding
an integer type that can have one of two values: true or false
smallest floating point type

The #include directive includes the contents of the specified file into the program, the name of which can be specified in two ways, in particular: ...
#include //my_file.h///
# include # my_file.h
#include
#include "my_file.h"

To use the method of passing input data, which are complex structured variables, in the list of formal parameters, before the constant parameter, a prefix is ​​put ...
//
#
const
&

In C ++, the compiler can work with variables of different types, i.e. if you assign an integer variable the value of a real variable, then only the integer part will be assigned and ...
there will be an implicit data type conversion
an explicit data type conversion will occur
there will be an explicit or implicit data type conversion
no data type conversion will occur

In C ++ language ...
index counting always starts at 0
index counting always starts at 1
counting can start from any number after 1
you can set the range of change of indices in any range (even negative)
counting can start from either 0 or 1

In the C ++ language, it is recommended to initially use when writing programs
...
only lowercase letters
only uppercase letters
lowercase and uppercase letters
numbers and letters (lowercase and uppercase)


The output parameters are ...
the current data for the function
function result
input data for the function
a set of data, in the processing of which the purpose of the algorithm lies
parameters passed by reference without the right to change them

Data type range fl oat ̶…
1 byte
2 bytes
4 bytes
8 baht

In C ++, each index is written in ...
own square brackets [...]
own parentheses (...)
common curly braces {…}
own parentheses |… |

Preprocessor directives start with ..., which must be the very first character of the line
Ampersand (&)
"Right slash" ("/")
Sharp (#)
Plus (+)

To access the components of a file ...
index used
a pointer is used
both index and pointer can be used

To process the elements of a two-dimensional array, on the lines of which some conditions are imposed, it is required when viewing this array inside the loops to set a condition on ...
element
element or line index (depending on the condition of the problem)
row or column index (depending on the condition of the problem)

If the elements of multidimensional arrays are accessed using indexed variables a [1] [1], then access to the same element using pointers will be ...
* (* (a + 1) +1)
a [1,1]
a | 1 || 1 |
* (a + 1) +1
a [1 :: 1]

Speaking about one-dimensional arrays, it can be argued that ...
an array is a variable of complex structure and therefore cannot be processed entirely
the array can be processed entirely
all actions with arrays should be carried out element by element, i.e. addressing directly to each of its cells

If you make a single cyclic shift of the array elements to the right, then ...
will move the content of the last cell to the first
will move the contents of the first cell to the last
an additional cell will be created

If the file associated with the stream, which is opened in the w + open mode, already exists, then ...
all information from it is erased
an error is issued during program execution
information from it is not erased, you can write to the end of the file

If the elements of a one-dimensional array are a simple numeric data type, then such arrays are called ...

... there is a process of recording the values ​​of variables at each step of the program

Identifiers described in a function are local to it if ...
working with them is possible only inside this function an
Identifiers are ...
statements about which it can be said to be true or false
variable names of constants, procedures, functions, etc.
an atomic part of a C ++ program that can be associated with a natural language sentence

Change the mode of working with a file ...
is possible only after closing the file
impossible
possible only while working with a file

Variable names of constants, procedures, functions, etc. are called ...
identifiers
compilers
operators
data types
Formal and Actual Parameter Names ...
cannot match
may coincide, but this will affect the execution of the program
may coincide and this will not affect the execution of the program, but it can lead to problems in understanding the algorithm of work

The main types of the language in C ++ include ... - type with floating point, increased precision
char
bool
double
__wchar_t
float
int

Unary operations include ...
division of operands of arithmetic type (if the operands are integer, then integer division is performed)
multiplication of operands
getting remainder from division of integer operands
getting the address of the operand
addressing (dereferencing)
logical negation (NOT)

Square matrices are matrices in which ...
all elements of the matrix are equal to zero
the number of elements in a row is equal to the number of elements in a column, i.e. M = N
the number of elements in a row / column depends on which column / row it is contained in
not all cells are filled with elements

Local data is written to an area of ​​memory called ...
data segment (static segment) and are constantly available throughout the entire operation of the program
stack and are available only during the operation of the function in which they are described
data segment (static segment) and are available only during the operation of the function in which they are described
stack and are constantly available throughout the entire operation of the program

... an array is a one-dimensional array, each element of which is its own one-dimensional array, or, in other words, it is a data type whose elements are of the same type and each of them is characterized by a unique pair of numbers: a row index and a column index

The most natural objects that are usually stored in two-dimensional arrays are ...
numbers
letters
symbols

The beginning of a one-line comment in C ++ is indicated by the combination ...
"//"
"#"
"* /"
"?"
"&"

Operations new and delete ..., since the allocated memory must be freed after using it
used in pairs
only used individually
can be used in pairs, but are most often used alone

Variable description can be done ...
only as a declaration containing information about the memory class and the type of the variable
either as a declaration or as a definition
only as a definition, along with information about the memory class and the type of the variable
instructing to allocate memory


The description of the formal parameters of the function algorithm occurs ...
only twice
unlimited number of times
only once

... memory is the memory allocated to the program for its operation minus the data segment, the stack in which the local variables of the subroutines are located, and the program body itself

... parameters are local variables required to describe the algorithm of a function, they are described in its header and used in its definition
formal
input
actual
weekends

If the declaration of global variables occurs in the main program, then during its operation the values ​​of the global variables are written to a memory area called ...
data segment (static segment) and are constantly available throughout the entire operation of the program
stack and are available only during the operation of the function in which they are described
data segment (static segment) and are available only during the operation of the function in which they are described
stack and are constantly available th
No feedback yet