Lazzat Yeleussizova
Quiz by , created more than 1 year ago

Quiz on cpp, created by Lazzat Yeleussizova on 22/12/2017.

21
1
0
No tags specified
Lazzat Yeleussizova
Created by Lazzat Yeleussizova over 6 years ago
Close

cpp

Question 1 of 45

1

In C ++, the permissible variations in the names of identifiers

Select one of the following:

  • 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.

Explanation

Question 2 of 45

1

An enumerated data type in C ++

Select one of the following:

  • enum

  • int

  • double

  • float

  • char

Explanation

Question 3 of 45

1

"False" in C ++ takes the form and means:

Select one of the following:

  • 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

Explanation

Question 4 of 45

1

"True" in C ++ takes the form and means:

Select one of the following:

  • 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

Explanation

Question 5 of 45

1

The result of a logical operation in C ++ is

Select one of the following:

  • true - true or false - false

  • a turnkey solution

  • the derivation of

  • values

  • a mathematical proposition

Explanation

Question 6 of 45

1

The result of a conditional expression in C ++ is:

Select one of the following:

  • the truth - true || false - false

  • true - false or false - true

  • the truth - or false 2 - 1

  • Inequality

  • conclusion

Explanation

Question 7 of 45

1

Data - is:

Select one of the following:

  • is a set of memory cells, having certain properties

  • a set of numbers

  • the sequence of actions

  • a sequence of characters

  • the set of libraries

Explanation

Question 8 of 45

1

Standard char data type in C ++ defines:

Select one of the following:

  • to describe the type of ASCII Code

  • number type

  • integer type

  • boolean type

  • enumerated type

Explanation

Question 9 of 45

1

Standard types of data that exist in C ++:

Select one of the following:

  • bool

  • integer

  • real

  • shared

  • protected

Explanation

Question 10 of 45

1

Standard data types do not exist in C ++:

Select one of the following:

  • boolean

  • bool

  • string

  • int

  • float

Explanation

Question 11 of 45

1

The modifier const in C ++ allows you to declare several types:

Select one of the following:

  • constants

  • non-constants

  • data types with sign

  • Local

  • changes as a result of external events

Explanation

Question 12 of 45

1

In C ++, the permissible variations in the names of identifiers:

Select one of the following:

  • 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.

Explanation

Question 13 of 45

1

The access to the members of the class indicated by:

Select one of the following:

  • protected

  • firstprivate

  • interface

  • article

  • set..of

Explanation

Question 14 of 45

1

Permitted data types in C ++:

Select one of the following:

  • string.

  • referenced.

  • the column.

  • Numeric.

  • system.

Explanation

Question 15 of 45

1

Expressions with the correct execution of the assignment in the language C ++:

Select one of the following:

  • char a = '123';

  • char a [] = {123};

  • int a [] = "123";

  • int a [4] = '123';

  • a char [4] = '123';

Explanation

Question 16 of 45

1

Key words in the language C ++:

Select one of the following:

  • this

  • endl

  • constructor

  • size_t

  • of

Explanation

Question 17 of 45

1

Symbols s, x, u, controls the formation of the C language for printf means the expected type of input:

Select one of the following:

  • hexadecima

  • floating-point numbers of double-length

  • unsigned decimal number

  • a decimal number

  • string

Explanation

Question 18 of 45

1

Symbols X,o,s, controls the formation of the C language for printf means the expected type of input:

Select one of the following:

  • hexadecimal

  • string

  • unsigned decimal number

  • floating-point numbers

  • point-number

Explanation

Question 19 of 45

1

Enter standard data types char, double, float in C ++?

Select one of the following:

  • 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

Explanation

Question 20 of 45

1

Correctly declare variables in C ++ :

Select one of the following:

  • char str [ 256 ] = " 12345" ;

  • int pi = 3.1415;

  • real a = 0.1;

  • const N = 10;

  • A = 10 char

Explanation

Question 21 of 45

1

The correct ranges of data types in C ++ :

Select one of the following:

  • 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

Explanation

Question 22 of 45

1

Acceptable simple types in C ++ are:

Select one of the following:

  • unsigned long

  • unsigned bool

  • long char

  • long float

  • unsigned float

Explanation

Question 23 of 45

1

Two bytes of RAM in C ++ occupy :

Select one of the following:

  • unsigned int

  • short float

  • word

  • boolean

  • small int

Explanation

Question 24 of 45

1

Real types in C ++ are declared :

