Notifications
Clear all
Dec 01, 2023 3:28 pm
1) The correct syntax of “if statement” in LISP is:
- (if <else> <test> <then>)
- (if <test> <then> <else>)
- (if <else> <then> <test>)
- (if <then> <test> <else>)
2) In Ada language, which of the following is used for the initiation of concurrent tasks
- Generics
- Tagged types
- Subprograms
- Tasking
3) Discriminated Records in Ada are like ________ types in C.
- Intersection
- Union
- Join
- Set
4) In Ada, the correct way to declare a Boolean type with values of False and True is _______
- Type Boolean is (False, True);
- Type Boolean is (False; True);
- Type Boolean is (False: True);
- Type Boolean is (False, True);
5) In Ada, Boolean is a ________ enumeration type.
- Post-defined
- Pre-defined
- Client-defined
- User-defined
6) What will be the output of following LISP expression
> (/ 5.0 2)
- 2/5
- 4
- 5
- 5/2
7) A “while loop’ in Ada is terminated by _________ keywords.
- End loop
- Break
- Exit
- End while
8) In LISP, if predicate is false then output will be:
- 0
- T
- NIL
- F
9) In Ada, tagged type definition is performed in a ________.
- Template
- Package
- Structure
- Record
10) An _________ program has two types of elements: atoms and lists.
- Ada
- C++
- PROLOG
- LISA