Test of programming languages
1 For what operating system was originally created by the C language? b) Unix c) MacOS e) Dos f) Android 2 Which of these languages are high-level languages? b) Си c) C# e) Fortran f) assembler 3 What do you call a tool that converts the source code into an executable file? b) CPU c) debugger e) optimizer f) garbage
b) pseudo c) block diagram e) code f) algorithm 5As a language, similar to the programming language? b) pseudo c) block diagram e) code f) algorithm 6 Which of the following commands pseudo suitable for display? b) output c) print e) input f) get 7How many entry points can have a flow chart? b) 2 c) 3 e) 5 f) any number of 8How operands is a binary operator? b) 2 c) 3 e) 5 f) any number of 9 How operands is a unary operator? b) 2 c) 3 e) 5 f) any number of 10How to set a single-line comment in C? b) {…} c) (…) e) […] f) <…> 11How to set a multi-line comment in C? b) {…} c) (…) e) […] f) <…> 12Mark the correct identifikators. b) _1 c) $x e) 1float f) xyz 13 What is a qualifier for the number in octal calculation? b) %o c) %g e) %f f) %s 14What is a qualifier for a real number? b) %o c) %c e) %f f) %s 15C language is case sensitive. b) no 16As indicated by the modulo operation in C? b) / c) /= e) % f) & 17Can start with a numeric identifier? b) no 18That will lead the next program: b) 3.000000 c) 3 e) 4 f) 3.333 19Does a C empty type? b) no 20What operation can be increased by one variable x? b) x++ c) x+ e) x++1 f) +1x 21What preprocessor can create a constant? b) #constant c) #new e) #make f) #define 22 What special character moves the cursor to a new line? b) \t c) \r e) \newline f) \a 23As indicated by a real type in C? b) real c) string e) float f) void 24As indicated by an integer type in C? b) real c) integer e) float f) void 25As translated into English by the word variable? b) character c) variable e) string f) length 26How many bits in a byte? b) 4 c) 6 e) 10 f) 16 27What is the number 10 in the binary system? b) 1010 c) 100 e) 101 f) 110 28As translated into English by the word line? b) character c) variable e) string f) length 29 What is the comparison operation is "not equal»? b) =! c) <= e)!= f) >= 30What is the logic operation "or»? b) & c) || e) && f) ~ 31What is the logical operation "and»? b) & c) || e) && f) ~ 32What is a qualifier for the string? b) %o c) %c e) %f f) %s 33What is a qualifier for a decimal? b) %o c) %c e) %f f) %s 34 What do you call a library of mathematical functions? b) math.h c) stdio.h e) calculations.h f) stdafx.h 35What is a qualifier for the octal? b) %o c) %c e) %f f) %s
36. The programming language C + + developed o Ken Thompson o Niklaus Wirth
|