Студопедия — Which of the following statements - the operator to compare two variables?
Студопедия Главная Случайная страница Обратная связь

Разделы: Автомобили Астрономия Биология География Дом и сад Другие языки Другое Информатика История Культура Литература Логика Математика Медицина Металлургия Механика Образование Охрана труда Педагогика Политика Право Психология Религия Риторика Социология Спорт Строительство Технология Туризм Физика Философия Финансы Химия Черчение Экология Экономика Электроника

Which of the following statements - the operator to compare two variables?






o ==

o equal

o:=

o =

56. What will be equal to the variable a, after executing this code int a; for(a = 0; a < 10; a++) {}?

o 9

o 1

o 10

57. Specify object-oriented programming language

o С++

o Java

o Eiffel

o All answers

The body of any loop is executed as long as its condition...

o true
o false
o there is no condition in the loop

How long will the statements in the loopwhile (x < 100)?

o As long as x is Stam
o As long as x is less than or equal to Stam
o As long as x is strictly less than one hundred
o As long as x is greater than one hundred

60. C + + name suggested

o Ken Thompson
o Donald Knuth
o Rick Massitti
o Bjarne Stroustrup

What programming environment designed for software development?

o MVS, Code::Blocks, QT Creator, AutoCAD, Eclipse

o MVS, NetBeans, QT Creator, RAD Studio, Dev-C++

o MVS, Code::Blocks, QT Creator, RAD Studio, MathCAD

Be printed?

int main() { for (int i = 0; i < 4; ++i) { switch (i) { case 0: std::cout << "0"; case 1: std::cout << "1"; continue; case 2: std::cout << "2"; break; default: std::cout << "D"; break; } std::cout << "."; } return 0; }

o Compile Error in line 10

o 0.1.2.

o 0112.D.

o 011.2.D

o 01.2.D.

Cycle with postcondition?

o do while

o while

o for

64. What are the signs most of the ends of lines of code in C + +?

o;

o,

o:

o.

What is the result of the following code fragment?

?

int x = 0; switch(x) { case 1: cout << " One "; case 0: cout << "null"; case 2: cout << " Hello World "; }

 

o nulPrivet world
o zero
o One
o Hello World

 

66 For what operating system was originally created by the C language?
a) Windows

b) Unix

c) MacOS
d) Linux

e) Dos

f) Android

67 Which of these languages ​​are high-level languages?
a) C++

b) Си

c) C#
d) Java

e) Fortran

f) assembler

68 What do you call a tool that converts the source code into an executable file?
a) compiler

b) CPU

c) debugger
d) compiler

e) optimizer

f) garbage


69 As a sequence of steps to solve the problem?
a) process

b) pseudo

c) block diagram
d) program

e) code

f) algorithm

70 As a language, similar to the programming language?
a) process

b) pseudo

c) block diagram
d) program

e) code

f) algorithm

71 Which of the following commands pseudo suitable for display?
a) goto

b) output

c) print
d) display

e) input

f) get

72How many entry points can have a flow chart?
a) 1

b) 2

c) 3
d) 4

e) 5

f) any number of

73 How operands is a binary operator?
a) 1

b) 2

c) 3
d) 4

e) 5

f) any number of

74 How operands is a unary operator?
a) 1

b) 2

c) 3
d) 4

e) 5

f) any number of

75 How to set a single-line comment in C?
a) /*…*/

b) {…}

c) (…)
d) //…

e) […]

f) <…>

76 How to set a multi-line comment in C?
a) /*…*/

b) {…}

c) (…)
d) //…

e) […]

f) <…>

77 Mark the correct identifikators.
a) int

b) _1

c) $x
d) int1

e) 1float

f) xyz

78 What is a qualifier for the number in octal calculation?
a) %x

b) %o

c) %g
d) %d

e) %f

f) %s

79 What is a qualifier for a real number?
a) %x

b) %o

c) %c
d) %d

e) %f

f) %s

80 C language is case sensitive.
a) yes

b) no

81As indicated by the modulo operation in C?
a) div

b) /

c) /=
d) mod

e) %

f) &

82 Can start with a numeric identifier?
a) yes

b) no

83That will lead the next program:
float x = 10/3;
printf("%f", x);?
a) 3.333333