Select one of the following:

  • double

  • floating

  • enum

  • single

  • real

Explanation

Question 25 of 45

1

Valid variable names in C ++ are:

Select one of the following:

  • Asm

  • 312m $

  • 1var

  • % Asm

  • 1str

Explanation

Question 26 of 45

1

The scope of the variables in the language C ++:

Select one of the following:

  • 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.

Explanation

Question 27 of 45

1

The correct description of the standard data types in C ++ :

Select one of the following:

  • void empty type

  • enum text type

  • enum integer type

  • float empty type

  • void type text

Explanation

Question 28 of 45

1

The correct description of the standard data types in C ++ :

Select one of the following:

  • double type floating-point double-length

  • void type text

  • double floating point type

  • void type floating-point

  • char empty type

Explanation

Question 29 of 45

1

The correct description of the standard data types in C ++ :

Select one of the following:

  • enum enumeration type

  • void floating point type

  • void type text

  • int floating point type

  • double floating point type

Explanation

Question 30 of 45

1

The correct description of the standard data types in C ++ :

Select one of the following:

  • enum - enumerated type

  • int - empty type

  • char - type text

  • bool - type floating-point double-length

  • double - floating point type

Explanation

Question 31 of 45

1

The correct description of the standard data types float, int, void in C ++ :

Select one of the following:

  • 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

Explanation

Question 32 of 45

1

The correct description of the standard data types float, enum, void in C ++ :

Select one of the following:

  • 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

Explanation

Question 33 of 45

1

The correct description of the standard data types char, enum, void in C ++ :

Select one of the following:

  • 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

Explanation

Question 34 of 45

1

The correct description of the standard data types char, double, float in C ++ :

Select one of the following:

  • 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

Explanation

Question 35 of 45

1

The correct description of the standard data types enum, double, float in C ++ :

Select one of the following:

  • 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

Explanation

Question 36 of 45

1

The correct description of the standard data types int, double, float in C ++ :

Select one of the following:

  • 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

Explanation

Question 37 of 45

1

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:

Select one of the following:

  • X= -30, Y= 15

  • X= -31

  • X=-31 

  • Y=-15 

  • Y=30

Explanation

Question 38 of 45

1

The variables  X, Y, Z provided: int X=2, Y=1, Z=2; X+=Y+++Z; if (X<3)   X++have the following results:

Select one of the following:

  • X=5 

  • X=4 

  • X=2 

  • X=3 

  • X=1

Explanation

Question 39 of 45

1

The variables X, Y, Z provided:  int X=2, Y=1, Z=2; X+=Y+--Z; if (X<3)   X++have the following results:

Select one of the following:

  • Z=1

  • X=0

  • X=3 

  • X=2 

  • X=1 

Explanation

Question 40 of 45

1

The variables  X, Y, Z provided: int X=2, Y=1, Z=2; X+=Y++-Z; if (X<3)   X++have the following results:

Select one of the following:

  • Z=2

  • X=4 

  • X=3 

  • X=-2

  • X=1 

Explanation

Question 41 of 45

1

The variables  X, Y, Z приусловии: int X=2, Y=1, Z=2; X+=Y---Z; if (X<3)   X++have the following results:

Select one of the following:

  • Y=0

  • X= 5 

  • Y=4 

  • X=4

  • X=3 

Explanation

Question 42 of 45

1

The variables  X, Y, Zprovided:  int X=2, Y=1, Z=2; X-=Y+--Z; if (X<3)   X++have the following results:

Select one of the following:

  • Z=1

  • X= 5 

  • Y=4 

  • X=0 

  • X=5 

Explanation

Question 43 of 45

1

The variables X, Y, Z provided: int X = 2, Y = 1, Z = 2; X- = Y ++ - Z; if (X <3) X++ have the following results:

Select one of the following:

  • Z = 2

  • X= 5 

  • Y = 4

  • X=1 

  • X=30

Explanation

Question 44 of 45

1

The variables X, Y, Z provided: int X = 2, Y = 1, Z = 2; X- = Y +++ Z; if (X <3) X++ have the following results:

Select one of the following:

  • Z = 2

  • X= 5

  • Y = 4

  • X=2 

  • X=3 

Explanation

Question 45 of 45

1

The variables X, Y, Z provided: int X = 2, Y = 1, Z = 2; X- = Y --- Z; if (X <3) X ++ have the following results:

Select one of the following:

  • Z = 2

  • X= 0 

  • Y = 4

  • X=2 

  • X=9

Explanation