Current Solved Paper
Fall 2021 (Paper 1)
Question No 1:_____ is used for value (Raise For Success) for those parts of pattern that match or immediate assignment in SNOBOL.- ()Dot Operator
- Unary Space Operator Correct
- $ Operator
- Binary Space Operator
- ()Dot Operator
- Unary Space Operator Correct
- $ Operator
- Binary Space Operator
Question No 2:In Prolog was (Raise For Success) specify ____ and do not specify _____- Solution , Problem Correct
- Problem , Solution
- Result , Inputs
- Result , Outputs
- Solution , Problem Correct
- Problem , Solution
- Result , Inputs
- Result , Outputs
Question No 3:Which of the following (Raise For Success) is a valid symbol in Lips.- Valid Symbol
- 'Valid Symbol'
- "Valid Symbol" Correct
- valid-symbol
- Valid Symbol
- 'Valid Symbol'
- "Valid Symbol" Correct
- valid-symbol
Question No 4:_____ represents the (Raise For Success) class of languages from functional paradigm.- LISP
- PROLOG Correct
- Ada
- C++
- LISP
- PROLOG Correct
- Ada
- C++
Question No 5:The variable name (Raise For Success) have profound affect on ______.- Readability
- Writability
- Orthogonality Correct
- Portability
- Readability
- Writability
- Orthogonality Correct
- Portability
Question No 6:To terminate simple loop (Raise For Success) in ada which statement is used?- end loop Correct
- exit loop
- exit
- end
- end loop Correct
- exit loop
- exit
- end
Question No 7:Which of the following is (Raise For Success) the only Control structure in SNOBOL?- Go to Statement Correct
- If Else Statement
- Switch Statement
- Both if else & switch statement
- Go to Statement Correct
- If Else Statement
- Switch Statement
- Both if else & switch statement
Question No 8:Which of the following (Raise For Success) language was not developed in 1950s era:- Lisp
- FORTRAN
- Smalltalk Correct
- COBOL
- Lisp
- FORTRAN
- Smalltalk Correct
- COBOL
Question No 9:Correct Syntax of creating (Raise For Success) variable of specific length in Ada:- Some_String: String(1>20):
- Some_String: String(1..20):
- Some_String: String(1,20): Correct
- Some_String: String(1:20):
- Some_String: String(1>20):
- Some_String: String(1..20):
- Some_String: String(1,20): Correct
- Some_String: String(1:20):
Question No 10:Indirect referencing in (Raise For Success) SONOBOL is same as of _____ in C.- Arrays
- Pointers Correct
- Aliasing
- Stack
- Arrays
- Pointers Correct
- Aliasing
- Stack
Question No 11:SIZE function in SONOBOL (Raise For Success) language is used to return the size of _______.- String Correct
- Operator
- Variable
- Keyword
- String Correct
- Operator
- Variable
- Keyword
Question No 12:We study _____ in the (Raise For Success) subject of Modern Programming languages.- Comparative anatomy of all computer languages
- Distinctive features of programming languages
- Exclusive features of all programming languages
- All of above Correct
- Comparative anatomy of all computer languages
- Distinctive features of programming languages
- Exclusive features of all programming languages
- All of above Correct
Question No 13:Everything in (Raise For Success) LISP is considered a _____- Class
- Object
- Function
- Symbol Correct
- Class
- Object
- Function
- Symbol Correct
Question No 14:_____ operations must (Raise For Success) have one of its parameters of the tagged type.- Concurrent
- Concurrent
- Primitive Correct
- Generic
- Concurrent
- Concurrent
- Primitive Correct
- Generic
Question No 15:$ operator in (Raise For Success) SNOBOL is used as both a/an _____ & _____ operator.- external , internal
- unary , external
- unary , binary Correct
- internal , binary
- external , internal
- unary , external
- unary , binary Correct
- internal , binary
Question No 16:This list of parameters (Raise For Success) in Ada subprograms is separated by ______.- Dot
- Semicolon
- Comma Correct
- Colon
- Dot
- Semicolon
- Comma Correct
- Colon
Question No 17:Which statement is (Raise For Success) correct about Table in SNOBOL?- Table is indexed by number
- Table is indexed by the key Correct
- Table can be indexed by both keys & numbers
- Table can be indexed by both keys and numbers
- Table is indexed by number
- Table is indexed by the key Correct
- Table can be indexed by both keys & numbers
- Table can be indexed by both keys and numbers
Question No 18:LISP was the first programming language that introduced the (Raise For Success) concept of ______- Pointers
- Arrays
- Dynamic Typing Correct
- Trees
- Pointers
- Arrays
- Dynamic Typing Correct
- Trees
Question No 19:Which statement is (Raise For Success) correct about SNOBOL?- Value is assigned to variable first
- Variables are not declared before use Correct
- Variables must be declared before use
- Variable is declared first
- Value is assigned to variable first
- Variables are not declared before use Correct
- Variables must be declared before use
- Variable is declared first
Question No 20:Use both for AI (Raise For Success) application and as a database language.- Process scheduling
- Theorem proving exercise Correct
- Lambda calculus
- Both Process scheduling & Lambda calculus
- Process scheduling
- Theorem proving exercise Correct
- Lambda calculus
- Both Process scheduling & Lambda calculus
Question No 21:In Ada programming (Raise For Success) language Tagged types are used for ______.- encapsulation
- defining extensible types Correct
- both encapsulation and type definition
- neither encapsulation , nor type definition
- encapsulation
- defining extensible types Correct
- both encapsulation and type definition
- neither encapsulation , nor type definition
Question No 22:Maps in SNOBOL (Raise For Success) may also be available in ______.- Prolog standard library
- MATLAB online sources Correct
- C++ standard library
- C standard library
- Prolog standard library
- MATLAB online sources Correct
- C++ standard library
- C standard library
Question No 23:The first computer (Raise For Success) was implemented on the _____ computer in 1953.- MIT Whirlwind Correct
- IBM
- Bell
- INRIA
- MIT Whirlwind Correct
- IBM
- Bell
- INRIA
Question No 24:A ____ is used to signify (Raise For Success) a potentially infinite loop in Ada.- Full loop
- Simple loop Correct
- Special loop
- Master loop
- Full loop
- Simple loop Correct
- Special loop
- Master loop
Question No 25:Binary operator in (Raise For Success) SONOBOL must has at least _____ spaces on both sides.- 2
- 1 Correct
- 3
- 5
- 2
- 1 Correct
- 3
- 5
Question No 26:In SNOBOL, for entire assignment we use ______ operator in (Raise For Success) pattern matching statement.- $(dollar) Correct
- (.)Dot
- Unary $(Dollar)
- Binary Space
- $(dollar) Correct
- (.)Dot
- Unary $(Dollar)
- Binary Space
Question No 27:Operator overloading _____ Writability but Readability (Raise For Success) is affected.- Decreases
- Increases Correct
- Has no affect on
- Stabilizes
- Decreases
- Increases Correct
- Has no affect on
- Stabilizes
Question No 28:A language evaluation (Raise For Success) criteria includes following factors EXCEPT:ReadabilityWritabilityPortabilityModularity Correct
Question No 29:SIZE() & REPLACE() (Raise For Success) in SNOBOL4 are _____ functions.- primitive Correct
- built-in
- user defined
- both primitive & built-in
- primitive Correct
- built-in
- user defined
- both primitive & built-in
Question No 30:One of the significant (Raise For Success) feature associated with SNOBOL is ______.- Performing arithmetic operation separately
- Mixing arithmetic & string operations
- Allows string manipulation operation only Correct
- Explicit Variable declaration
- Performing arithmetic operation separately
- Mixing arithmetic & string operations
- Allows string manipulation operation only Correct
- Explicit Variable declaration
Tags:
CS508
CS508-Modern Programming Languages | Mid-Term Grand Quiz Fall 2021
Fall 2021
Fall 2022
Fall 2023
Fall 2024
Fall 2025
Midterm Past Papers
Modern Programming Languages