UPDATED ACTUAL Exam Questions and
CORRECT Answers
Event-driven computing paradigm is to - CORRECT ANSWER - define a set of events and
write a handler for each event
In contrast to Web 1.0, what is the key function of Web 2.0? - CORRECT ANSWER - Web is
the computing platform
What programming language impacts the readability of the programs written in this language? -
CORRECT ANSWER - Control Structures
Syntax Design
Data Structures
What is a feature of object-oriented computing? - CORRECT ANSWER - encapsulation of
states
Which command will have a loop expressed in a syntax graph? - CORRECT ANSWER -
switch
If your program was designed to print "Hello World" ten (10) times, but during execution, it
printed eleven (11) times. What typeof error is it? - CORRECT ANSWER - Semantics Error
A computer program can be broke down into several structural layers. Which of the followings
belong to these structural layers. Select all that applies. - CORRECT ANSWER - Synctatic
Contextual
Semantics
For the following BNF ruleset, which are terminal symbols? Select all that apply.
, <char> ::= a | b | c | ... | x | y | z
<identifier> ::= <char> | <char> <identifier> - CORRECT ANSWER -y
a
What does the I (pipe) symbol in a BNF rule mean? - CORRECT ANSWER - It is an "or"
operation
Can the identifier "base_variable" be created from the following BNF ruleset?
<char> ::= a | b | c | ... | s | ... | x | y | z
<identifier> ::= <char> | <char> <identifier> - CORRECT ANSWER - No - there is an
underscore in the identifier name that cannot be generated.
What is the main reason of applying two-step translation of high level programming language? -
CORRECT ANSWER - One compiler for all machines
If you like to see accurate debugging information, which of the following program processing
would you recommend? - CORRECT ANSWER - interpretation
A final method in java defines - CORRECT ANSWER - an inline function
Macros-Processing in C takes place during which phase? - CORRECT ANSWER - Pre-
processing
What is "func" in this C program example?
#include <stdio.h>
#define func(x, y) (x > y) ? y : x
int main()