Skip to content
VUBuddy

CS508 Final Term Solved MCQs Set 3 by Junaid

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

Q1. Which of the following conversion has to be done explicitly by the programmer in C#?

  •  Float to int
  •  Into to Float
  •  Int to long
  •  Float of double

Q2. The dynamically generate a web page which of the following programming language is most suitable?

  •  Ada
  •  PHP
  •  C++
  •  Prolog

Q3. In C#, which of the following is used to give information to .Net compiler that a class is compliant with common language Specification (CLS)?

  •  Class variables
  •  Class attributes
  •  Class definition
  •  Class function
  1. C# does not support the conversion of ______values to integers.
  •  Boolean
  •  Character
  •  Floating point
  •  Decimal
  1. Classes and objects of PHP are similar to_____
  •  Classes and objects of Basic
  •  Classes and Objects of C
  •  Classes and Objects of JAVA
  •  Classes and Objects of C++

Q6. Which of the following language is used for server-side scripting?

  •  C#
  •  ADDA
  •  PHP
  •  C++

Q7. Which of the given operator is used to return to reference from a function in PHP?

  •  Dot
  1. A variable in______cannot be used unless and until it is not initialized.
  •  ALGOL
  •  C
  •  C++
  •  C#
  1. In order to pass a value by reference to a method in C#, which of the following keyword is used with method parameter.
  •  Refer
  •  New
  •  Ref
  •  Explicit
  1. The code written in PHP is returned to the web browser as:
  •  CSS flexbox
  •  Shell Scripts
  •  Applets
  •  Plain HTML
  1. “With” statement in JavaScript is an alternative of______
  •  Multiple document.write statements
  •  Single document.write statements
  •  Multiple document.read statements
  •  Single document.read statements
  1. C# support only_________________inheritance and it achieve______inheritance through the concept of interfaces.
  •  Multiple,multiple
  •  Single, Multiple
  •  Single, Single

Q13. In the context of C#, which of the following is not true about delegates?

  •  Delegates are value type
  •  Delegates are event based
  •  Delegates are like C/C++ function pointer
  •  Delegates are reference type
  1. FORTRAN, PL 1 and BASIC language provide -------- of variables.
  •  Either implicit and explicit declaration

Q15. Which of the given statement is true if “$a” is not equal to “$b” in PHP?

  •  $a=! $
  •  $a! ==$b
  •  $a! =$
  •  $a==! $
  1. The loop control expression in any loop of C# must be of______type.
  •  Integer
  •  Boolean
  •  Decimal
  •  Float
  1. The_____operator in C# is used to test it the operator/expression is of a certain type.
  •  ‘IN’
  •  ‘IS’
  •  ‘AS’
  •  ‘OUT’
  1. A script written in PHP are executed by:
  •  Web browser
  •  Client machine
  •  Java Applets
  •  Web Server
  1. In PHP ‘Switch’ structure the______starts or implements on implicit loop.
  •  Return statement
  •  Continue Statement
  •  Break Statement
  •  For Loop
  1. PHP stand for
  •  PHP, Home Page
  •  PHP, Hypertext page
  •  PHP, Hypertext Preprocessor
  •  PHP, Home Preprocessor
  1. Which of the Following type of number are not supported by PHP
  •  Real Number
  •  Complex Number
  •  Single Integers
  •  Unsigned Integer
  1. The division of two integers (i.e 7/2) in PHP generates a/an.
  •  Floating Point number
  •  Integer
  •  Exception
  •  Runtime error
  1. Arrays in JavaScript are_________based
  •  Zero index
  •  Length
  •  Location
  •  One index
  1. The____model in JavaScript provides access to the contents of the browser windows.
  •  COM
  •  DOM
  •  BOM
  •  ROM
  1. An______in PHP is an ordered map.
  •  Queue
  •  Array
  •  Stack
  •  String
  1. In the context of C#, a class that is defined on the body of another class is called.
  •  Previous Class
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.