CS508 updated Midterm Solved MCQ's 2020 - VuDaily.com

CS508 updated Midterm Solved MCQ's 2020

CS508 Midterm Solved MCQ'S 2020 (Updated)

CS508 Midterm solved mcqs updated 2020

CS508 Midterm Solved Mcqs By Abu Sufyan


1. The first Compiler was implemented on the --------   computer in 1953.

1.     MIT whirlwind

2.     IBM

3.     Bell

4.     INRIA

2. “Conditional Control transfer” gave rise the idea of ------- which are blocks of code that can be reused over and over

1.     Namespaces

2.     Header Files

3.     Objects

4.     Libraries

3. Following are some of the reasons for studying concepts related to different programming languages EXCEPT?

1.     Increased ability to learn New Languages

2.     Increased capability to design communication links

3.     Increased ability to design new languages

4.     Increased capacity to express programming Concepts

5. In Write ability context, the degree of abstraction is directly related to the-----------.

1.     Expressiveness

2.     Orthogonally

3.     Reliability

4.     Generality

6. SNOBOL was designed for ------- purpose.

1.     String manipulation

2.     AI

3.     Business

4.     Scientific

 

7. How to end while loop in ada?

1.     Exit

2.     End loop

3.     Exit loop

4.     End


8. --------- is the Non Equality Oprator in ADA.

1.     !”

2.     !’’

3.     \”

4.     |”

9. Which statement is correct about the Table in SNOBOL?

 

1.     Table is indexed by number

2.     Table indexed by the key

3.     Table can be indexed by both keys and Numbers

4.     Table can be indexed by both keys and numbers

 

10. Which statement is correct about SNOBOL?

 

1.     Value is assigned to variable first

2.     Variables are not declared before use

3.     Variable must be declared before use

4.     Variable is declared first

11. --------- was the first machine-independent language.

1.     LISP

2.     ALGOL

3.     FORTRAN

4.     SNOBOL

12. --------- is a language for symbolic compilation and its syntax is based on lambda calculus.

 

1.     ALGOL

2.     MATLAB

3.     C

4.     LISP

13. Which of the following is not a symbol in Lisp.

 

1.     Testsymbol

2.     Test symbol

3.     Test-symbol

4.     Test_symbol

 

Important!  In Lisp a symbol is written without space.

 

14. In Lisp there is no concept of -------.

1.     Functions

2.     Sequential statements

3.     Strings

4.     symbols

15. Provides support of data in Ada.

1.     If-else structure

2.     Procedure

3.     Packages

4.     Templates

16. “Everything for everybody” was the motive of this language.

1.     COBOL

2.     LISP

3.     PL/1

4.     JAVA

17. To compare the productivity of different languages which criteria is used?

1.     We should write a Hello World Program in each language.

2.     We should write some complex program in each language. (Not 100% write)

3.     We need to see which language is object oriented and which is not.

4.     We mention its readability.

18. Which of the following is membership operator in ada.

1.     In

2.     Mem

3.     ^^

4.     ^

19. In LISP--------fuction is same as -------- function.

1.     Cdr , cons

2.     Car , first (Correction From Fatima)

3.     Car , rest

4.     Car , second

20. in ENIAC physical motion was eventualy replaced by ---------- Signals.

1.     Analog

2.     Electrical

3.     Digital

4.     Logical

21. $ operator in SNOBOL is used as both a/an------ and---------operator.

1.     External , internal

2.     Unary , external

3.     Unary , binary

4.     Internal , binary

22. Ada is a --------------- language.

1.     Typed

2.     Strongly typed

3.     Weakly typed

4.     Non typed

23. --------- first object oriented language.

1.     COBOL

2.     LISP

3.     JAVA

4.     SIMULA

 

24. ------- represents the class of the languages from functional paradigm.

1.     LISP

2.     PROLOG

3.     Ada

4.     C++

25. You can return structure but not -------from a function in c programming language.

1.     Arrays

2.     Number

3.     Pointers

4.     References

26. Which of the following operator is used for concatenation of statement which is speared over more than one line in SNOBOL?

1.     +

2.     +=

3.     :=

4.     ->

27.  The substitute of C/C++ pointer type in Ada is ------------

1.     Discriminate type

2.     Ada Record

3.     Access type

4.     Both Discriminate type and Ada Record

28. In earlier versions of FORTRAN, parameters were;

1.     Pass by value

2.     Pass by Reference

3.     Pass by type

4.     Only 1 byte could pass

 

29. The list of parameters in Ada subprograms is separated by--------------

 

1.     Dot

2.     Semicolon

3.     Comma

4.     Colon

30. We can use a variables in visual basic without declaring it, This thing decreases reliability on one side and enhance -------------

 

1.     Readability

2.     Write ability

3.     Training cost

4.     Execution speed

 

 

 

 

 

 

 



Post a Comment

2 Comments

Was this article useful? Please Leave Your Feedback by writing what's in your mind.

  1. yes, but
    in 19 mcqs, B is right option(reference from handouts page#66)

    ReplyDelete
    Replies
    1. Thanks! For Your Valueable Feedback. I will Change It.

      Delete