Enter your search terms
Submit search form
Web
examineonline.googlepages.com
Online Exam
>>
Programming
>>
Java
>>
Advance Java 1
Menu
Programming
COMPTIA
GMAT
English
IQ
DataBase
OS
MCSE
CISCO
Finance
Management
Health
Soft Skills
Web Building
Multimedia
Advance Java 1
1 . The Java interpreter is used for the execution of the source code.
A.
True
B.
False
2 . On successful compilation a file with the .exe extension is created.
A.
True
B.
False
3 . The Java source code can be created in a Notepad editor.
A.
True
B.
False
4 . The Java Program is enclosed in a class definition.
A.
True
B.
False
5 . Class and main() methods declarations are required for every Java application?
A.
True
B.
False
6 . Java Compiler and Java Interpreter are the two parts in executing a Java program.
A.
True
B.
False
7 . Encapsulation, Inheritance and Polymorphism are the three OOPs principles.
A.
True
B.
False
8 . Java source code file is a compilation unit.
A.
True
B.
False
9 . What output is displayed as the result of executing the following statement? System.out.println("// Looks like a comment."); // Looks like a comment
A.
Looks like a comment
B.
The statement results in a compilation error
C.
No output is displayed
10 . In order for a source code file, containing the public class Test, to successfully compile, which of the following must be true?
A.
It must have a package statement
B.
It must be named Test.java
C.
It must import java.lang
D.
It must declare a public class named Test
11 . Void is the return type of program's main( ) method.
A.
True
B.
False
12 . string array is the argument type of program's main( ) method.
A.
True
B.
False
13 . __________ will be automatically invoked when an object is created.
A.
Method
B.
Constructor
C.
Function
14 . method has to be call explicitly.
A.
True
B.
False
15 . loading the driver and making the connection are the steps involved in establishing a connection of JDBC.
A.
True
B.
False
16 . In JDBC ______________ used to create an instance of a driver and register it with the DriverManager. When you have loaded a driver, it is available for making a connection with a DBMS.
A.
Class.forDriver
B.
Class.forData
C.
Class.forName
17 . DriverManager.getConnection function establishes a connection to call the appropriate driver connected to the DBMS.
A.
True
B.
False
18 . CallableStatement object is used to call a Strored Procedure from JDBC.
A.
True
B.
False
19 . One of the new features in the JDBC 2.0 API is the ability to move a result set's cursor Backward as well as Forward.
A.
True
B.
False
20 . javax.servlet and javax.servlet.http are the two packages for servlets
A.
True
B.
False
21 . In the Life cycle of a servlet init() method initates the servlet and destroy() method destroys the servlet.
A.
True
B.
False
22 . The servlet handles the client request through service() method.
A.
True
B.
False
23 . ServletContext() interface gives access to information about the environment and allows them to log significant events.
A.
True
B.
False
24 . _________ method is used for getting information.
A.
doMake()
B.
doGet()
C.
Get()
25 . _________ method for posting the information
A.
doResponse()
B.
doPost()
C.
Post()
26 . Genereic servlet and Httpservlets are the different types of servlets.
A.
True
B.
False
27 . Web Server loads the init() method of servlet.
A.
True
B.
False
28 . If you want to modify the servlet, The webserver need to be shutdown.
A.
True
B.
False
29 . Server-Side Includes(SSI) allows embedding servlets within HTML pages using a special servlet tag.
A.
True
B.
False
30 . When we compare session and URLREWriting there is need for maintaining data in URLREWriting but where as in the Session it will maintain only the session id.
A.
True
B.
False
Test Name :
Advance Java 1
Category :
Java
Number of Question :
30
Pass Score :
80
Test Result
Your Score :
Passing Score :
80
Result :
Copyright by
VanTuMinh
© 2007