Skip to content
VUBuddy

CS508 Final Term Solved Subjective Set 2 by Junaid

Modern Programming Languages PDF 932 KBUpdated 23 Oct 2026
Final term past paper CS508 Final Term Solved Subjective Set 2 by Junaid PDF 932 KB
vubuddy.com
Type
Final term past paper
Course
CS508 Modern Programming Languages
Size
PDF 932 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 932 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 2, 3, 4 of 19. Download the file for all 19 pages.

  1. Write the 5 Language Name.

Answer:  Assembly (1)  C (2.5)  Pascale (3.5)  Basics (5)  Lisp (5)  C++ (6)

  1. Hello World in Pascale.

Answer: Program Hello(input,output) Begin Writelin(‘Hello World’) End.

  1. Hello World in C.

Answer: #include<stdio.h> Int main(){ Printf(“Hello World”);

  1. Hello World in C++.

Answer: #include<iostream> Using namespace std; Int main(){ Coout<<”Hello world!”;

  1. Hello World in C#.

Answer: Using system; Public class Helloworld{ Public static void Main(){ Console. WriteLine(“Hello World”);

  1. Hello World in JAVA.

Answer: Class Helloworld{ Public static void main(string[]args){ System.out.println(“Hello World”);

7. Hello World In PHP

Answer: <?php echo “Hello World”;

  1. SNOBOL stand For.

Answer: StriNg Oriented symBOlic Language.

Q9. What is SNOBOL?

Answer: It is A StriNg Oriented SymBOlic Language. It is a special purpose of Language for String manipulation and Handling. It was developed in 1962 at the bell Labs by Ferber, Griswold and Polensky. SNOBOL supported Both Positive and Negative integer. In SNOBOL a variable must begin with Upper and Lower case. If the character is the combination of letter the it used (_) for initializing the variables.

Junaid, juanid123malik, Junaid_Malik

  1. Statement Body in SNOBOL.
  •  Assignment statement
  •  Pattern Matching Statement
  •  Replacement Statement
  •  End Statement
  1. Features of SNOBOL.
  •  Dynamic Operator
  •  Overloaded Operator
  •  Overloading Operator
  •  Run time compilation
  •  Space as Operator
  •  Variable Length String
  •  String operator Include Concatenation.
  •  Go-to Control Structure

Q12. How can you determine the size of array in SNOBOL?

Answer: The size of array in SNOBOL can be determined at runtime by Using the input A= array[input]

Q13. What is Main Goal of Adda Language?

  •  Program reliability and Maintenance
  •  Program as Human activity
  •  Efficiency

Q14. What is the Feature of Adda?

  •  It is Strongly Typed
  •  Task can be created and communicate.
  •  It supports Object-Oriented-Language
  •  The interface of other Languages is included in this Language.
  •  Packages and typed can be generic.
  1. Write IO header file for Ada.

Answer: With ada. Text_Io; Use ada. Text_Io;

  1. Hello World in ADDA.

Answer: With ada. Text_Io; Use ada.text_Io; Procedure hello is Begin Put_Line (“Hello World”); End hello;

Q17. What are elementary adda type?

  •  Scalar Type
  •  Discrete Type
  •  Fixed point Type
  •  Access Type
  •  Real Type
  1. Write the name of looping in ADDA.

Answer: There are three types of loops in ADDA.

  •  Unconditional Loop
  •  For Loop
  •  Do-While Loop
  1. How many character Types are supported in Adda.

Answer: There are two-character types are supported in Adda.

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.