Enter your search terms
Submit search form
Web
examineonline.googlepages.com
Online Exam
>>
Programming
>>
Java
>>
Java Basics 2
Menu
Programming
COMPTIA
GMAT
English
IQ
DataBase
OS
MCSE
CISCO
Finance
Management
Health
Soft Skills
Web Building
Multimedia
Java Basics 2
1 . The term _____________ refers to a class's direct ancestor or to any of its ascendant classes.
A.
Sub Class
B.
Super Class
C.
Class hierarchy
2 . Subclass is the class that does the inheriting (the child class)
A.
True
B.
False
3 . A method is overridden if there is a method in the subclass that has the same name and the ________ set of parameters.
A.
Same
B.
Different
C.
Mixed
D.
None of the above
4 . Java supports multiple inheritance
A.
True
B.
False
5 . Abstract class can be declared as final
A.
True
B.
False
6 . this() is used to invoke a constructor of the same class.
A.
True
B.
False
7 . An interface contains _________ methods
A.
Abstract
B.
Non-abstract
C.
Implemented
D.
Un-implemented
8 . AWT stands for Abstract Windowing Toolkit
A.
True
B.
False
9 . AWT supports Ctrl-C Ctrl-V copy/paste without any coding
A.
True
B.
False
10 . FileDialog allows the user select a directory or file from a tree.
A.
True
B.
False
11 . When you use a Java technology-enabled browser to view a page that contains an applet, the applet's code is transferred to your system and executed by the browser's Java Virtual Machine (JVM).
A.
True
B.
False
12 . RandomAccessFile is used for reading a few parts of data that are at known positions near the end of a large file.
A.
True
B.
False
13 . We can buffer a RandomAccessFile
A.
True
B.
False
14 . Java I/O is based on the concept of _________
A.
Classes
B.
Streams
C.
Buffers
D.
Threads
15 . Which of the following will change to the next directory above the current directory?
A.
chDir("..");
B.
cd(".");
C.
up();
D.
none of the above
16 . The content pane is the main container in JApplet, JDialog, and JFrame objects.
A.
True
B.
False
17 . __________ code segments must be implemented for an event handler.
A.
One
B.
Two
C.
Three
D.
Four
18 . If you want to mix fonts or colors within the text, or to have formatting such as multiple lines, you can use HTML
A.
True
B.
False
19 . Swing's text components display text and optionally allow the user to edit the text
A.
True
B.
False
20 . Swing provides ________ text components
A.
four
B.
Six
C.
Sixteen
D.
Thirtytwo
Test Name :
Java Basics 2
Category :
Java
Number of Question :
20
Pass Score :
80
Test Result
Your Score :
Passing Score :
80
Result :
Copyright by
VanTuMinh
© 2007