CS508 Quiz No. 1 Solution and Discussion
-
__________helps in creating types of your own choice even numeric types can be created. CS508
Ada
LISP
FORTRAN
PROLOG -
If a language become very simple then it will _______________. CS508
increase readability
increase writability
increase readability and decrease writability
decrease both readability and writability -
COBOL was the first language that brings the concept of __________. CS508
Records
Structure
Object
Variable
-
Which of the following functions assigns value 5 to symbol y.? CS508 >
(setq 5 y) -
In LISP, following statement returns the difference of the two lists. CS508
(Difference L1 L2)
>(set-difference L1 L2)
-
____ is used to give comments in Ada language. CS508
/*
*/
//
– -
What is maximum length of variable name in Snobol? CS508
16
32
64
120
-
Elements of the array in SNOBOL4 _______ CS508
must be of same type
not necessarily of the same
-
Following factors influences a portable language design EXCEPT CS508
Computer architecture
Readability
Programmer’s time
Windows XP -
-
LISP was basically developed to solve ________ problems.
Page:75
LISP was one of the earliest programming language. It was designed at MIT for artificial
intelligence and it has since been the defacto standard language for the AI community,
especially in the US.For immediate value assignment ______ sign is used.
Page 37
The $ is used for immediate value assignment even if the entire pattern does not match. It
is used as follows:Following statement returns the union of the two list in LISP.
Page : 68
Block statement in Ada is very similar to a block in _______.
Page:56
_____________ was considered good for describing algorithms.
Page:24
The declarative language among the following is CS508 C
Page:77
In Ada programming language Tagged types are used for _____
Page:59
_____ are a type of Aliasing.
How many element(s) are there in LISP list (a (b c))? CS508 1
Page:63
In __________, Enumeration type can also be used as indexes in arrays.
Page:51