CS508 Solved Sample Paper 2023 by Prince Alvi
- Type
- Quiz
- Course
- CS508 Modern Programming Languages
- Size
- PDF 619 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 12. Download the file for all 12 pages.
Sample Paper FINALTERM EXAMINATION Fall 2022 CS508 - Modern Programming Languages Time: 90 min Marks: 60
Q1. The concept of list processing was developed by _________and ________ at the RAND Corporation around 1956.
Harvey Deitel, Paul Deitel Dennis Ritchie, Jean McGee Ritchie
Allen Newell, J. C. Shaw, Herbert Simon
Alan Turing, Charles Babbage
Q2. In LISP, there is a limit to the depth of recursion, and it depends on the ___________.
Version of LISP
Execution speed of processor Operating systems version Programmer’s capabilities
Q3. In LISP, load is an example of _________.
List
Function
Input/Output Predicate
Q4. Programming, in logic programming languages is ___________.
Non-procedural
Procedural Sequential Serial
Q5. In Prolog, we don’t specify __________.
Algorithm
Facts Logical relationships Rules
Q6. CLR (Common Language Runtime) is similar to _____________ .
Java Development Kit
Java Virtual Machine
Software Development Kit Dynamic Link Library
Q7. In order to print the output and go to the next line in C# language, which syntax is correct?
Console. WriteLine("Hello World!”);
Console. Write(" Hello World!”); Console. Write(" Hello Mono World")+ (" New Line"); Console. Write (" Hello Mono World")+ NewLine;
Q8. Structure in C# cannot be inherited by any class, except _________ class.
System
Class Object Interface
Q9. What should be the return type of given C# code?
public ________ setSize (int value) { size = value;
void
int float double
Q10. In C#, object and ___________ are predefined reference types.
int char
string
pointer
Q11. Aliasing is a problem associated with reference types. What will be the value of A.count in given C# code by keeping in mind here aliasing is applied?
object A = new object(); A.count = 5; object B = A; B.count = 10 A.count = ?
Null
Q12. What will be the result of the given statement in C# ?
if( A = B)
B’s value will be assigned to A
It will check whether A = B or not It will check whether B = A or not Compilation error
Q13. If a class is required to access only in same assembly but not by other assemblies, then which keyword would be used in C#?
internal
protected private sealed
Q14. In relation to an array, _________ could be declared in C#.
pointer string class
structure
Q15. Which of the following syntax is correct to relate pointer “bb” with array “b”?
int [] b = {3,5,9]; int b*b = b; int [] b = {3,5,9]; int bb* = b;
int [] b = {3,5,9];
int *bb =b;
int [] b = {3,5,9]; int bb = *b;
Q16. In C#, Object Oriented Programming(OOP) is supported through _________.
classes
structures union enums
Q17. (Marks: 01) - Please choose the correct option While overriding a method, the other overridden method must not be _________.
static
virtual abstract
Related CS508 files
All CS508 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.