Which of the following is the exit controlled loop? (VHSE INSTRUCTOR 2015)
A. For
B. While
C. Do-while
D. Switch
Ans: Do- While
If you to execute different lines of code for different lines of code for different choices of a particular variable. Which one of the following control statements will you use? (VHSE INSTRUCTOR 2015)
A. For
B. While
C. Do-while
D. Switch
Ans: Switch
Which one of the following cannot be used as an identifier in C++?(VHSE INSTRUCTOR 2015)
A. Name
B. Name 123
C. Break
D. Break_123
Ans: Break
Break is keyword in C++
How many bytes of memory is needed to save a float variable? (VHSE INSTRUCTOR 2015)
A. 8
B. 4
C. 2
D. 16
Ans: 4
Multiple inheritances in java can be achieved by
A. Interface
B. Polymorphism
C. Abstraction
D. Encapsulation
Ans: Interface
Which is the base class of all classes in java?
A. System.lang
B. Class.Object
C. Java.lang.object
D. None of these
Ans: Java.lang.object
Which of the interface contains all the methods used for handling thread related operations in java?
A. Runnable interface
B. Math.interface
C. System interface
D. Thread handling interface
Ans: Runnable interface
Which of the package contains abstract keyword ?
A. Java.lang
B. Java.util
C. Java.io
D. Java.system
Ans: Java.lang
Int i=6, j=7,k;
K=i++ +-- j
Cout<<k<<i<<j;
What will be the output of the above mentioned code?
A. 1276
B. 1376
C. 1367
D. 1266
Which one of the following is the unary operator?
A. *
B. +
C. -
D. All of the above
By default class variable is
- Member variable
No comments:
Post a Comment