WorksheetsLecture 2 Quiz - Survey of PL
Total questions: 24
Worksheet time: 8mins
Name
Class
Date
1.
Which programming language paradigm focuses on specifying the sequence of statements to change the program's state?
a)
Imperative
b)
Object-Oriented
c)
Functional
d)
Declarative
2.
Which programming language paradigm revolves around the concept of objects that encapsulate data and behavior?
a)
Imperative
b)
Object-Oriented
c)
Functional
d)
Declarative
3.
Which programming language paradigm focuses on composing functions and treating computations as mathematical evaluations?
a)
Imperative
b)
Object-Oriented
c)
Functional
d)
Declarative
4.
Which programming language paradigm involves writing procedures or functions that operate on data?
a)
Imperative
b)
Object-Oriented
c)
Functional
d)
Procedural
5.
Which programming language paradigm focuses on specifying the desired result rather than explicitly describing the control flow?
a)
Imperative
b)
Object-Oriented
c)
Functional
d)
Declarative
6.
Which programming language paradigm revolves around logical rules and facts as the basis for solving problems?
a)
Imperative
b)
Object-Oriented
c)
Logic
d)
Declarative
7.
Which programming language paradigm responds to events triggered by user actions or system events?
a)
Imperative
b)
Object-Oriented
c)
Event-Driven
d)
Declarative
8.
Which programming language paradigm enables the execution of multiple tasks concurrently?
a)
Imperative
b)
Object-Oriented
c)
Concurrent
d)
Declarative
9.
Which programming language paradigm uses lambda expressions, higher-order functions, and recursion?
a)
Procedural
b)
Object-Oriented
c)
Functional
d)
Declarative
10.
Which programming language paradigm uses classes, objects, inheritance, encapsulation, polymorphism, and abstraction?
a)
Procedural
b)
Object-Oriented
c)
Functional
d)
Declarative
11.
Which category of application domain predominantly manipulates numbers and arrays of numbers using mathematical and statistical principles?
a)
Scientific Applications
b)
Data processing Applications
c)
Text processing Applications
d)
Artificial intelligence Applications
12.
Which category of application domain involves programming problems related to the creation, maintenance, extraction, and summarization of data in records and files?
a)
Scientific Applications
b)
Data processing Applications
c)
Text processing Applications
d)
Artificial intelligence Applications
13.
Which category of application domain involves the manipulation of natural language text rather than numerical data?
a)
Scientific Applications
b)
Data processing Applications
c)
Text processing Applications
d)
Artificial intelligence Applications
14.
Which category of application domain includes programs designed to emulate intelligent behavior, such as game-playing algorithms and natural language understanding programs?
a)
Scientific Applications
b)
Data processing Applications
c)
Text processing Applications
d)
Artificial intelligence Applications
15.
Which implementation method translates programs into machine language and executes them directly on the computer?
a)
Compilation
b)
Interpretation
c)
Hybrid
d)
Just-in-time
16.
Which implementation method involves interpreting high-level language program statements directly without any translation?
a)
Compilation
b)
Interpretation
c)
Hybrid
d)
Just-in-time
17.
Which implementation method is a compromise between compilers and pure interpreters, translating high-level language programs to an intermediate language for easy interpretation?
a)
Compilation
b)
Interpretation
c)
Hybrid
d)
Just-in-time
18.
Which implementation method initially translates programs into an intermediate language and then compiles the intermediate language of subprograms into machine code when they are called?
a)
Compilation
b)
Interpretation
c)
Hybrid
d)
Just-in-time
19.
What is the primary influence on language design that has a profound effect on the basic computer architecture?
a)
Reliability
b)
Expandability
c)
Programmability
d)
Compatibility
20.
Which language evaluation criterion measures the ease with which programs can be read and understood?
a)
Orthogonality
b)
Pedagogy
c)
Generality
d)
Efficiency
21.
Which language evaluation criterion focuses on the ability of a language to support a variety of data values and non-elementary collections of these values?
a)
Readability
b)
Expressivity
c)
Data types and Structures
d)
Orthogonality
22.
Which language evaluation criterion refers to the ability of a language to permit an utterance to be compactly stated and encourages the use of structured programming constructs?
a)
Pedagogy
b)
Readability
c)
Orthogonality
d)
Expressivity
23.
Which language evaluation criterion measures the time required for malfunction detection and reconfiguration or repair?
a)
Efficiency
b)
Reliability
c)
Portability
d)
Expandability
24.
Which language implementation system translates high-level language programs into an intermediate language for easy interpretation?
a)
Compilation
b)
Interpretation
c)
Hybrid
d)
Just-in-time
100 %
