Level lnguges C b Си c C d Jv e Fortrn f ssembler3 Wht do you cll tool tht converts the source code into n executble file compiler b CPU c deb.



Работа добавлена на сайт TXTRef.ru: 2019-03-02

Test of programming languages

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

+b) Unix

c) MacOS
d) Linux

e) Dos

f) Android

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

b) Си 

+c) C#
+d) Java

e) Fortran

f) assembler

3
 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


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

b) pseudo 

c) block diagram
d) program 

e) code 

f) algorithm+

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

b) pseudo 

c) block diagram
d) program 

+e) code 

f) algorithm

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

b) output

+c) print
d) display

e) input

f) get

7
 How many entry points can have a flow chart?

Сколько точки входа может иметь блок схема
a) 1 +

b) 2

c) 3
d) 4

e) 5

f) any number of

8
 How operands is a binary operator?
a) 1

b) 2+

c) 3
d) 4

e) 5

f) any number of

9 How operands is a unary operator?
a) 1 +

b) 2

c) 3
d) 4

e) 5

f) any number of

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

b) {…}

c) (…)
d) //… +

e) […]

f) <…>

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

b) {…}

c) (…)
d) //…

e) […]

f) <…>

12
 Mark the correct identifikators.

Отметь правильные идентификаторы
a) int

b) _1

c) $x
d) int1

e) 1float

f) xyz +

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

b) %o +

c) %g
d) %d

e) %f

f) %s

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

b) %o

c) %c
d) %d

+e) %f

f) %s

вопрос убрали15 C language is case sensitive.
a) yes

b) no

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

b) /

c) /=
d) mod

e) % +

f) &

17 Can start with a numeric identifier?
a) yes

b) no +

18
 That 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

вопрос убрали 19 Does a C empty type?
a) yes

b) no +

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

+b) x++

c) x+
d) x=+1

e) x++1

f) +1x

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

b) #constant

c) #new
d) #create

e) #make

+f) #define+

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

b) \t

c) \r
d) \ln

e) \newline

f) \a

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

b) real

c) string
d) char

e) float +

f) void

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

b) real

c) integer
d) char

e) float

f) void

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

+b) character

c) variable
d) type

e) string

f) length

26
 How many bits in a byte?
a) 2

b) 4

c) 6
d) 8 +

e) 10

f) 16

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

b) 1010 +

c) 100
d) 10

e) 101

f) 110

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

b) character

c) variable
d) type

e) string +

f) length

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

b) =!

c) <=
d) > <

e) != +

f) >=

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

b) &

c) || +
d) and

e) &&

f) ~

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

b) &

c) ||
d) and

e) && +

f) ~

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

b) %o

c) %c
d) %d

e) %f

+f) %s

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

b) %o

c) %c
d) %d
+

e) %f

f) %s

34
 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

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

b) %o +

c) %c
d) %d

e) %f

f) %s

36. The programming language C + + developed

Ken Thompson

o Niklaus Wirth
o Bjarne Stroustrup+
o Donald Knuth

???37. Which reserved word program transfers control if the value of a variable or expression of the switch does not match any of the constant expression?

+default

other

all

contingency

38. Which of the following statements is not a cycle?

for

repeat until+

do while

while

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

Real+

double

float

int

????40. What is, by default, returns the operating system software on success?

The program does not return.

+0

1

-1

41. Indicate the correct form of write cycles do while?

// form of writing the operator of cycle do while:

do // start of the cycle do while

{

/* block of statements */;

}

while (/*execution condition of cycle */) // end of cycle do while

// form of writing the operator of cycle do while:

do // start of the cycle do while

{

/* block of statements */;

}

while (/*execution condition of cycle*/); // end of cycle do while

+// form of writing the operator of cycle do while:

do // start of the cycle do while

{

/* block of statements */;

}

while {/* execution condition of cycle */} // end of cycle do while

42. Enter the correct definition of the main function in accordance with the specification of ANSI

void main(void)

+int main()

int main(void)

void main()

43. ????To include the header file in the program in C + +, such as iostream must write:

include #iostream,h;

#include <> с iostream inside the brackets

include (iostreamh)

+#include <>; с iostream.h inside the brackets

44. Simple data types in C + +.

integer – int, real – float or real, character – char

integer – bool, real – float or double, character – string

integer – int, real – float or double, character – string

+integer – int, real – float or double, character – char

45. Cycle with the precondition?

+while

for

do while

46. Which statement does not permit a constant transition from one expression to another?

+break;

Stop;

end;

semicolon

47. What function should contain all the programs in C + +?

program()

system()

+main()

start()

48. Which of the following entries - correct comment in C + +?

*/ Comments */

/* Comments */+

** Comments **

{ Comments }

49. What special characters are used to indicate the beginning and end of the code block?

begin end

( )

{ }+

< >

50. The general format of the operator of multiple choice - switch

switch (switch_expression)

{

case constant1, case constant2: statement1; [break;]

case constantN: statementN; [break;]

[default: statement N+l;]

}

switch (switch_expression)

{

case constant1: statement1; [break;]

case constant2: statement2; [break;]

case constantN: statementN; [break;]

[else: statement N+l;]

}

+switch (switch_expression)

{

case constant1: statement1; [break;]

case constant2: statement2; [break;]

case constantN: statementN; [break;]

[default: statement N+l;]

}

51. Program that translates source program in the source language into an equivalent output of a program on the resulting language is called:

o translator
o interpreter
o scanner
o compiler+

52. Which service sign is placed after the operator case ?

: +

;

-

53. Operator constant declarations

const := ;

+const = ;

const =

????54. Structure variable declarations in C + +

[=];< идент. 2>,…;

[==]; < идент. 2>,…;

[=], < идент. 2>,…;

[:=], < идент. 2>,…;

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

==

equal

:=

=

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

9

1

+10

57. Specify object-oriented programming language

С++

Java

Eiffel

+All answers

Вопрос убрали 58. The body of any loop is executed as long as its condition...

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

59. How long will the statements in the loop while (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

61. What programming environment designed for software development?

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

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

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

62. 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;

}

Compile Error in line 10

0.1.2.

+0112.D.+

011.2.D

01.2.D.

63. Cycle with postcondition?

do while+

while

for

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

;+

,

:

.

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





Другие работы

тема- Решение нелинейных уравнений


Метод хорд итерационный численный метод приближённого нахождения корня уравнения. Эти действия нужно повторять до тех пор пока не получим значен...

Подробнее ...

исследование на обогатимость Исследование на ...


Задача. Задача. Задача. ЗАДАЧА №1 Имеется код матрицы 1 b c d bc bd cd bcd.

Подробнее ...

Юриспруденция Бюджетное право дневное 4 курс ...


Обязательным элементом финансовой системы государства является: финансы Национального фонда Республики Казахстан; B государственные финансы; C ф...

Подробнее ...

. КОДЕКСЫ ПРОФЕССИОНАЛЬНОГО ПОВЕДЕНИЯ И ЭТИКИ...


В каждой стране Ассоциации ПР вырабатывают для себя основные представления о профессиональной деятельности. Фирмачлен Ассоциации обязана вести св...

Подробнее ...