Skip to content
VUBuddy

CS508 Midterm Past Papers by Rana Abubakar Khan

Modern Programming Languages PDF 995 KBUpdated 23 Oct 2026
Midterm past paper CS508 Midterm Past Papers by Rana Abubakar Khan PDF 995 KB
vubuddy.com
Type
Midterm past paper
Course
CS508 Modern Programming Languages
Size
PDF 995 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 995 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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?

  1. 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)

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

  1. Write two data type use in SNOBOL.
  2. Why we say expansion handling mechanism of Ada good then other language.
  3. Type BIG is mod 8;

big1: BIG:=3; any error in Ada code

  1. Write three aspect of Readability.
  2. Why we not write > (squire x) in lips. Write any way to assign value to x.
  3. Why Readability preferred over writability when conflicting satiation occur. Explain
All CS508 files →
CS508 Modern Programming Languages All CS508 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.