MCQ Bank
Which of the following is correct syntax of simple loop in Ada?
- A) loop := is simple -- loop body; end loop simple;
- B) loop : simple -- loop body; end simple;
- C) loop -- loop body; end loop;
- D) simple : loop -- loop body; exit simple;
In the case of Decimal fixed point type in Ada language, the distance between values is implemented as a power of ______.
- A) 10
- B) 2
- C) 8
- D) 16
Correct syntax of creating variable of a specific length in Ada is:
- A) Some_String: String(1..20);
- B) Some_String: String(1,20);
- C) Some_String: String(1 : 20);
- D) Some_String: String(1>20);
We use tagged type in Ada for ________________.
- A) Abstraction
- B) Polymorphism
- C) Inheritance
- D) Encapsulation
A/An _________________is a sequence of ordered enumeration literals in Ada.
- A) Struct type
- B) Float data type
- C) String data type
- D) Enumeration type
Which of the following statement of LISP generate an error?
- A) >(+ (/ 3 5) 4)
- B) >(+ (sqrt 4) 4.0)
- C) >(sqrt x)
- D) >(setq x 3.0)
A ‘break’ statement in C-language is used to exit from loop structure. It’s alternative in Ada language is:
- A) kill
- B) breakif
- C) exit
- D) terminate
Lists can be constructed (created and extended) with the help of ________ basic functions in LISP.
- A) Five
- B) Three
- C) Two
- D) Four
All of the following were main design goals of Ada language EXCEPT:
- A) Design language for the Department of Defence (USA)
- B) Avoid unintentional mistakes during programming
- C) Designing a portable language
- D) Program reliability and maintenance
Using Ada, the correct way to declare a floating point type with 15 decimal digits of precision is __________.
- A) type Double is digit 15;
- B) type Double in digit 15;
- C) type Double in digits 15;
- D) type Double is digits 15;
In Ada, the correct values of the following modular type are _______________. type M is mod 7;
- A) 1,2,3,4,5,6,7
- B) 0,1,2,3,4,5,6
- C) 1,2,3,4,5,6
- D) 0,1,2,3,4,5
Which of following is the membership operator in Ada?
- A) @
- B) ^
- C) mem
- D) in
In Ada, elementary types are also termed as ___________.
- A) Built-in Types
- B) Static Types
- C) User-defined Types
- D) Public Types
Which of the following is not a part of block statement structure in Ada?
- A) Exception
- B) Declare
- C) Return
- D) Begin
The symbols used for logical true and false in LISP are:
- A) Tr and Fr
- B) Y and N
- C) T and NIL
- D) T and F
__________ operations in Ada language must have one of its parameters of the tagged type.
- A) Primitive
- B) Generic
- C) Concurrent
- D) Concurrent
In ADA programming language, ** operator is used for ___________.
- A) Range
- B) Exponentiation
- C) Membership
- D) Remainder
The list of parameters in Ada subprograms is separated by ___________.
- A) Colon
- B) Comma
- C) Semicolon
- D) Dot
Which of the following function of LISP assigns value 5 to symbol y?
- A) >(setq,5,y)
- B) >(setq 5 y)
- C) >(setq y 5)
- D) >(setq,y,5)
_________________ is not a discrete type in Ada.
- A) Integer type
- B) String Type
- C) Character type
- D) Modular type