Java Software Architect Set 4
Free Online Best Java Software Architect MCQ Questions for improve your basic knowledge of Java Software Architect. This Java Software Architect set 4 test that contains 25 Multiple Choice Questions with 4 options. You have to select the right answer to a question.
Start
Congratulations - you have completed Java Software Architect Set 4.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1 |
All java classes are derived from
A | java.lang.Class |
B | java.util.Name |
C | java.lang.Object |
D | java.awt.Window |
Question 2 |
Several vendors are adding ____ to their existing database______
A | JDOBC, middle-ware products |
B | JDBC drivers, upper-ware products |
C | middle-ware products, JDBC drivers |
D | JDBC drivers, middleware products |
Question 3 |
For the execution of DELETE SQL query in JDBC,______the method must be used
A | executeQuery() |
B | executeDeleteQuery() |
C | executeUpdate() |
D | executeDelete() |
Question 4 |
Which method will a web browser call on a new applet?
A | main method |
B | destroy method |
C | execute method |
D | init method |
Question 5 |
Filters were officially introduced in the servlet_____ specification.
A | 2.1 |
B | 2.3 |
C | 2.2 |
D | 2.4 |
Question 6 |
Which of the following is not the java primitive type
A | Byte |
B | Float |
C | Character |
D | Long double |
Question 7 |
Command to execute compiled java program is
A | java |
B | javac |
C | run |
D | javaw |
Question 8 |
JSP is not governed by the_______ defined by the Java 2 specifications.
A | syntax and semantics |
B | rules and regulation |
C | Jakarta tomcat |
D | compiler |
Question 9 |
The command javac____
A | Converts a java program into binary code |
B | Converts a java program into bytecode |
C | Converts a java program into machine language |
D | None of the above |
Question 10 |
GET methods are great for sending________amounts of information that you do not mind having visible in a URL.
A | negligible |
B | huge |
C | small |
D | Both a and b |
Question 11 |
Which of the following is true about Java.
A | Java does not support overloading. |
B | Java has replaced the destructor function of C++ |
C | There are no header files in Java. |
D | All of the above. |
Question 12 |
The concept of distributed object computing can be termed as a marriage between _____ and _________
A | C++, java |
B | C, C++ |
C | Networking, Object-oriented programming |
D | C, Object-oriented programming |
Question 13 |
In a java program, package declaration______ import statements.
A | must precede |
B | must succeed |
C | may precede or succeed |
D | None of the above |
Question 14 |
When a programming class implements an interface, it must provide behavior for
A | two methods defined in that interface |
B | any methods in a class |
C | only certain methods in that interface |
D | all methods defined in that interface |
Question 15 |
In order to run JSP________is required.
A | Mail Server |
B | Applet viewer |
C | Java Web Server |
D | Database connection |
Question 16 |
_____are not machine instructions and therefore, Java interpreter generates machine code that can be directly executed by the machine that is running the Java program.
A | Compiled Instructions |
B | Compiled code |
C | byte code |
D | Java mid code |
Question 17 |
Inner classes are
A | anonymous classes |
B | nested classes |
C | sub classes |
D | derived classes |
Question 18 |
The service phase of the servlet life cycle represents all interactions with requests until the servlet is ______
A | created |
B | running |
C | initiated |
D | destroyed |
Question 19 |
Which of the following is not mandatory in a variable declaration?
A | a semicolon |
B | an identifier |
C | an assignment |
D | a data type |
Question 20 |
Java Servlet
i) is a key component of server-side java development
ii) is a small pluggable extension to a server that enhances the functionality
iii) runs only in Windows Operating System
iv) allows developers to customize any java enabled server
A | i, ii & iii are true |
B | i, iii & iv are true |
C | ii, iii & iv are true |
D | i, ii & iv are true |
Question 21 |
How many times does the following code segment execute
int x=1, y=10, z=1;
do{y–; x++; y-=2; y=z; z++} while (y>1 && z<10);
A | 1 |
B | 10 |
C | 5 |
D | infinite |
Question 22 |
What would happen if “String[]args” is not
included as an argument in the main method
A | No error |
B | Compilation error |
C | The program won’t run |
D | Program exit |
Question 23 |
______ is the first phase of the servlet life cycle.
A | Initialization |
B | Service |
C | Destruction |
D | Both a and b |
Question 24 |
The class at the top of the exception class hierarchy is_______
A | ArithmeticException |
B | Throwable |
C | Class |
D | Exception |
Question 25 |
The jdb is used to
A | Create a jar archive |
B | Debug a java program |
C | Create C header file |
D | Generate java documentation |
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 25 questions to complete.
← |
List |
→ |
Return
Shaded items are complete.
1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 |
End |
Return
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost.
Correct Answer
You Selected
Not Attempted
Final Score on Quiz
Attempted Questions Correct
Attempted Questions Wrong
Questions Not Attempted
Total Questions on Quiz
Question Details
Results
Date
Score
Hint
Time allowed
minutes
seconds
Time used
Answer Choice(s) Selected
Question Text
All done
Need more practice!
Keep trying!
Not bad!
Good work!
Perfect!