0

programming languages Online Quiz - 271

Description: programming languages Online Quiz - 271
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Read-only Properties will be having only a set accessor in the property implementation?

  1. True

  2. False


Correct Option: B

We can only assign values for read only properties from the constructor?

  1. True

  2. False


Correct Option: A

We can declare a field and a property with the same name as they both get stored in differnt places memory?

  1. True

  2. False


Correct Option: B

If no accessibility level is specified for property, a default level Public is used?

  1. True

  2. False


Correct Option: B

What is the return type of main() ?

  1. void

  2. int

  3. char

  4. long


Correct Option: B

Which is not a basic data type of C++ ?

  1. int

  2. char

  3. string

  4. float


Correct Option: C

Which is the most widely used and non-used storage class specifier ?

  1. static

  2. auto

  3. mutable

  4. register


Correct Option: B

which of the following is not true for static member function ?

  1. A static member function can access only static member data, static member functions and data and functions outside the class.

  2. A static member function can be called, even when a class is not instantiated

  3. A static member function cannot be declared virtual

  4. A static member function can have access to the 'this' pointer of the class


Correct Option: D

Java programming language was invented by

  1. Mary Bellis

  2. Willam brothers

  3. James Gosling and others

  4. Patrick Gill and others


Correct Option: C

The icon for java

  1. Oak tree

  2. Duke

  3. Water falls

  4. Teacup


Correct Option: B
- Hide questions