Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
c__test.docx
Скачиваний:
30
Добавлен:
25.02.2016
Размер:
2.09 Mб
Скачать
  1. Сommand "\t" means:

a) Position the screen cursor to the beginning of the next line.

b)Move the screen cursor to the next tab stop.

c)Position the screen cursor to the beginning of the current line

d)Sound the system bell.

e)Used to print a backslash character.

  1. Find the error:

a) there are no errors in the code

b) error in line //1

c) error in line //2

d) error in line //3

e) error in line //4

  1. What does “cerr” command mean?

a)Standard input stream

b)Standard error stream

c)Standard assignmentstream

d)Standard output stream

e) Standartdcomment stream

  1. Which of the following is not a data type in C + +?

a)int

b)real

c)float

d)double

e)char

  1. Programming Language C + + developed by:

a)Bjarne Stroustrup

b)Niklaus Wirth

c)Donald Knuth

d)Ken Thompson

e)Tom Kriving

  1. Which sign is placed after the operator “case”?

a) -

b) }

c) ;

d) :

e) >

  1. Which function should contain all programs in the C + +?

a)start( )

b)main()

c)system()

d)program()

e) void( )

  1. "a" in line //1 equal to ?

  1. This program will not happen endless cycle.

  2. 1

  3. 0

  4. -1

  5. This code does not compile it has a syntax error.

  1. Find error statement:

a)77.11+5

b)21%6

c)3.14 % 3

d)21-6

e) 3.14 * 3

  1. Determine the value of x after executing series of commands:

a) -3

b) -4

c) 5

d) 0

e) error

  1. Determine the value of X after executing series of commands:

a)5

b)2

c)4

d)7

e)9

  1. Determine the value of x after executing a series of commands:

a)11

b)44

c)25

d)30

e)22

  1. Which of the following items correct comment in C++?

a) {comment}

b) /*comment*/

c) #comment

d) /*comment*/

e) */comment*/

  1. What signs ends most lines of code in C ++?

a) comma

b) dot

c) semi-colon

d) colon

e) quote

  1. Which of the following statements is not a cycle in C + +?

a) for

b) while

c) do while

d) if

e) none of them

  1. Cycle with postcondition ?

a) for

b) while

c) do while

d) if else

e) none of them

  1. Specify the object- oriented programming language

a) C

b) Pascal

c) Java

d) C++

e) all of them

  1. What the operator does not allow the transition from one to another constant expression?

a) stop

b) end

c) break

d) bool

e) endl

  1. What will be in output:

a) 0.1.2

b) 0.1.2.D

c) 0.1.2.

d) 0.1

e) 1.2.D

  1. Which of the following is not correct variable type?

a) int

b) double

c) char

d) float

e) real

  1. Evaluate (1 && !(0 || 1))

a) false

b) true

c) unevaluatable

d) not given

e) incorrect statement

  1. Find the logical operator AND

a) ||

b) &

c) &&

d) #

e) !

  1. Find the error:

a) c+=5

b) d-=4

c) e=*5

d) f/=6

e) g%=9

  1. Find the logical operator NOT?

a) &&

b) ||

c) ::

d) =!

e) !=

  1. What will be the variable a equal to after this code

a) 0

b) 10

c) 1

d) 9

e) 11

  1. Operator________ used to make decisions:

a) cout

b) for

c) if

d) break

e) cin

  1. Which of operations does not apply to the comparison operation?

a) =

b) <

c) >

d) ==

e) none of them

  1. What will be the result of the operators:

a) x=4

b) x=-4

c) x=0

d) x=2

e) x=-2

  1. This statement can be used to implement any counter-controlled loop:

a) while

b) bool

c) true

d) break

e) switch

  1. In this code forgotten:

a) #include <iomanip>

b) else

c) return true

d) break

e) this code is correct

  1. Operator _____ used to output:

a) output

b) fin

c) cin

d) cout

e) fout

  1. If expression1 – false and expression2 –false, than expression1 || expression2 is:

a) false

b) true

c) false and true

d) unevaluatable

e) nothing

  1. Logical operators are used to:

a) form simple conditions by combining simple conditions

b) form one code

c) form more complex conditions by combining simple conditions

d) form long code

e)form simple code

  1. Which of them is increment:

a) -=

b)+=

c)++

d)--

e)=+

  1. Antonym of increment:

a) dicrement

b) decrement

c) uncrement

d) ifcrement

e) decrement

  1. The logical operator || means:

a) not

b) end

c) and

d) or

e) if

  1. Using operator = = for:

a) more than

b) less than

c) assignment

d) contrast

e) equality

  1. ________contains function prototype for rand?

a) <iostream>

b) <cstdlib>

c) <iomanip>

d) <cmath>

e) <cstring>

  1. No need to explicitly set the seed each time, and for this need to use?

a) time

b) srand

c) array

d) class

e) modul

  1. Tells compiler argument type and return type of function:

a) function prototype

b) function date type

c) function variable

d) function name

e) function constructor

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]