CS508-Modern Programming Languages | Mid-Term Grand Quiz Fall 2021

 

Current Solved Paper

Fall 2021 (Paper 2)

Question No 1:
Prolog database (Raise For Success) is based upon_______.
  • Facts
  • Facts and queries
  • Rules and queries
  • Facts and rules Correct

Question No 2:
Object oriented (Raise For Success) programming language are close relative of ________.
  • Functional programming languages Correct
  • Declarative programming languages
  • Embedded system programming
  • Imperative programming languages

Question No 3:
Which statement (Raise For Success) is correct about Table in SNOBOL?
  • Table is indexed by number
  • Table is indexed by the key Correct
  • Table can be indexed by both keys and numbers
  • Table can be indexed by both keys and numbers

Question No 4:
The only (Raise For Success) control structure in SNOBOL is ______.
  • If Else statement
  • Switch statement
  • Go to statement Correct
  • For Loop

Question No 5:
The man design (Raise For Success) goals of Ada were EXCEPT
  • Program reliability and maintenance Correct
  • Design language for DoD
  • Programming is a human activity therefore avoid unintentional mistakes
  • Designing a portal language

Question No 6:
In Ada, function can (Raise For Success) only have ______ type of parameter.
  • OUT
  • IN
  • INOUT Correct
  • OutIn

Question No 7:
To write a user (Raise For Success) defined function in LISP we use _______.
  • Setq
  • Defun Correct
  • Del func
  • func

Question No 8:
In SNOBOL,TABLES (Raise For Success) can be used in a manner similar to _______.
  • Array Correct
  • Pointers
  • Queue
  • Struct

Question No 9:
C language was (Raise For Success) popular in students due to:
  • Size of language
  • Arithmetic decimal support
  • Orthogonality
  • Easy Portability Correct

Question No 10:
The uses of trivial (Raise For Success) programs are not recommended for the ______of languages.
  • Abstraction
  • Evaluation
  • Writability
  • Generation Correct

Question No 11:
________ represents (Raise For Success) the class of languages from functional paradigm.
  • LISP
  • PROLOG
  • Ada Correct
  • C++

Question No 12:
A language (Raise For Success) evaluation criteria includes following factors EXCEPT
  • Readability
  • Writability
  • Portability
  • Modularity Correct 

Question No 13:
A language that (Raise For Success) can be used for a wide domain of applications has higher _____.
  • Portability
  • Generality
  • Reliability Correct
  • Readibility

Question No 14:
Which of following (Raise For Success) operator is used for concatenation of statement which is speared over more than one line in SNOBOL?
  • +
  • +=
  • = Correct
  • ->

Question No 15:
If we have two (Raise For Success) spaces in SNOBOL the first is used for _____and the second one for _____.
  • concatenation , pattern matching
  • immediate assignment , replacement
  • pattern matching , concatenation Correct
  • as a whole assignment , immediate assignment

Question No 16:
Two-dimensional (Raise For Success) arrays are stored column-wise (column major) in:
  • ALGOL Correct
  • BASIC
  • FORTRAN
  • C#

Question No 17:
Maps in SNOBOL (Raise For Success) may also in available in ______.
  • Prolog standard library
  • MATLAB online success Correct
  • C++standard library
  • C standard library

Question No 18:
Which statement (Raise For Success) best suited for C programming language?
  • String manipulation language
  • First language to provide exception handing
  • With powerful set of operators but poor type checking Correct
  • Introduce the notion of class

Question No 19:
In Late 70 s, (Raise For Success) readability and more productivity resulted in:
  • Machine Efficiency
  • People efficiency
  • Date Abstraction
  • Object Oriented Programming Correct

Question No 20:
Correct syntax (Raise For success) of assigning null value to a variable in Snobol.
  • someString = null
  • someString = 'null'
  • someString = "null"
  • someString = Correct

Question No 21:
Ada enum type (Raise For Success) is different from C enum type as no _______on Ada enum type is performed.
  • logical operation Correct
  • arithmetic operation
  • relational operation
  • operation

Question No 22:
SNOBOL was (Raise For Success) designed for ______ purpose.
  • String manipulation Correct
  • Al
  • Business
  • Scientific

Question No 23:
_______ in Ada (Raise For Success) is a type of Record that may be extended.
  • Packages
  • Tagged type Correct
  • Record structure
  • None of the given

Question No 24:
Symbolic expression (Raise For Success) in LISP in a form of _______.
  • List
  • Atom
  • Both List and Atom Correct
  • Neither List nor Atom

Question No 25:
_______ is used for (Raise For Success) value assignment for those parts of pattern that match or immediate assignment in SNOBOL.
  • (.)Dot operator
  • Unary Space operator
  • $ operator Correct
  • Binary Space operator

Question No 26:
What is the size (Raise For Success) of the integer in Snobol?
  • 2 bytes
  • 4 bytes Correct
  • 8 bytes
  • 32 bytes

Question No 27:
How to end (Raise For Success) While loop in ada?
  • exit
  • end loop Correct
  • exit loop
  • end

Question No 28:
One of the major (Raise For Success) design goas Ada was
  • to make it difficult for developers to make mistakes
  • to help developers to code the software in lesser time Correct
  • to help develop an IDE for Ada
  • to make testers to test Ada application easily

Question No 29:
The variable name (Raise For Success) have profound effect on ________.
  • Readability Correct
  • Writability
  • Orthogonality
  • Portability

Question No 30:
In the Ordinary (Raise For Success) food point type, the distance between values is implemented as a power of _____.
  • 16
  • 2
  • 10 Correct
  • 8

Previous Post Next Post