Questions and CORRECT Answers
Stored program concept (von Neumann machine) is one of the most fundamental concepts in
computer science. What programming paradigm most closely follows this concept? - CORRECT
ANSWER - Imperitive
What computing paradigm can solve a problem by describing the requirements, without writing
code in a step-wise fashion to solve the problem. - CORRECT ANSWER - Logic
What computing paradigm enforces stateless (no variable allowed) programming? - CORRECT
ANSWER - Functional
What is a feature of object oriented computing? - CORRECT ANSWER - State encapsulation
In contrast to Web 1.0 what is the key function of Web 2.0? - CORRECT ANSWER - Web is
the computing platform
Because of hardware constraints early programming languages emphasized - CORRECT
ANSWER - Efficiency
What factor is generally considered more important in modern programming language design? -
CORRECT ANSWER - Readability
The main idea of structured programming is to - CORRECT ANSWER - Reduce the types of
control structures
Implicit type conversion is commonly referred to as: - CORRECT ANSWER - Coercion
In the following pseudocode which programming language allows the mixed use of data types?
, int i = 1; char c = 'a' ; // declaration & initiali
c = c + I; - CORRECT ANSWER -C
In the layers of programming language structure, which layer performs type checking? -
CORRECT ANSWER - contextual
Which of the following statement is correct if language is strongly typed select all that applies.
A. Each variable in a program has a single type associated with it.
B. Variable type can be unknown at compilation time
C. Type errors are always reported.
D. Coercion is automatically allowed. - CORRECT ANSWER - A,C
Which command (construct) has a loop when expressed in syntax graphs? - CORRECT
ANSWER - Switch
The contextual structure of a programming language defines - CORRECT ANSWER - The
static semantics that will be checked by the compiler
If a program contains an error that divide a number by zero at execution time. This error is a -
CORRECT ANSWER - Semantic error
Interpretation is not efficient if - CORRECT ANSWER - Multi-module programming is used
What is the difference between an in-line function and a macro in C++? - CORRECT
ANSWER - Inlining is a suggestion to the compiler, while a macro definition will be enforced
Macros-processing takes place during which phase? - CORRECT ANSWER - Preprocessing