MCQ Bank
Which of the following operator is used for string concatenation in Ada?
- A) &
- B) !
- C) *
- D) $
Which of the following is used to represent code and data in LISP?
- A) T-symbol
- B) S-expression
- C) Package
- D) >cdr statement
Each ‘if’ statement in Ada language must be terminated with corresponding:
- A) ‘then’ statement
- B) ‘end if’ statement
- C) ‘else’ statement
- D) ‘elsif’ statement
Data types in Ada can be extended through:
- A) Inheritance
- B) Functions
- C) Arrays
- D) Polymorphism
A 'while' loop in Ada is terminated by ______ keyword.
- A) break
- B) end loop
- C) end while
- D) exit
The return value of a function in a tagged type of Ada language can be an instance of:
- A) Another function
- B) Package
- C) Tagged type
- D) Template
Using Ada language, the correct way to declare an integer type with the lower value being 1 and the upper value being 100 is __________.
- A) type Marks is range 1;;100;
- B) type Marks is range 1..100;
- C) type Marks is range 1::100;
- D) type Marks is range 1,,100;
__________ function is used to forbid the evaluation of x in LISP.
- A) (setq x)
- B) (cons x)
- C) (quote x)
- D) (setf x)
If you want to assign a value 10 to a variable named ‘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;
- D) Roll_No := 10;
Which of the following is a valid symbol in LISP?
- A) Roll No.
- B) CGPA
- C) ‘Price’
- D) “Employee ID”
Which of the following is the Range Operator in ADA programming language?
- A) ,,
- B) %
- C) ..
- D) #
Generics in Ada language are like ________ in C++.
- A) templates
- B) functions
- C) classes
- D) enumerators
Ada language supports encapsulation through:
- A) Packages
- B) Functions
- C) Streams
- D) Structures
The structure that is used to group data and subprograms in Ada language is called:
- A) Array
- B) Package
- C) Class
- D) Function
In which of the following style of programming, evaluation of expression is emphasized rather than execution of commands?
- A) Functional Programming
- B) Aspect-based Programming
- C) Generic Programming
- D) Object-oriented Programming
In Ada, Boolean is a _______________ enumeration type.
- A) Pre-defined
- B) User defined
- C) Client-defined
- D) Post-defined
In Ada programming language, _____________ operator is used to access individual fields of a record type.
- A) Colon
- B) Space
- C) Dot
- D) Exclamation
A function in Ada language can have:
- A) any number of ‘return’ statements
- B) only one ‘return’ statement
- C) at-least three ‘return’ statements
- D) maximum two ‘return’ statements
Which of the following operator in Ada is used to check the non-equality of two operands?
- A) !=
- B) /=
- C) ==!
- D) <>
One of the major design goal of Ada language was ________________.
- A) to help testers to test Ada application easily
- B) to make it difficult for developers to make mistakes
- C) to help developers to code the software in lesser time
- D) to help develop an automated IDE for Ada