Enter your search terms
Submit search form
Web
examineonline.googlepages.com
Online Exam
>>
Programming
>>
Java
>>
Core Java 1
Menu
Programming
COMPTIA
GMAT
English
IQ
DataBase
OS
MCSE
CISCO
Finance
Management
Health
Soft Skills
Web Building
Multimedia
Core Java 1
1 . The data defined by the class are referred to as member variables or instance variables
A.
True
B.
False
2 . What a Java programmer calls a __________ , a C/C++ programmer calls a function
A.
Classes
B.
Method
C.
Function
D.
Object
3 . Each method or variable in a class may be marked private or public
A.
True
B.
False
4 . _____________ is the process by which one object acquires the properties of another object
A.
Encapsulation
B.
Class
C.
Inheritence
D.
Polymorphism
5 . _________ is a feature that allows one interface to be used for a general class of actions.
A.
Encapsulation
B.
Class
C.
Inheritence
D.
Polymorphism
6 . In Java, a source file is officially called a compilation unit.
A.
True
B.
False
7 . The Java compiler requires that a source file use the ________ filename extension
A.
.h
B.
. java
C.
>java
D.
.class
8 . When Java source code is compiled, each individual class is put into its own output file named after the class and using the ______ extension
A.
.h
B.
. java
C.
>java
D.
.class
9 . Comments in Java Program must begin with /* and end with */
A.
True
B.
False
10 . All statements in Java end with a _____________
A.
Colon
B.
SemiColon
C.
Hypen
D.
Dot
11 . The simplest form of the for loop in Java is for(initialization; condition; iteration) statement;
A.
True
B.
False
12 . Java allows two or more statements to be grouped into blocks of code called Code Blocks
A.
True
B.
False
13 . You do not need to follow any special indentation rules in Java
A.
True
B.
False
14 . Java is Case ________
A.
Insensitive
B.
Sensitive
15 . A constant value in Java is created by using a literal representation of it
A.
True
B.
False
16 . The keywords const and goto are reserved but not used
A.
True
B.
False
17 . The Separator [ ] is Used to declare array types
A.
True
B.
False
18 . enum is a Keyword in Java, introduced from J2SE 5
A.
True
B.
False
19 . Java's built-in methods are members of the System class, which is a class predefined by Java that is automatically included in your programs
A.
True
B.
False
20 . The print( ) method is just like println( ), except that it does not output a newline character after each call
A.
True
B.
False
Test Name :
Core Java 1
Category :
Java
Number of Question :
20
Pass Score :
80
Test Result
Your Score :
Passing Score :
80
Result :
Copyright by
VanTuMinh
© 2007