CS508 - Modern Programming Languages - Q. No. 1
In C# Managed code is executed under the control of
CLR
CRL
CS508 - Modern Programming Languages - Q. No. 2
_____is more strongly typed language then _________
C++, C#
C#, C++
C++, Java
None of then given
CS508 - Modern Programming Languages - Q. No. 3
The IS operator in C# is used for_________
Run time type conversion
Run time type checking
Run time type casting
None of the given
CS508 - Modern Programming Languages - Q. No. 4
PHP is a __________typed language.
Strongly
Dynamic
Static
None of Given
CS508 - Modern Programming Languages - Q. No. 5
____ compile into machine independent language, independent code which run in a managed execution environment.
C#
Java
C++
Ada
CS508 - Modern Programming Languages - Q. No. 6
PHP supported all major Databases including______.
ODBC
Oracle
SQL Server
None Of given
CS508 - Modern Programming Languages - Q. No. 7
______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++
CS508 - Modern Programming Languages - Q. No. 8
The keyword unsafe is used while dealing with_____
Loop
Arrays
Pointers
Classes
CS508 - Modern Programming Languages - Q. No. 9
Enumeration type in C# may take any type of _______ in contrast to C++ where it take only _________
Numeric value, integer value
Value type value, numeric value
Primitive type value, reference type value
Value type value, reference type value
CS508 - Modern Programming Languages - Q. No. 10
Tasks in ____are processes and cannot share data but thread in _______ do it.
C# , C++
C++ , Ada
Java , C#
Ada , Java
CS508 - Modern Programming Languages - Q. No. 11
C# code when compiled is converted into ________ code.
MSIL
MISL
CS508 - Modern Programming Languages - Q. No. 12 of
In C# _____can be inherited from other class but no inheritance from it. On the other hand _________ cannot be inherited not inheritance is possible from it is possible.
Private class , public class
Sealed class ,struct in C#
struct in C# , Sealed class
public class , inherited class
CS508 - Modern Programming Languages - Q. No. 13
The concept of sealed class in C# is similar to ________
Struct in C#,
Struct in C++
Abstract class in C#
None of the given
CS508 - Modern Programming Languages - Q. No. 14
Managed or safe code in_______ is executed under the control of common language runtime (CLR) with automatic garbage collection, no explicit memory allocation and de allocation and no explicit destructor.
C++
Java
Ada and C++
C#
CS508 - Modern Programming Languages - Q. No. 15
In C# the if statement condition is an/a ________
Arithmetic expression
Boolean expression
Numeric expression
Both Numeric expression and Boolean expression
CS508 - Modern Programming Languages - Q. No. 16
Java code when compiled is converted into ________ code.
Bit code
Byte code
Kbytes code
Giga byte Code
CS508 - Modern Programming Languages - Q. No. 17
PHP is a __________typed language.
Strongly
Dynamic
Static
None of Given
CS508 - Modern Programming Languages - Q. No. 18
In ______ the relationship between a get and set method is inherited, while in ___________ it has to be maintained.
Java , C++
C++ , C#
Ada , Java
C# , Java or C++
CS508 - Modern Programming Languages - Q. No. 19
C# code when compiled is converted into ________ code.
MSIL
MISL
CS508 - Modern Programming Languages - Q. No. 20
In______ Boolean expression is convertible into integer type.
C#
C++
JAVA
Ada
CS508 - Modern Programming Languages - Q. No. 21
PHP syntax looks like ____________
ASP syntax
C/C++ syntax
CS508 - Modern Programming Languages - Q. No. 22
For narrowing conversion which type conversion is appropriate?
Implicit Conversion
Explicit Conversion
CS508 - Modern Programming Languages - Q. No. 23
In Java we can make pointer of_________.
Any type
Reference type only
CS508 - Modern Programming Languages - Q. No. 24
In C# the value type and reference type variable are interconvert able through ________ concept.
Tagged type
Boxing
Interfaces
None of the given
CS508 - Modern Programming Languages - Q. No. 25
C# support only_________ inheritance and it achieve_________ inheritance through the concept of interfaces.
Multiple, multiple
Single, multiple
CS508 - Modern Programming Languages - Q. No. 26
Tasks in ____are processes and cannot share data but thread in _______ do it.
C# , C++
C++ , Ada
Java , C#
Ada , Java
CS508 - Modern Programming Languages - Q. No. 27
The concept of package in Java is similar to _________
Assembly in C#
Global class in C#
CS508 - Modern Programming Languages - Q. No. 28
The concept of C# jagged array is similar in function to _________
C++ rectangular Array
Java Array of Array
Java pointer Array
C# Array
CS508 - Modern Programming Languages - Q. No. 29
In C# _____can be inherited from other class but no inheritance from it. On the other hand _________ cannot be inherited not inheritance is possible from it is possible.
Private class , public class
Sealed class ,struct in C#
struct in C# , Sealed class
public class , inherited class
CS508 - Modern Programming Languages - Q. No. 30
The concept of sealed class in C# is similar to ________
Struct in C#,
Struct in C++
Abstract class in C#
None of the given