CS508 Quiz No. 1 Solution and Discussion

Elements of the array in SNOBOL4 _______ CS508
must be of same type
not necessarily of the same
51ff33fa-6b85-4251-b672-8935f437ad40-image.png

What is maximum length of variable name in Snobol? CS508
16
32
64
120
7acaa4ff-679b-4a6d-b82f-cc6c28b4a19b-image.png

____ is used to give comments in Ada language. CS508
/*
*/
//

a8043084-eb63-4fb4-8ac3-aba1814213e3-image.png

In LISP, following statement returns the difference of the two lists. CS508
(Difference L1 L2)
>(set-difference L1 L2)
d9ff4391-f798-420b-99bf-50f389fade74-image.png

Which of the following functions assigns value 5 to symbol y.? CS508 >
(setq 5 y)

31d912ea-a9b9-405f-be0b-79f320afcbb9-image.png

COBOL was the first language that brings the concept of __________. CS508
Records
Structure
Object
Variable
d801e086-63ed-494a-bdf5-c7e9eb739f19-image.png

If a language become very simple then it will _______________. CS508
increase readability
increase writability
increase readability and decrease writability
decrease both readability and writability

dd6049c9-d3a8-4eed-93d2-b4589454b665-image.png

__________helps in creating types of your own choice even numeric types can be created. CS508
Ada
LISP
FORTRAN
PROLOG

3409e3ed-5822-4ded-b30c-b2e61b8e426d-image.png