Solved MCQ of Java set-4
1. In Java variables, if first increment of the variable takes place and then the assignment occurs. This operation is also called ............................. .
A) pre increment
B) post increment
C) incrementation
D) pre incrementation
2. When the operators are having the same priority, they are evaluated from ................. ............. in the order they appear in the expression.
A) right to left
B) left to right
C) any of the order
D) depends on compiler
3. In java, ............. can only test for equality, where as ............ can evaluate any type of the Boolean expression.
A) switch, if
B) if, switch
C) if, break
D) continue, if
4. The ....................... looks only for a match between the value of the expression and one of its case constants.
A) if
B) match
C) switch
D) None of the above
5. System.in.read() is being used, the program must specify the .................. clause.
A) throws.java.out.IOException
B) throws.java.in.IOException
C) throws.java.io.IOException
D) throws.java.io.InException
6. By using ................... you can force immediate termination of a loop, by passing the conditional expression and any remaining code in the body of the loop.
A) Break
B) Continue
C) Terminate
D) Loop Close
7. The out object is an object encapsulated inside the ................. class, and represents the standard output device.
A) standard
B) local
C) globlal
D) system
8. The third type of comment is used by a tool called .................. for automatic generation of documentation.
A) Java commenting
B) Java generator
C) Java doc
D) Java loc
9. In the second type the information written in java after // is ignored by the .......................
A) Interpreter
B) Compiler
C) Programmer
D) All of the above
10. The compiled java program can run on any ..................... plateform having Java Virtual Machine (JVM) installed on it.
A) program
B) java
C) hardware
D) non java
2. B) left to right
3. A) switch, if
4. C) switch
5. C) throws.java.io.IOException
6. A) Break
7. D) system
8. C) Java doc
9. B) Compiler
10.C) hardware
A) pre increment
B) post increment
C) incrementation
D) pre incrementation
2. When the operators are having the same priority, they are evaluated from ................. ............. in the order they appear in the expression.
A) right to left
B) left to right
C) any of the order
D) depends on compiler
3. In java, ............. can only test for equality, where as ............ can evaluate any type of the Boolean expression.
A) switch, if
B) if, switch
C) if, break
D) continue, if
4. The ....................... looks only for a match between the value of the expression and one of its case constants.
A) if
B) match
C) switch
D) None of the above
5. System.in.read() is being used, the program must specify the .................. clause.
A) throws.java.out.IOException
B) throws.java.in.IOException
C) throws.java.io.IOException
D) throws.java.io.InException
6. By using ................... you can force immediate termination of a loop, by passing the conditional expression and any remaining code in the body of the loop.
A) Break
B) Continue
C) Terminate
D) Loop Close
7. The out object is an object encapsulated inside the ................. class, and represents the standard output device.
A) standard
B) local
C) globlal
D) system
8. The third type of comment is used by a tool called .................. for automatic generation of documentation.
A) Java commenting
B) Java generator
C) Java doc
D) Java loc
9. In the second type the information written in java after // is ignored by the .......................
A) Interpreter
B) Compiler
C) Programmer
D) All of the above
10. The compiled java program can run on any ..................... plateform having Java Virtual Machine (JVM) installed on it.
A) program
B) java
C) hardware
D) non java
Answers:
1. A) pre increment2. B) left to right
3. A) switch, if
4. C) switch
5. C) throws.java.io.IOException
6. A) Break
7. D) system
8. C) Java doc
9. B) Compiler
10.C) hardware
You Might also view the following Related Posts
- Solved MCQ of Java Set-1
- MCQ of Java with answer set-2
- Solved MCQ of Java for Java Proficiency test set-3
- Solved MCQ of SQL Server set-1
- MCQ of SQL With Answer Set -2
- Solved MCQ of Internet and HTML set-1
- Solved MCQ of C set-1
- Solved MCQ of DBMS Set - 3
You can view the following other posts
- Solved MCQ of System Analysis and Design Set-3
- Solved MCQ of Data Structure Set - 2
- Solved MCQ of Java for Java Proficiency test set-3
- MCQ of C++ with answer Set-2
- MCQ of Computer Networking with answer set-4
- Solved MCQ of Database Management System (DBMS) Set - 8
For other more Multiple Choice Questions (MCQs): Click Here
Solved MCQ of Java set-4
Reviewed by mohamed
on
9:49 AM
Rating:
No comments: