SUPERSTARWEBTECH

There is no elevator to success. You have to take the stairs. Take your first steps with SSWT!

CS508-Modern Programming Languages Quiz MCQs Lecture 23-45 Finalterm Objective Questions

CS508-Modern Programming Languages Quiz MCQS #Objective #Questions #FinalTerm
1. In ___ for final fields and methods the value is assigned later but in ___ you assign the value during declaration.
  • Java, C++
  • C++, C#
  • Java, C# ✔
  • C++, Java
2. The concept of C# jagged array is similar in function to ___
  • C++ rectangular Array
  • Java Array of Array ✔
  • Java pointer Array
  • C# Array
3. ___ in PROLOG are loosely typed
  • Variables ✔
  • Constants
  • Atoms
  • Both constants and variables
4. ___ is used to initialize values of arrays in C++ and Java
  • []
  • {} ✔
  • ()
  • “”
5. How many kinds of “type conversion” of primitive types are there in Java?
  • Two ✔
  • Three
  • Four
  • Five
6. In java, explicit conversion of primitive type is done by ___
  • aliasing
  • boxing
  • casting ✔
  • overloading
7. The interference mechanism of PROLOG is based upon ___
  • Forward chaining
  • Propositional logic
  • Back tracking ✔
  • Recursion
8. Dealing with unsafe/unmanaged code in ___ we have to compromise on the type safety.
  • C# ✔
  • Java
  • Ada
  • C++
9. There are no ___ types in java.
  • arrays
  • classes
  • enum ✔
  • boolean
10. In Prolog, a “member(X, T)” predicate is used to check the membership of X in ___
  • class
  • symbol
  • list ✔
  • both class and symbol
11. Unlike C/C++, arrays in PHP are ___
  • Maps ✔
  • Templates
  • Records
  • Both Templates and Records
12. Classes and objects of PHP are similar to ___
  • Classes and objects of Java ✔
  • Classes and objects of C++
  • Classes and objects of Basic
  • Classes and Objects of C
13. The ___ operator in C# is used to test if the operator is of a certain type.
  • ‘IN’
  • ‘AS’
  • ‘IS’ ✔
  • ‘OUT’
14. ___ compile initially to an intermediate. Which can be run by interpretation or just in time compilation or an appropriate virtual machine?
  • C++ and C#
  • C# and Java ✔
  • Java and C++
  • Ada, C++
15. In ___ Boolean expression is convertible into integer type.
  • C# ✔
  • C++
  • Java
  • Ada
16. Managed or safe code in ___ is executed under the control of common language runtime (CLR) with automatic garbage collection, no explicit memory allocation and no explicit destructor.
  • C++
  • Java
  • Ada and C++
  • C# ✔
17. In C#, Managed code is executed under the control of
  • CLR
  • CRL ✔
  • JVM
  • Neither CLR or JVM
18. For event driven mechanism in C# we use ___ just like ___ in C++
  • Event handler, Visual C++
  • Event Buttons, Graphics code
  • delegates, function pointer ✔
  • function pointer, delegates
19. C# code when compiled is converted into ___ code.
  • MSIL ✔
  • MISL
  • Bytecode
  • machine native code
20. In C# to convert ___ into ___ and vice versa we use the concept of boxing.
  • Object type, Primitive type ✔
  • Primitive type, reference type
  • reference type, value type
  • value type, reference type

Author

Anam Afzal

Anam Afzal

Hi, I'm a Pakistani freelancer with a passion for helping businesses achieve their online goals through no-code solutions. I specialize in WordPress customization and ManyChat automation, and I'm always on the lookout for new ways to use technology to make businesses more efficient and successful. I'm also a big believer in the power of no-code tools to democratize technology and make it accessible to everyone. I'm passionate about sharing my knowledge and helping others learn how to use no-code tools to create their own websites, automate their workflows, and grow their businesses. If you're looking for a reliable and experienced no-code developer, I'm here to help. Please feel free to contact me to discuss your project requirements.
SHARE THIS POST