COMPLETE SOLUTIONS VERIFIED
Scheme
Prolog
What programming languages better prepare you for leaning the concepts of database
query languages such as SQL and LINQ?
pointers
What key feature of programming languages is supported by C++, but not by Java?
Encapsulation of States
What is a feature of object-oriented computing?
logic
What computing paradigm can solve a problem by describing the requirements, without
writing code in a step-wise fashion to solve the problem.
functional
What computing paradigm enforces stateless (no variable allowed) programming?
Web is the computing platform
In contrast to Web 1.0, what is the key function of Web 2.0?
Removing Goto statement from the language.
What is the major improvement of structured programming languages over the earlier
programming languages?
Syntactically correct, but contextually incorrect.
,Given this snippet of code in C,
char alpha = 'a';
float numeric = alpha + 10;
which of the following statement is correct:
No - there is an underscore in the identifier name that cannot be generated.
Can the identifier "base_variable" be created from the following BNF ruleset?
more than 26
How many different identifiers can the following BNF ruleset generate?
Semantics
Which of the following cannot be checked by an imperative or object-oriented compiler.
Select all that applies.
for ( <init-expr>; <test-expr>; <increment-expr> ) {<statements>}
while (condition) do {statements;}
If-then-else
Which commands (constructs) do NOT have a loop when expressed in syntax graphs?
Select all that apply
define a set of events and write an event handler for each event.
Event-driven computing paradigm is to
Syntactic, semantic, contextual
A computer program can be broken down into several structural layers. Which of the
followings belong to these structural layers. Select all that applies.
semantic error
, If a program contains an error that divides a number by zero at the execution time. This
error is a
It is an "or" operation. Choose one of the options.
What does the | (pipe) symbol in a BNF rule mean?
Y
A
For the following BNF ruleset, which are terminal symbols? Select all that apply.
<char> ::= a | b | c | ... | x | y | z
<identifier> ::= <char> | <char> <identifier>
Two Step Translation with Intermediate Code -- (Compilation + Interpretation)
Java uses which of the following program processing?
a longer machine code but with shorter execution time.
Assume a function requires 20 lines of machine code and will be called 10 times in the
main program. You can choose to implement it using a function definition or a macro
definition. Compared with the function definition, macro definition will lead the compiler
to generate, for the entire program, ______
A macro
What is "func" in this C program example?
#include <stdio.h>
#define func(x, y) (x > y) ? y : x
int main()
{
int x = 10;