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

Static properties can access any members of the class?

  1. True

  2. False


Correct Option: B

A base calss property can be polymarphically overriden in derived class, but modifiers like virtual, override are used at property level not accessor level.

  1. True

  2. False


Correct Option: A

An abstract property in a class carries no code. The derived class will implement it?

  1. True

  2. False


Correct Option: A

In c-sharp we create indexers in place of parameterized property?

  1. True

  2. False


Correct Option: A

Property works on compile and runtime?

  1. True

  2. False


Correct Option: A

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

  1. True

  2. False


Correct Option: B

Property return type can not be void?

  1. True

  2. False


Correct Option: A

You can give a property an accessibility higher than the declaring class?

  1. True

  2. False


Correct Option: B

Properties that besides retrieving and writing the value of the field, also it can trigger an event related to the field?

  1. True

  2. False


Correct Option: A

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

When a function is declared __________________, the function is expanded at the calling block.

  1. friend

  2. virtual

  3. inline

  4. static


Correct Option: C

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

The small group of Sun engineers called ______ were the originators of Java.

  1. Sun group

  2. Green Team

  3. Oak Team

  4. Green group


Correct Option: B
- Hide questions