Programming Languages: Java, C++, and C# Basics
Test your knowledge of fundamental concepts across multiple programming languages including Java history, C++ functions and data types, and C# properties and indexers.
Questions
Read-only Properties will be having only a set accessor in the property implementation?
- True
- False
We can only assign values for read only properties from the constructor?
- True
- False
We can declare a field and a property with the same name as they both get stored in differnt places memory?
- True
- False
Static properties can access any members of the class?
- True
- False
A base calss property can be polymarphically overriden in derived class, but modifiers like virtual, override are used at property level not accessor level.
- True
- False
An abstract property in a class carries no code. The derived class will implement it?
- True
- False
In c-sharp we create indexers in place of parameterized property?
- True
- False
Property works on compile and runtime?
- True
- False
If no accessibility level is specified for property, a default level Public is used?
- True
- False
Property return type can not be void?
- True
- False
You can give a property an accessibility higher than the declaring class?
- True
- False
Properties that besides retrieving and writing the value of the field, also it can trigger an event related to the field?
- True
- False
What is the return type of main() ?
- void
- int
- char
- long
Which is not a basic data type of C++ ?
- int
- char
- string
- float
Which is the most widely used and non-used storage class specifier ?
- static
- auto
- mutable
- register
When a function is declared __________________, the function is expanded at the calling block.
- friend
- virtual
- inline
- static
which of the following is not true for static member function ?
- A static member function can access only static member data, static member functions and data and functions outside the class.
- A static member function can be called, even when a class is not instantiated
- A static member function cannot be declared virtual
- A static member function can have access to the 'this' pointer of the class
Java programming language was invented by
- Mary Bellis
- Willam brothers
- James Gosling and others
- Patrick Gill and others
The icon for java
- Oak tree
- Duke
- Water falls
- Teacup
The small group of Sun engineers called ______ were the originators of Java.
- Sun group
- Green Team
- Oak Team
- Green group