b) 3.000000

c) 3
d) 3.33

e) 4

f) 3.333

84 Does a C empty type?
a) yes

b) no

85 What operation can be increased by one variable x?
a) x+1

b) x++

c) x+
d) x=+1

e) x++1

f) +1x

86 What preprocessor can create a constant?
a) #include

b) #constant

c) #new
d) #create

e) #make

f) #define

87 What special character moves the cursor to a new line?
a) \n

b) \t

c) \r
d) \ln

e) \newline

f) \a

88 As indicated by a real type in C?
a) int

b) real

c) string
d) char

e) float

f) void

89 As indicated by an integer type in C?
a) int

b) real

c) integer
d) char

e) float

f) void

90 As translated into English by the word variable?
a) integer

b) character

c) variable
d) type

e) string

f) length

91 How many bits in a byte?
a) 2

b) 4

c) 6
d) 8

e) 10

f) 16

92 What is the number 10 in the binary system?
a) 1111111111

b) 1010

c) 100
d) 10

e) 101

f) 110

93 As translated into English by the word line?
a) integer

b) character

c) variable
d) type

e) string

f) length

94 What is the comparison operation is "not equal»?
a) <>

b) =!

c) <=
d) > <

e)!=

f) >=

95 What is the logic operation "or»?
a) or

b) &

c) ||
d) and

e) &&

f) ~

96 What is the logical operation "and»?
a) or

b) &

c) ||
d) and

e) &&

f) ~

97 What is a qualifier for the string?
a) %x

b) %o

c) %c
d) %d

e) %f

f) %s

98 What is a qualifier for a decimal?
a) %x

b) %o

c) %c
d) %d

e) %f

f) %s

99 What do you call a library of mathematical functions?
a) numbers.h

b) math.h

c) stdio.h
d) mathematics.h

e) calculations.h

f) stdafx.h

100 What is a qualifier for the octal?
a) %x

b) %o

c) %c
d) %d

e) %f

f) %s

 

101. The programming language C + + developed

o Ken Thompson

o Niklaus Wirth
o Bjarne Stroustrup
o Donald Knuth

 







Дата добавления: 2015-09-07; просмотров: 421. Нарушение авторских прав; Мы поможем в написании вашей работы!



Аальтернативная стоимость. Кривая производственных возможностей В экономике Буридании есть 100 ед. труда с производительностью 4 м ткани или 2 кг мяса...

Вычисление основной дактилоскопической формулы Вычислением основной дактоформулы обычно занимается следователь. Для этого все десять пальцев разбиваются на пять пар...

Расчетные и графические задания Равновесный объем - это объем, определяемый равенством спроса и предложения...

Кардиналистский и ординалистский подходы Кардиналистский (количественный подход) к анализу полезности основан на представлении о возможности измерения различных благ в условных единицах полезности...

Случайной величины Плотностью распределения вероятностей непрерывной случайной величины Х называют функцию f(x) – первую производную от функции распределения F(x): Понятие плотность распределения вероятностей случайной величины Х для дискретной величины неприменима...

Схема рефлекторной дуги условного слюноотделительного рефлекса При неоднократном сочетании действия предупреждающего сигнала и безусловного пищевого раздражителя формируются...

Уравнение волны. Уравнение плоской гармонической волны. Волновое уравнение. Уравнение сферической волны Уравнением упругой волны называют функцию , которая определяет смещение любой частицы среды с координатами относительно своего положения равновесия в произвольный момент времени t...

Что такое пропорции? Это соотношение частей целого между собой. Что может являться частями в образе или в луке...

Растягивание костей и хрящей. Данные способы применимы в случае закрытых зон роста. Врачи-хирурги выяснили...

ФАКТОРЫ, ВЛИЯЮЩИЕ НА ИЗНОС ДЕТАЛЕЙ, И МЕТОДЫ СНИЖЕНИИ СКОРОСТИ ИЗНАШИВАНИЯ Кроме названных причин разрушений и износов, знание которых можно использовать в системе технического обслуживания и ремонта машин для повышения их долговечности, немаловажное значение имеют знания о причинах разрушения деталей в результате старения...

Studopedia.info - Студопедия - 2014-2024 год . (0.009 сек.) русская версия | украинская версия