Questions and CORRECT Answers
According to the course policy and Student Code of Conduct discussed in the lecture, what are
allowed? Select all that apply. - CORRECT ANSWER - Study in a group on learning the
course materials.
Post homework questions in the course discussion board.
What are course outcomes? - CORRECT ANSWER - The abilities that students are expected
to obtain by the end of course.
According to the cooperation policy and Student Code of Conduct discussed in the lecture, what
is NOT allowed? - CORRECT ANSWER - Work together on programming assignments with
your peers.
What key feature of programming languages is supported by C++, but not by Java? - CORRECT
ANSWER - Pointers.
For some reason, my homework assignment submission did not go through or I submitted a
wrong file, my assignment can be graded if I can show the instructor that I completed the
assignment before the due date, based on the file date and time on my local disk or in my
Dropbox. - CORRECT ANSWER - False
What is the major improvement of structured programming languages over the earlier
programming languages? - CORRECT ANSWER - Removing Goto statement from the
language.
Event-driven computing paradigm is to - CORRECT ANSWER - define a set of events and
write an event handler for each event.
What programming paradigm does Fortran belong to? - CORRECT ANSWER - imperative
, What programming language characteristics impact the readability of the programs written in
this language? - CORRECT ANSWER - Control structures
Syntax design
Data structures
If your program was designed to print "Hello World" ten (10) times, but during execution, it
printed eleven (11) times. What type of error is it? - CORRECT ANSWER - Semantics Error
A computer program can be broken down into several structural layers. Which of the followings
belong to these structural layers. Select all that applies. - CORRECT ANSWER - Syntactic
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
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 does the | (pipe) symbol in a BNF rule mean? - CORRECT ANSWER - It is an "or"
operation. Choose one of the options.
Java uses which of the following program processing? - CORRECT ANSWER - Two Step
Translation with Intermediate Code -- (Compilation + Interpretation)