Self-Test Programming Fundamentals: Training & Consulting Training & Consulting
Self-Test Programming Fundamentals: Training & Consulting Training & Consulting
Document: e0824test.fm
05 March 2019
[_] [c] C#
[_] [e] C
2. In programming, a series of logically ordered steps that lead to a required result is called
O (a) a compiler
O (b) a program
O (d) an algorithm
O (a) 1GL
O (b) 2GL
O (c) 3GL
O (d) 4GL
O (a) JavaScript
O (b) HTML
O (c) COBOL
O (d) XML
5. Which of the following converts source code into machine code at each runtime?
O (a) linker
O (b) compiler
O (c) interpreter
7. Assuming that + and * are arithmetic operators (addition and multiplication), to what does the
expression 2 + 4 * 5 + 1 evaluate?
O (a) 36
O (b) 31
O (c) 26
O (d) 23
8. Assuming that = and / are the assignment and division operators, what will be the outcome
of the following code in most programming languages:
x=3
y=7
z = x / (y-7)
O (a) file
O (b) array
O (c) string
O (d) container
11. AND, OR and NOT are logical operators. What data type is expected for their operands?
O (a) integer
O (b) boolean
O (c) decimal
O (d) character
12. In many programming languages, ‘otherwise’ and ‘else’ are part of which building block?
O (a) loop
O (b) counter
O (c) selection
13. What building block does the following Nassi-Shneiderman diagram represent?
O (a) sequence
O (b) selection
O (c) iteration
O (d) function
O (a) tracing
O (b) recursion
O (c) hatching
O (d) nesting
A B C D
O (a) A
O (b) B
O (c) C
O (d) D
A B C D
O (a) A
O (b) B
O (c) C
O (d) D
17. The following is a typical pattern for reading and processing data from a sequential file. What
is hidden behind the question marks? [2 possible answers, independent from each other]
O (a) result = x
O (b) reply x
O (c) send x
O (d) return x
19. ‘Tracing’, ‘stepping’ and ‘breakpoint’ are typical terms belonging to which programming devel-
opment aspect?
O (a) debugging
O (b) compilation
O (a) encapsulation
O (b) inheritance
O (c) recursion
O (d) polymorphism