CS508 Grand Quiz Solved Fall 2020 with Reference File 2

CS508 GRAND QUIZ SOLVED 100% VERIFIED BY ADMIN (MID TERM SYLLABUS)

Q1: SNOBOL is case _________.
A) Sensitive
B) In-Sensitive (page 33) (100% Sure)
C) Super-Sensitive
D) Not-Sensitive

Q2: Which language had great influence on high level programming languages like C.
A) FORTRANT I
B) Lisp
C) ALGOL68 (page27) (100% Sure)
D) COBOL

Q3: SNOBOL was designed for _______ purpose.
A) String manipulation (page35) (100% Sure)
B) AI
C) Business
D) Scientific

Q4: Which of the following statement in LISP is used to list all properties of symbol 'k'?
A) >(get all 'k')
B) >(obtain all 'k')
C) >(symbol-plist 'k') (page74) (100% Sure)
D) >(get 'k')

Q5: A language that can be used for wide domain of applications has higher _________.
A) Portability
B) Generality (page 20) (100% Sure)
C) Reliability
D) Readability



Q6: In Prolog was specify ______ and do not specify _____.
A) Solution, Problem
B) Problem, Solution (page 86) (100% Sure)
C) Result, Inputs
D) Result, Outputs

Q7: Table in SNOBOL can be used as ________.
A) Pointers
B) Arrays (page 43) (100% Sure)
C) Stacks
D) Queues

Q8: If you want to assign a value 10 to a variable name "Roll_No" in Ada language, then which of the following is a correct way to do that?
A) Roll_No = 10
B) Roll_No -> 10
C) Roll_No := 10 (page47) (100% Sure)
D) Roll_No : 10

Q9: Following statement returns the union of the two list in LISP.
A) >(L1 UNION L2)
B) >(union L1 L2) (page68) (100% Sure)
C) >Union L1
D) >(L1 union L2)

Q10: _______ is the first programming language that give unit level concurrency.
A) PROLOG
B) SNOBOL
C) PL1 (page 28) (100% Sure)
D) BASIC



Q11: ______ is concerned with maintenance and debugging. This is a very important because if maintenance cost is reduced, the overall cost of the software will also be reduced.
A) Readability (page 20) (100% Sure)
B) Writabilty
C) Orthogonality
D) Portability

Q12: (.) Dot operator is a _______ in SNOBOL.
A) Reference pointer
B) Unary operator (page33) (100% Sure)
C) Binary Operator
D) None of the given

Q13: Plankalku has _______ arithmetic.
A) Long
B) Floating point (page 24) (100% Sure)
C) Double
D) Decimal

Q14: To the man who only has a hammer in the toolkit, every problem looks like a _____.
A) Nail (page 5) (100% Sure)
B) Screw
C) Nut
D) Bolt

Q15: Which of the following statement of LISP creates an arry of size 5?
A) (self linear-array(make-array'(5))) (page 75) (100% Sure)
B) (make linear-array(5))
C) (setq linear-array(array'(5)))
D) (setf(make-array'(5)))



Q16: ______ operator is righ associative in SNOBOL.
A) Unary Operator
B) Binary Operator
C) Exponentiation operator(page33) (100% Sure)
D) Division Operator

Q17: Which of the following feature of Ada language is similar to the pointers in C++?
A) Records
B) Arrays
C) Access Types (page 53) (100% Sure)
D) Structures

Q18: Computers are used in a wide variety of ______ domains.
A) problem-generating
B) problem-defining
C) problem-describing
D) problem-solving (Confirm) (100% Sure)

Q19: Which of the following is a correct if statement in Lisp?
A) if (score 66 < ) High
B) if ( < score 66 ) High (page 69) (100% Sure)
C) if ( score < 66 ) High
D) if ( 66 score < ) High

Q20: One of the significant feature associated with SNOBOL is _______.
A) Performing arithmetic operation seperately
B) Mixing arithmetic and string operations (page 35) (100% Sure)
C) Allow String manipulation operation only
D) Explicit Variable declaration



Q21: In Ada, tagged type defination is performed in a _______.
A) Concurrency
B) Package (page 59) (100% Sure)
C) Generics
D) Structure

Q22: Using SNOBOL the correct way to create a one-dimensional array of 10 elements and each element contains 1.0, is:
A) V= ARRAY(10,1.0) (page42) (100% Sure)
B) V= ARR(10,1.0)
C) V= ARR(1.0,10)
D) V= ARRAY(1.0,10)

Q23: SIZE function in SNOBOL language is used to return the size of _______.
A) String (page 41) (100% Sure)
B) Operator
C) Variable
D) Keyword

Q24: _______ is/are harmful as far as readability is concerned.
A) Overloading
B) Orthogonality
C) Control statement (page 16) (100% Sure)
D) Case statement

Q25: ________ brought back pointers, structs, enum types, operator overloading, and goto statement which were eliminated by Java.
A) C# (page 29) (100% Sure)
B) C++
C) PASCAL
D) SNOBOL



Q26: Following are the object oriented programming languages EXCEPT:
A) C++
B) JAVA
C) LISP (page 29) (100% Sure)
D) C#

Q27: _______ may also change global variable as a side effect.
A) dotime LISP iteration
B) time LISP iteration
C) list LISP iteration
D) dolist LISP iteration(Confirm) (100% Sure)

Q28: Simplicity is linked with which of the following language base criteria:
A) Orthogonality
B) Readability (page 15) (100% Sure)
C) Writability
D) Cost of language

Q29: The first compiler was implemented on the _______ computer in 1953.
A) MIT Whirtwind (page 24) (100% Sure)
B) IBM
C) Bell
D) INRIA

Q30: Certain _______ can only be found and fixed if a programmer knows some implementation details such as two-dimensional array in FORTRAN is column major.
A) Rules
B) Exceptions
C) Constants
D) Bugs (page 6) (100% Sure)

No comments:

Post a Comment