cpp

Description

Quiz on cpp, created by Lazzat Yeleussizova on 22/12/2017.
Lazzat Yeleussizova
Quiz by Lazzat Yeleussizova, updated more than 1 year ago
Lazzat Yeleussizova
Created by Lazzat Yeleussizova almost 7 years ago
22
1

Resource summary

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
Answer
  • true - true or false - false
  • a turnkey solution
  • the derivation of
  • values
  • a mathematical proposition

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
Data - is:
Answer
  • 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

Question 8

Question
Standard char data type in C ++ defines:
Answer
  • to describe the type of ASCII Code
  • number type
  • integer type
  • boolean type
  • enumerated type

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:
Answer
  • constants
  • non-constants
  • data types with sign
  • Local
  • changes as a result of external events

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:
Answer
  • hexadecima
  • floating-point numbers of double-length
  • unsigned decimal number
  • a decimal number
  • string

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 ++ :
Answer
  • char str [ 256 ] = " 12345" ;
  • int pi = 3.1415;
  • real a = 0.1;
  • const N = 10;
  • A = 10 char

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 ++ :
Answer
  • double type floating-point double-length
  • void type text
  • double floating point type
  • void type floating-point
  • char empty type

Question 29

Question
The correct description of the standard data types in C ++ :
Answer
  • enum enumeration type
  • void floating point type
  • void type text
  • int floating point type
  • double floating point type

Question 30

Question
The correct description of the standard data types in C ++ :
Answer
  • enum - enumerated type
  • int - empty type
  • char - type text
  • bool - type floating-point double-length
  • double - floating point type

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:
Answer
  • X=5 
  • X=4 
  • X=2 
  • X=3 
  • X=1

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:
Answer
  • Z=1
  • X=0
  • X=3 
  • X=2 
  • X=1 

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:
Answer
  • Z=2
  • X=4 
  • X=3 
  • X=-2
  • X=1 

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:
Answer
  • Y=0
  • X= 5 
  • Y=4 
  • X=4
  • X=3 

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:
Answer
  • Z=1
  • X= 5 
  • Y=4 
  • X=0 
  • X=5 

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:
Answer
  • Z = 2
  • X= 5
  • Y = 4
  • X=2 
  • X=3 

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:
Answer
  • Z = 2
  • X= 0 
  • Y = 4
  • X=2 
  • X=9
Show full summary Hide full summary

Similar

CPP - Module 3
kavita.batra
CPP - Module 2
kavita.batra
CPP - Module 4
kavita.batra
CPP - Module 1
kavita.batra
CPP - Module 6
kavita.batra
CPP - Module 9
kavita.batra
CPP - Module 5
kavita.batra
Waves
kate.siena
Y11 SACE Biology Ecology Flash Cards
Ben Goetze
Moon Phases Quiz
Kennedy Kerr