ANSWERS WITH COMPLETE SOLUTIONS VERIFIED
Learning the concepts, logic and problem solving of programming unlocks our
ability to learn knew languages.
true
Reliability speaks to how easily a programmer can express themselves reliably
within the language.
false
Sort Orthogonality
One-to-many: a command from one set can combine with all commands from another
set (e.g. array of integers)
Compositional Orthogonality
Many-to-many: all commands in a set can be combined with all commands from another
set (e.g. create a variable and type; int var = 2)
Number Orthogonality
Define 0 or more (e.g. creating a class with properties)
C++ was designed to bring Object Orientation to C. In fact it was originally
released with the unimaginative name "C with Classes"
true
When evaluating a programming language the category Efficiency describes:
,The 'first concern' historically. Concerned with how fast the code compiles and run
There was an early focus on efficiency due to early programmable computers
being themselves fairly inefficent being limited in power and storage.
true
When evaluating a programming language the category Reliability describes:
This concept is concerned with the internal safety and consistency of the language ...
type checking, exceptions, etc.
When evaluating a programming language the category Writeability describes:
This concept is concerned with the actual production of code and the ability of the
programmer to easily use the language... syntax, abstraction, expressivity ...
What computing paradigm can solve a problem by describing the requirements,
without writing code in a step-wise fashion to solve the problem.
logic
What is the major improvement of structured programming languages over the
earlier programming languages?
Removing Goto statement from the language.
What programming paradigm does Fortran belong to?
imperative
What is a feature of object-oriented computing?
encapsulation of states
Event-driven computing paradigm is to
define a set of events and write an event handler for each event.
In contrast to Web 1.0, what is the key function of Web 2.0?
,Web is the computing platform
What programming language characteristics impact the readability of the
programs written in this language?
Syntax design
Data structures
Control structures
Given this snippet of code in Java
char alpha = 'a';int numeric = alpha + 10;
which of the following statement is correct:
Syntactically incorrect and contextually incorrect.
Syntactically correct, but contextually incorrect.
Syntactically correct and contextually correct.
Syntactically incorrect, but contextually correct.
Syntactically correct, but contextually incorrect.
For the following BNF ruleset, which are terminal symbols? (Check all that apply.)
<char> ::= a | b | c | ... | x | y | z
<identifier> ::= <char> | <char> <identifer>
y
|
<identifier>
, ::=
a
y
a
Can the identifier "base_variable" be created from the following BNF ruleset?
<char> ::= a | b | c | ... | s | ... | x | y | z
<identifier> ::= <char> | <char> <identifer>
No - there is an underscore in the identifier name that cannot be generated.
If a program contains an error that divides a number by zero at the execution
time. This error is a
semantic error
Given:
Very Simple Programming Language (VSPL)
<char> ::= a | b | c | ... | z | 0 | 1 | ... | 9
<operator> ::= + | - | * | / | % | < | > | == | >= | <=
<variable> ::= <char> | <char> <variable>
<expr> ::= <variable> <operator> <variable> | ( <expr> ) <operator> ( <expr> )
<assign> ::= <variable> = <expr>;
<statements> ::= <assign> | <assign> <statements>
The following is valid:(a+b) = (x*y);
false