CS508 Midterm Past Papers by Rana Abubakar Khan
- Type
- Midterm past paper
- Course
- CS508 Modern Programming Languages
- Size
- PDF 995 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 21. Download the file for all 21 pages.
Rana Abubakar Khan
If you want to learn computer programming then contact with me
JOIN FB GROUP FOR VU HELP
ON JUNE 29, 2018 AT 1:11PM
Today's paper was very tough
no mcq from past papers
why fortran60 was not widely used? 5 marks
language used for Artificial intelligence ? 3 marks
Snobol se zyada paper aya tha.
My Paper today at 8:30 Total MCQs=18 (17 from Past papers and 1 was new)
Total Subjective = 5 (3+3+5+5+5)
Define a record of Cat aour us k attributes diay huay thy (5 M) If Zuse’s Plankalkül Language was introduced earlier which 2 languages we may not seen? And why? (5) Answer FORTRAN & COBOL
Code was given in SNOBOL jis main size function sy resultant string aour us ka size batana tha (5)
Language which do not supply array bound checking at compile time. And what will be the problem
Answer
I think java provides it. Problem will be at run time and an exception will occure
Three Math Functions in LISP (3 M)
Answer
Sin, Cos, Tan, Exp
Objective k file attach hy all in 1 past papers and quizes
Here I am going to share my cs508 paper which was held on 17 december 2016 The questions in cs508 current paper was like:
Q1. Which language had a strong influence on one of the high level system programming language like C?
Q2. What is the role of Atoms in LISP?
Q3. Which of the languages first provided a structured exception handling mechanism among Ada and C++?
Q4. Considering ‘Generalization’ as an important factor that helps to manage complexity of any programming language. Briefly mention how could generality be considered as an important language evaluation criteria?
- Explain the concept of dangling else with an example. And also explain the solution to this problem. 6. Suppose you have to write a program in Ada Language for calculating marks of a student for 3 subjects. The total marks for each subject is as follow: Subject1= 100 Subject2= 200 Subject2= 400 How will you restrict users to not enter values less than 0 and greater than total marks? Also write code snippet for this.
Note: The use of loops and conditions are not allowed.
Q1. Why COBOL was encountered at the start with problems? (2 marks)
- From the following code snippet in Ada execute which statement if "A" contains "12". 2 marks. Case "A" is
When 1 => fly When 11| 14 => null; When 22|20..30=> ; When others=>complain; End case;
Q3. Code given tha us ka output btana tha Lisp mein tha code. (3 marks)
Q4. In SnoBol4 create a table of unspecified length. (3 marks)
Q5. In transition C++ in Java what data structures are eliminated. Also give the reasons of elimination of data structure of C++ in Java. (5 marks)
Q5. In Ada how is different (5 marks)
I) C expression symbolic literals. II)C++ operator overloading.
CURRENT PAPER CS508 17/12/2016
- Write two data type use in SNOBOL.
- Why we say expansion handling mechanism of Ada good then other language.
- Type BIG is mod 8;
big1: BIG:=3; any error in Ada code
- Write three aspect of Readability.
- Why we not write > (squire x) in lips. Write any way to assign value to x.
- Why Readability preferred over writability when conflicting satiation occur. Explain
Related CS508 files
All CS508 files →- CS508 Midterm File 1 Midterm PDF 1.2 MB
- CS508 Midterm Solved Subjective CQs by Junaid Midterm PDF 862 KB
- CS508 Midterm File 3 Midterm PDF 2.2 MB
- CS508 Midterm File 2 Midterm PDF 1.7 MB
- CS508 Highlighted Handouts Set 2 Highlighted PDF 2.5 MB
- CS508 Solved Grand Quiz Spring 2021 by Riz Mughal Quiz PDF 946 KB
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.