MCQ Bank
__________ was developed at Bell Labs by Stroustrup. It evolved from C and SIMULA 67.
- A) C#
- B) C++
- C) Java
- D) Smaltalk
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)
- B) V = ARRAY(10. 1.0)
- C) V = ARRAY(10; 1.0)
- D) V = ARRAY(10, 1.0)
We use ______operator for indirect referencing in SNOBOL.
- A) Binary dot(.)
- B) Unary $
- C) Unary dot(.)
- D) Binary $
Which of the following language was designed as a hardware description language?
- A) APL
- B) PASCAL
- C) SIMULA
- D) PL/1
Plus sign (+) is used for _______ in SNOBOL.
- A) Body of the program
- B) Immediate assignment
- C) Line Continuation
- D) Line Breakge
Which of following is considered as legal variable name in SNOBOL.
- A) _myvar
- B) .myvar
- C) my.var
- D) 1myvar
The GOTO statement in SNOBOL is__________.
- A) Implicit
- B) An indirect reference
- C) Explicit
- D) Pattern matched
Which of the following statement is correct in SNOBOL?
- A) :S(label) F (label2)
- B) : S(label) F(label2)
- C) :S(label) F(label2)
- D) :S(label)F(label2)
The ___________ operator is used for conditional assignment only when the entire pattern is matched.
- A) . (dot)
- B) $ (dollar)
- C) + (plus)
- D) - (minus)
In SNOBOL4, the ____________ function is used to replace one character with another in the entire string.
- A) REPLACE
- B) CHANGE
- C) ALTERATION
- D) EXCHANGE
Which of the following language had great influence on modern high level programming languages like C?
- A) Lisp
- B) ALGOL68
- C) FORTRAN I
- D) COBOL
Space operator in SNOBOL can be used for _____________.
- A) End Statement
- B) Concatenation
- C) Immediate Assignment
- D) Replacement
The result of expression 2**3 in SNOBOL will be:
- A) 5
- B) 36
- C) 8
- D) 6
“Everything for everybody” was the motive of the language:
- A) LISP
- B) PL/1
- C) JAVA
- D) COBOL
Maps in SNOBOL may also be available in _______________
- A) MATLAB online sources
- B) C++ standard library
- C) C standard library
- D) Prolog standard library
COBOL was the first language that brought the concept of __________.
- A) Structure
- B) Variable
- C) Records
- D) Object
____________ was designed by Niklaus Wirth in 1971.
- A) Simula
- B) Java
- C) C
- D) Pascal
Which statement is correct about SNOBOL?
- A) Variable is declared first
- B) Variables are not declared before use
- C) Value is assigned to variable first
- D) Variables must be declared before use
Plankalkül has __________ arithmetic.
- A) Decimal Point
- B) Long Point
- C) Floating Point
- D) Double Point
Which of the following is an example of null assignment in SNOBOL?
- A) NULL =
- B) V = “NULL”
- C) NULL = “NULL”
- D) NULL = “Hello”