Exam 6: Programming Languages
Exam 1: Data Representation64 Questions
Exam 2: Data Representation63 Questions
Exam 3: Operating Systems47 Questions
Exam 4: Networks and the Internet62 Questions
Exam 5: Algorithms53 Questions
Exam 6: Programming Languages54 Questions
Exam 7: Software Engineering54 Questions
Exam 8: Data Abstractions53 Questions
Exam 9: Database Systems52 Questions
Exam 10: Computer Graphics47 Questions
Exam 11: Artificial Intelligence52 Questions
Exam 12: Theory of Computation51 Questions
Select questions type
To say that a grammar is ambiguous means that ___________________________________________.
(Short Answer)
4.9/5
(33)
Briefly describe the task of each of the following.
A.Lexical analyzer
B.Parser
C.Code Generator
(Short Answer)
4.9/5
(24)
Explain why key words in a programming language are often reserved words.
(Short Answer)
4.8/5
(30)
Indicate how each of the following types of programming languages is classified in terms of generation (first generation,second generation,or third generation).
A. High-level languages _____________
B. Machine languages _____________
C. Assembly languages _____________
(Short Answer)
4.9/5
(38)
Which of the following does not require a Boolean condition?
(Multiple Choice)
4.9/5
(35)
In the context of the object-oriented paradigm,____________ are templates from which
____________ are constructed.We say that the latter is an instance of the former.
(Short Answer)
4.9/5
(33)
Based on the grammar below,draw a parse tree showing that the string "drip drip drip" is a Leak.


(Short Answer)
4.8/5
(37)
Explain the distinction between the imperative and declarative programming paradigms.
(Short Answer)
4.9/5
(33)
Why is the straightforward "goto" statement no longer popular in high-level programming languages?
(Short Answer)
4.9/5
(35)
Which of the following is not a type of statement found in a typical high-level imperative programming language?
(Multiple Choice)
4.7/5
(26)
Positions within arrays are identified by means of numbers called
(Multiple Choice)
4.9/5
(42)
Which of the following is not a step in the process of translating a program?
(Multiple Choice)
4.7/5
(36)
List two disadvantages of both machine languages and assembly languages that are overcome by high-level programming languages.
_____________________________________
_____________________________________
(Short Answer)
4.7/5
(30)
Explain why the generation approach to classifying programming languages fails to capture the full scope of today's languages.
(Short Answer)
4.9/5
(26)
The following is a program segment and the definition of a function named sub.
. . =3; def sub(Y): sub () =5; print (); . .
A. What value will be printed by the program segment if parameters are passed by value?
____________
B. What value will be printed by the program segment if parameters are passed by reference?
____________
(Short Answer)
4.9/5
(33)
Explain the distinction between translating a program (in a high-level language)and interpreting the program.
(Short Answer)
4.9/5
(31)
Showing 21 - 40 of 54
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)