Question 1
Question
In C ++, the permissible variations in the names of identifiers
Answer
-
The sign '_' and digits.
-
Any characters with ASCII-code older than 128.
-
The "@" and numbers.
-
Any characters except those used in arithmetic and logical operations.
-
signs "$", "@", and letters.
Question 2
Question
An enumerated data type in C ++
Answer
-
enum
-
int
-
double
-
float
-
char
Question 3
Question
"False" in C ++ takes the form and means:
Answer
-
one of the two values of type bool
-
lack of communication with the processor peripherals
-
the temporary suspension of the computer
-
the need to perform a "warm start"
-
errors when entering information
Question 4
Question
"True" in C ++ takes the form and means:
Answer
-
1
-
lie
-
the result of the correct compilation of the program
-
the absence of errors when entering information
-
the absence of errors in the derivation of the information
Question 5
Question
The result of a logical operation in C ++ is
Question 6
Question
The result of a conditional expression in C ++ is:
Answer
-
the truth - true || false - false
-
true - false or false - true
-
the truth - or false 2 - 1
-
Inequality
-
conclusion
Question 7
Question 8
Question
Standard char data type in C ++ defines:
Question 9
Question
Standard types of data that exist in C ++:
Answer
-
bool
-
integer
-
real
-
shared
-
protected
Question 10
Question
Standard data types do not exist in C ++:
Answer
-
boolean
-
bool
-
string
-
int
-
float
Question 11
Question
The modifier const in C ++ allows you to declare several types:
Question 12
Question
In C ++, the permissible variations in the names of identifiers:
Answer
-
Uppercase and lowercase letters.
-
Any characters with ASCII-code older than 128.
-
The "@" and numbers.
-
The "_" number and the sign "#", "@".
-
Any characters except those used in arithmetic and logical operations.
Question 13
Question
The access to the members of the class indicated by:
Answer
-
protected
-
firstprivate
-
interface
-
article
-
set..of
Question 14
Question
Permitted data types in C ++:
Answer
-
string.
-
referenced.
-
the column.
-
Numeric.
-
system.
Question 15
Question
Expressions with the correct execution of the assignment in the language C ++:
Answer
-
char a = '123';
-
char a [] = {123};
-
int a [] = "123";
-
int a [4] = '123';
-
a char [4] = '123';
Question 16
Question
Key words in the language C ++:
Answer
-
this
-
endl
-
constructor
-
size_t
-
of
Question 17
Question
Symbols s, x, u, controls the formation of the C language for printf means the expected type of input:
Question 18
Question
Symbols X,o,s, controls the formation of the C language for printf means the expected type of input:
Answer
-
hexadecimal
-
string
-
unsigned decimal number
-
floating-point numbers
-
point-number
Question 19
Question
Enter standard data types char, double, float in C ++?
Answer
-
floating point type, text type, floating point double-length type
-
text type, integer type, boolean type
-
empty type, character type, integer type
-
enumerated type, floating point double-lengh type, text type
-
integer type, primitive type, structure type
Question 20
Question
Correctly declare variables in C ++ :
Question 21
Question
The correct ranges of data types in C ++ :
Answer
-
unsigned int 0 to 4 294 967 295
-
bool from -126 to 126
-
short int from 0 to 254
-
float from -2,147,483,648 to 2,147,483,647
-
double from -2,147,483,648 to 2,147,483,647
Question 22
Question
Acceptable simple types in C ++ are:
Answer
-
unsigned long
-
unsigned bool
-
long char
-
long float
-
unsigned float
Question 23
Question
Two bytes of RAM in C ++ occupy :
Answer
-
unsigned int
-
short float
-
word
-
boolean
-
small int
Question 24
Question
Real types in C ++ are declared :
Answer
-
double
-
floating
-
enum
-
single
-
real
Question 25
Question
Valid variable names in C ++ are:
Answer
-
Asm
-
312m $
-
1var
-
% Asm
-
1str
Question 26
Question
The scope of the variables in the language C ++:
Answer
-
Local visible within the function.
-
Global-interclass visible to all child classes.
-
Global, visible within a block enclosed in braces.
-
Specific global-visible code within a distance of 64 kBt.
-
Hidden-local, visible within a single expression current operator.
Question 27
Question
The correct description of the standard data types in C ++ :
Answer
-
void empty type
-
enum text type
-
enum integer type
-
float empty type
-
void type text
Question 28
Question
The correct description of the standard data types in C ++ :
Question 29
Question
The correct description of the standard data types in C ++ :
Question 30
Question
The correct description of the standard data types in C ++ :
Question 31
Question
The correct description of the standard data types float, int, void in C ++ :
Answer
-
floating point type,empty type,integer type
-
enumerated type,empty type,integer type
-
empty type,integer type,structure type
-
text type,empty type,structure type
-
structure type, integer type, floating type
Question 32
Question
The correct description of the standard data types float, enum, void in C ++ :
Answer
-
enumerated type, empty type, floating point type
-
empty type, integer type, boolean type
-
text type, floating point type, structure type
-
the type of floating-point double-length, primitive type, structure type
-
floating point type, text type, enumerated type
Question 33
Question
The correct description of the standard data types char, enum, void in C ++ :
Answer
-
enumerated type,text type, empty type
-
floating point type,text type, empty type
-
the type of floating-point double-length,text type, empty type
-
integer type,text type, empty type
-
a primitive type,text type, empty type
Question 34
Question
The correct description of the standard data types char, double, float in C ++ :
Answer
-
floating point type, text type, floating point double length type
-
text type, empty type, integer type
-
empty type, enumerated type, floating point type
-
enumerated type, character type, boolean type
-
integer type, structure type, integer type
Question 35
Question
The correct description of the standard data types enum, double, float in C ++ :
Answer
-
the type of floating-point double-length,floating point type,enumerated type
-
empty type,structure type,the type of floating-point double-length
-
text type,structure type,the type of floating-point double-length
-
enumerated type,structure type,the type of floating-point double-length
-
integer type,structure type,the type of floating-point double-length
Question 36
Question
The correct description of the standard data types int, double, float in C ++ :
Answer
-
floating point type, floating point double-lenth type, integer type
-
empty type, text type, primitive type
-
text type, integer type, floating point type
-
the type of floating-point double-length, empty type, structure type
-
a primitive type, integer type, floating point double-length type
Question 37
Question
The variables X, Y provided: int X=1, Y=15; X=--X-Y; if (Y<15) X+=15; else X-=15 have the following results:
Answer
-
X= -30, Y= 15
-
X= -31
-
X=-31
-
Y=-15
-
Y=30
Question 38
Question
The variables X, Y, Z provided: int X=2, Y=1, Z=2; X+=Y+++Z; if (X<3) X++have the following results:
Question 39
Question
The variables X, Y, Z provided: int X=2, Y=1, Z=2; X+=Y+--Z; if (X<3) X++have the following results:
Question 40
Question
The variables X, Y, Z provided: int X=2, Y=1, Z=2; X+=Y++-Z; if (X<3) X++have the following results:
Question 41
Question
The variables X, Y, Z приусловии: int X=2, Y=1, Z=2; X+=Y---Z; if (X<3) X++have the following results:
Question 42
Question
The variables X, Y, Zprovided: int X=2, Y=1, Z=2; X-=Y+--Z; if (X<3) X++have the following results:
Question 43
Question
The variables X, Y, Z provided: int X = 2, Y = 1, Z = 2; X- = Y ++ - Z; if (X <3) X++ have the following results:
Answer
-
Z = 2
-
X= 5
-
Y = 4
-
X=1
-
X=30
Question 44
Question
The variables X, Y, Z provided: int X = 2, Y = 1, Z = 2; X- = Y +++ Z; if (X <3) X++ have the following results:
Question 45
Question
The variables X, Y, Z provided: int X = 2, Y = 1, Z = 2; X- = Y --- Z; if (X <3) X ++ have the following results: