ANSWERS WITH COMPLETE SOLUTIONS VERIFIED
2024/2025
Stored Program Concept (von Neumann machine) is one of the most fundamental
concepts in computer science. What programming paradigm most closely follows
this concept?
a) imperative
b) object-oriented
c) functional
d)logic
a) imperative
What computing paradigm can solve a problem by describing the requirements,
without writing code in a step-wise fashion to solve the problem.
a) imperative
b)functional
c)object-oriented
d) logic
d) logic
What computing paradigm enforces stateless(no variable allowed) programming?
a) imperative
,b) object-oriented
c)functional
d)service-oriented
c)functional
What is a feature of object-oriented computing?
a) stateless
b) state encapsulation
c) platform-independent
d) side-effect free
state-encapsulation
In contrast to Web 1.0, what is the key function of Web 2.0?
a) Web is the computing platform
b) Web supports semantic analysis
c) Web supports graphic display
d) Web is accessed over HTTP Protocol
a) Web is the computing platform
Because of hardware constraints, early programming languages emphasized...
a) efficiency
b) orthogonality
c)reliability
d) readability
a) efficiency
,What factor is generally considered more important in modern programming
language design?
a) readability
b)writability
c)efficiency
d)none
a)readability
The main idea of structured programming is to
a) reduce the type of control structures
b) make programs execute faster
c) increase the types of control structures
d)use BNF to define the syntactic structures
a) reduce the types of control structures
Implicit type conversion commonly refer to as:
a) typing
b) coercion
c) casting
d) paradigm
b) coercion
In the following pseudo-code, which programming language allows the mixed use
of data types?
int i = 1; char c = 'a'; //declaration and initialization
c = c + i; // execution of an assignment statement
, a) Ada
b) C
c) Java
d) all of them
b)C
How
In the layer of programming language structure, which layer performs type
checking?
a) lexical
b) syntactic
c) contextual
d) semantic
c) contextual
How many different Identifiers can the following BNF ruleset generate?
<char> ::= a| b | c | ... | x | y | z
<identifier> ::= <char> | <char> <identifier>
a) 0
b) 1
c) 26
d) more than 26
d) more than 26
Which of the following statement is correct if a language is strongly typed. Select
all that apply.