0% found this document useful (0 votes)
6 views15 pages

Programming Language Concepts MCQ PDF

Programming Language Concepts MCQ PDF available on Quizplus.com. The resource URL is https://quizplus.com/study-set/1650-programming-languages-principles-and-practices

Uploaded by

zsxrq3zdjc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views15 pages

Programming Language Concepts MCQ PDF

Programming Language Concepts MCQ PDF available on Quizplus.com. The resource URL is https://quizplus.com/study-set/1650-programming-languages-principles-and-practices

Uploaded by

zsxrq3zdjc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Programming Language

Concepts MCQ PDF

https://quizplus.com/study-set/1650
13 Chapters
651 Verified Questions
Programming Language Concepts
MCQ PDF
Cou
Programming Language Concepts explores the foundational principles underlying the

design, implementation, and use of programming languages. Students will examine key

topics such as syntax and semantics, data types, control structures, binding, scoping,

and parameter passing. The course also covers paradigms including procedural,

object-oriented, functional, and logical programming, analyzing their features and

trade-offs. Through comparative studies and practical examples, students gain insight

into how programming languages influence software development and

problem-solving, preparing them to effectively learn new languages and choose the

right tools for various computing tasks.

Recommended Textbook
Programming Languages Principles and Practices 3rd Edition by Kenneth C. Louden

Available Study Resources on Quizplus


13 Chapters
651 Verified Questions
651 Flashcards
Source URL: https://quizplus.com/study-set/1650

Page 2
Chapter 1: Introduction
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32743

Sample Questions
Q1) ____ abstractions support information hiding.
A) Basic data
B) Structured data
C) Unit data
D) Structured control
Answer: C

Q2) An abstraction is a way of expressing ideas that make them concise,simple,and


easy for the human mind to grasp.
A)True
B)False
Answer: True

Q3) The ____ abstraction is often associated with the concept of an abstract data type.
A) unit data
B) basic data
C) structured data
D) structured control
Answer: A

To view all questions and flashcards with answers, click on the resource link above.

Page 3
Chapter 2: Language Design Criteria
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32744

Sample Questions
Q1) C++ is an open source language that has never had a commercial release.
A)True
B)False
Answer: False

Q2) Which of the following is an object-oriented language?


A) C++
B) C
C) FORTRAN
D) Algol
Answer: A

Q3) The presence of explicit data types in variable declarations in a language allows for
more concise code.
A)True
B)False
Answer: False

Q4) Java is considered to be a semantically safe language.


A)True
B)False
Answer: True

To view all questions and flashcards with answers, click on the resource link above.
Page 4
Chapter 3: Functional Programming
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32745

Sample Questions
Q1) The essential construct of lambda calculus is called the lambda application.
A)True
B)False
Answer: False

Q2) Haskell supports a type class inheritance through a hierarchy of type classes.
A)True
B)False
Answer: True

Q3) A function application is a call to a defined function using actual parameters.


A)True
B)False
Answer: True

Q4) In lambda calculus,a value can be substituted for a variable by use of a(n)____.
A) reduction rule
B) evaluation rule
C) abstraction rule
D) application rule
Answer: A

To view all questions and flashcards with answers, click on the resource link above.

Page 5
Chapter 4: Logic Programming
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32746

Sample Questions
Q1) In the Horn clause a and a and a b,the variable b is called the ____.
A) head
B) body
C) tail
D) fact

Q2) A logic programming language is a notational system for writing logical statements
together with specified algorithms for implementing inference rules.
A)True
B)False

Q3) In Prolog,the cut operator is used to ____.


A) stop a search of a tree
B) move a node from one tree to another
C) remove a node from a tree
D) prune duplicates from a tree

Q4) The existential quantifier is used to represent all things in the universe that exist.
A)True
B)False

To view all questions and flashcards with answers, click on the resource link above.

Page 6
Chapter 5: Object-Oriented Programming
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32747

Sample Questions
Q1) In Smalltalk,the object that receives a message performs its service by invoking an
appropriate ____.
A) method
B) function
C) procedure
D) sub-routine

Q2) The history of object-oriented programming languages begins in the 1960s with the
Simula project.
A)True
B)False

Q3) C++ has built-in garbage collection.


A)True
B)False

Q4) In C++,instance variables and methods are both called descriptors.


A)True
B)False

Q5) In C++,objects can only be allocated on the heap.


A)True
B)False

To view all questions and flashcards with Page


answers,
7 click on the resource link above.
Chapter 6: Syntax
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32748

Sample Questions
Q1) The process of associating the semantics of a construct to its syntactic structure is
called syntax-directed semantics.
A)True
B)False

Q2) A ____ is the standard graphical depiction of syntax-directed semantics.


A) flow chart
B) UML diagram
C) chained list
D) parse tree

Q3) ____ are phrase structures that are broken down into further phrase structures.
A) Nonterminals
B) Complex grammars
C) Compressed structures
D) Terminals

