CS508 Quiz No. 1 Solution and Discussion
-
- Increased capacity to express programming concepts
Study of programming languages helps in increasing the capacity of express
programming concepts.
- Increased capacity to express programming concepts
-
Block statement in Ada is very similar to a block in _______.
in C
-
How many element(s) are there in LISP list (a (b c))?
-
@zaasmi
write (list 1 2)) (terpri) (write (list 'a 'b)) (terpri) (write (list 1 nil)) (terpri) (write (list 1 2 3)) (terpri) (write (list 'a 'b 'c)) (terpri) (write (list 3 4 'a (car '(b . c)) (* 4 -2))) (terpri) (write (list (list 'a 'b) (list 'c 'd 'e)))
When you execute the code, it returns the following result −
(1 2) (A B) (1 NIL) (1 2 3) (A B C) (3 4 A B -8) ((A B) (C D E))
-
Which of the following is the only Control structure in SNOBOL?
GOTO control structure -
A language evaluation criteria includes following factors EXCEPT
correct option:
Modularity -
A list in LISP is a group of atoms and /or lists. “(b c)” in list (a (b c)) is _____ ?
list
-
___________ is an important feature of Ada language used in embedded systems and operating systems. It is used in managing parallel threads of controls.
Features of Ada include: strong typing, modularity mechanisms (packages), run-time checking, parallel processing (tasks, synchronous message passing, protected objects, and nondeterministic select statements), exception handling, and generics.
-
SNOBOL was created specifically for text and string manipulation