CS508 Quiz No. 1 Solution and Discussion

Please share your current Quiz.

SNOBOL was created specifically for text and string manipulation

___________ 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.

A list in LISP is a group of atoms and /or lists. “(b c)” in list (a (b c)) is _____ ?

list

A language evaluation criteria includes following factors EXCEPT
correct option:
Modularity

Which of the following is the only Control structure in SNOBOL?
GOTO control structure

@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))

How many element(s) are there in LISP list (a (b c))?

Block statement in Ada is very similar to a block in _______.

in C

  1. Increased capacity to express programming concepts
    Study of programming languages helps in increasing the capacity of express
    programming concepts.

LISP was basically developed to solve ________ problems.
Select correct option:
Artificial intelligence
Accounting
Scientific
Business

Indirect referencing in SONOBOL is same as of _____in C.
Pointers

A list in LISP is a group of atoms and /or lists. “(b c)” in list (a (b c)) is _____ ? CS508
fbea9de1-2951-4cfc-8659-63bcef004d05-image.png

In SONOBOL TABLES can be used in a manner similar to _______.

7b24d520-ba81-43a2-b85b-ef8895d8b00c-image.png

Which of the following is used for indirect referencing in SNOBOL. CS508
49deaad4-1ab5-4c12-a22c-b817a46a1982-image.png

Initial version of SONOBOL only supports __________ and string. CS508
76f5d204-7efe-4f95-8a73-10e1463d3149-image.png

SONOBOL is case _______ CS508
870438c1-3c7f-42cb-af01-202340015290-image.png

Pattern . VariableUpon successful completion of pattern matching, the substring matched by the pattern is assigned to the variable as ________ CS508
34b54636-920c-4915-90e0-3746227ec4c6-image.png

_________ is concerned with maintenance and debugging. This is a very important concern because if maintenance cost is reduced, the overall cost on the software will also be reduced. CS508
b1e2ec28-eed4-4455-8f36-2854997d34a0-image.png

Smalltalk was the first purest ______________ language and pioneered graphical user interface. CS508
d6a950c8-59dd-4199-92d0-a6198d1e9b51-image.png

For immediate value assignment ______ sign is used. CS508
17f457b0-c0b2-4b61-82d4-d413bfb47376-image.png

In Ada language, which of the following is used for the initiation of concurrent tasks? CS508

8708c789-b964-4fff-b976-698ca45626da-image.png

One of the major design goals of Ada was
d8437d0f-380b-4141-b60a-6477bcead1bb-image.png

Indirect referencing in SONOBOL is same as of _____in C.
9d3500d7-843e-4c8c-8084-e874baad42c3-image.png

LISP was basically developed to solve ________ problems.
a62e75fe-59ce-4473-a2cc-54fff6c71663-image.png

Learning different programming languages helps in increasing the ________ to express programming concepts.
1775091c-8842-43bd-956e-9ac194d07c1d-image.png

Block statement in Ada is very similar to a block in _______.
7127447c-cae9-408b-b41a-4d1623c0ea4e-image.png

How many element(s) are there in LISP list (a (b c))?
0f8c2df5-fb31-483f-b7d7-8cab0431ffac-image.png

Which of the following is the only Control structure in SNOBOL?
aad5ddc3-a6c4-42b2-91d7-8eb945dde5d5-image.png

A language evaluation criteria includes following factors EXCEPT

ec759821-5e5e-42ee-acca-c7b91a3a98d5-image.png

A list in LISP is a group of atoms and /or lists. “(b c)” in list (a (b c)) is _____ ?

71d3e3d1-93f6-4662-856c-a5e300598915-image.png

___________ is an important feature of Ada language used in embedded systems and operating systems. It is used in managing parallel threads of controls.
24df1cd8-1b45-448d-b4dd-da492d758493-image.png

Abi attempt ni kiya kisi ne…