Q4) The start symbol is used to identify the start of the grammar.
A)True
B)False

Q5) Abstract syntax trees abstract the essential structure of the parse tree.
A)True
B)False
Page 8
To view all questions and flashcards with answers, click on the resource link above.
Chapter 7: Basic Semantics
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32749

Sample Questions
Q1) In C++,declarations that bind all potential attributes are called ____.
A) prototypes
B) definitions
C) symbols
D) explicits

Q2) The body of an externally defined function will not be bound until ____.
A) execution time
B) link time
C) translation time
D) load time

Q3) Names can be reused within nested blocks by associating each declaration with a
level number and an offset.
A)True
B)False

Q4) ____ are any storable quantities,such as integers.


A) Data
B) Values
C) Locations
D) Identifiers

To view all questions and flashcards with answers, click on the resource link above.
Page 9
Chapter 8: Data Types
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32750

Sample Questions
Q1) The most general type possible for a polymorphic function with a given
implementation is called its ____ type.
A) general
B) base
C) principal
D) specialized

Q2) Languages without static type systems are usually called ____ languages.
A) reverse typed
B) untyped
C) weakly typed
D) strongly typed

Q3) A narrowing conversion is an implicit conversion that may result in loss of data.
A)True
B)False

Q4) Type ____ are used to construct complex types from basic types.
A) constructors
B) assemblers
C) checkers
D) combiners

To view all questions and flashcards with answers, click on the resource link above.
Page 10
Chapter 9: Control I - Expressions and Statements
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32751

Sample Questions
Q1) Synchronous errors occur in direct reaction to program execution.
A)True
B)False

Q2) In normal order evaluation,each operation begins its evaluation before its operands
are evaluated.
A)True
B)False

Q3) ____ code is code for a function body that is inserted directly at the point where the
function would be called.
A) Substitution
B) Control
C) Inline
D) Parameterized

Q4) Functions are written in prefix form.


A)True
B)False

Q5) Alan Turing introduced the guarded if statement.


A)True
B)False

To view all questions and flashcards with Page


answers,
11 click on the resource link above.
Chapter 10: Control II - Procedures and Environments
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32752

Sample Questions
Q1) The group of actions in a procedure is called the ____ of the procedure.
A) parameters
B) arguments
C) activation record
D) body

Q2) In strongly typed languages,procedure calls must be checked so that the


arguments agree in type and number with the parameters of the procedure.
A)True
B)False

Q3) A procedure communicates with its calling environment through ____.


A) parameters
B) local variables
C) constants
D) shared memory

Q4) The pointer to the previous activation record is the ____ link.
A) reverse
B) history
C) control
D) return

To view all questions and flashcards with answers, click on the resource link above.
Page 12
Chapter 11: Abstract Data Types and Modules
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32753

Sample Questions
Q1) Exported names should be qualified by the module name to avoid accidental name
clashes.
A)True
B)False

Q2) Encapsulation refers to the collection of all definitions related to a data type in one
location
A)True
B)False

Q3) Information hiding refers to the separation of data from the programmer.
A)True
B)False

Q4) Object oriented languages solve the initialization problem by the use of
constructors.
A)True
B)False

Q5) In mathematics,the semantic properties of functions are often described by ____.


A) formulas
B) axioms
C) symbols
D) proofs
Page 13
To view all questions and flashcards with answers, click on the resource link above.
Chapter 12: Formal Semantics
Available Study Resources on Quizplus for this Chatper
50 Verified Questions
50 Flashcards
Source URL: https://quizplus.com/quiz/32754

Sample Questions
Q1) A translator is ____ to ensure that it produces behavior described in the language
definition.
A) verified
B) validated
C) proven
D) vetted

Q2) In the sample small language presented in Chapter 12,the sets Integer is an example
of a syntactic domain.
A)True
B)False

Q3) The Law of ____ states that if a postcondition Q implies R then the weakest
precondition of Q implies the weakest precondition of R.
A) the Excluded Miracle
B) Conjunction
C) Monotonicity
D) Disjunction

Q4) A formal specification method must be complete and consistent.


A)True
B)False

To view all questions and flashcards with answers, click on the resource link above.
Page 14
Chapter 13: Parallel Programming
Available Study Resources on Quizplus for this Chatper
51 Verified Questions
51 Flashcards
Source URL: https://quizplus.com/quiz/32755

Sample Questions
Q1) Semaphore signal and delay operations are identical to monitor continue and
suspend.
A)True
B)False

Q2) A process is ____ when it is in possession of the processor.


A) blocked
B) executing
C) waiting
D) locked

Q3) Another name for the bounded buffer problem is the producer-consumer problem.
A)True
B)False

Q4) A ____ system consists of stand-alone processors connected together by


high-speed links.
A) multiprocessor
B) parallelized
C) distributed
D) synchronized

To view all questions and flashcards with answers, click on the resource link above.

Page 15

You might also like