Tag: programming languages
Questions Related to programming languages
-
p is a pointer to a 10 element integer array
-
p is a 10-element array of pointers to integer quantity
-
p is a pointer to an integer quantity
-
None of the above
-
p is a pointer to pointer to integer
-
p is a pointer to a function that accepts an argument which is a pointer to a character and returns an integer quantity
-
p is a function that accepts an argument which is a pointer to a character and returns an integer quantity
-
p is a function that accepts an argument which is a pointer to a character and returns a pointer to an integer quantity
-
p is a pointer to a 10 element integer array
-
p is a pointer to an integer quantity
-
p is a 10-element array of pointers to an integer
-
None of the above
-
The class does not compile because the top level class cannot be protected.
-
The program prints "abc"
-
The program prints "abcabc"
-
The program does not compile because statement "test = test + test" is illegal.
-
A static method may be invoked before even a single instance of the class is constructed.
-
A static method cannot access non-static methods of the class.
-
Abstract modifier can appear before a class or a method but not before a variable.
-
final modifier can appear before a class or a variable but not before a method.
-
Synchronized modifier may appear before a method or a variable but not before a class.
-
It is possible for a program to free memory at a given time.
-
Garbage Collection feature of Java ensures that the program never runs out of memory.
-
It is possible for a program to make an object available for Garbage Collection.
-
The finalize method of an object is invoked before garbage collection is performed on the object.
-
Tree
-
Stack
-
Queue
-
Array
-
LinkedList
-
Map
-
Prints: 1111111,177,127,7f
-
Prints: 11111111,377,256,ff
-
Compile-time error
-
Run-time error
-
None of the above