Quizzes
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Create a Quiz
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Search
Create A Quiz
Take Quizzes
Animal
Nutrition
Love
Relationship
Computer
Sports
Society
Business
Geography
Language
Personality
Harry Potter
Movie
Television
Music
Online Exam
Health
Country
Art
Entertainment
Celebrity
Math
Game
Book
Fun
Science
Food
History
Education
All Topics
Products
Quiz Maker
Training Maker
Survey Maker
Flashcards
Brain Games
See All
ProProfs.com
Quizzes
Quizzes
›
Business
›
Industry
Copro2 Final Exam
50 Questions
|
By Jhaicee | Updated: Jul 30, 2011
| Attempts: 140
Share
Quiz
Flashcard
Start
Share on Facebook
Share on Twitter
Share on Whatsapp
Share on Pinterest
Share on Email
Copy to Clipboard
Embed on your website
Question
1
/ 51
🏆
Rank #--
▾
0 %
0/100
Score
0/100
1.
Which of the following is the correct declaration of drawing a rectangle method?
G.Drawrect();
G.drawRect();
G.drawingRect();
G.draw_RECT();
Submit
Start Quiz
About This Quiz
50 items
2.
What first name or nickname would you like us to use?
You may optionally provide this to label your report, leaderboard, or certificate.
2.
It is an access modifier that specifies that class members are accessible to anyone, both inside outside of the class.
Public
Protected
Private
Default
Submit
3.
To run a Java ____, you must use either a Web browser or an applet viewer.
Program
Application
Applet
Method
Submit
4.
To change the color for your drawings, you have to use ______ method.
GetColor
SetColor
DrawColor
FillColor
Submit
5.
What type of exception will you use if your program attempt to divide a value to zero?
NullPointerExcption
ArithmeticException
ArrayIndexOutOfBounds
D. IOExcption
Submit
6.
It represents or models things in the real world.
Object
Class
Entity
All of the choices
Submit
7.
Which of the following are NOT an example of a Physical object?I. Person II. Course III. Teacher IV. Department V. Professor
I, II and V
I, III and V only
II, III and IV only
II and IV only
Submit
8.
This method means that the mouse leaves the component area.
MouseOut
MouseAway
MouseExited
MouseLeaved
Submit
9.
Labels and Buttons are __________.
Components
Containers
Applets
Constituents
Submit
10.
A program that allows you to display HTML documents on your computer screen is a ____________.
Search engine
Compiler
Browser
Server
Submit
11.
Which of the following statements is true?
Errors are more serious than Exceptions
Exceptions are more serious than Errors
Errors and Exceptions are equally serious
Exceptions and errors are same thing
Submit
12.
When you perform an input operation in a java program, you use a ___________.
Pipeline
Channel
Moderator
Stream
Submit
13.
Consider the following program. public class HelloWorld { public static void main(String[] args) { System.out.print("Hello World ") } } The missing semicolon in the code above will be caught by the ____.
Compiler
Assembler
Editor
Run
Submit
14.
Which of the following is a reserved word in Java?
Char
CHAR
Char
None of these
Submit
15.
The distance values for drawRect are ________.
Measured in pixels
Measured in inches
In decimal places
In float type
Submit
16.
which of the following is NOT a type of layout:
FlowLayout
GridLayout
GridBagLayout
BagLayout
Submit
17.
The file method canWrite returns a _________value.
Integer
Boolean
Object
Void
Submit
18.
It is the keyword used for implementing an interface.
Extends
Implements
Throws
Import
Submit
19.
It refers to the hiding of attributes and methods within an object.
Information Hiding
Encapsulation
Abstraction
Inheritance
Submit
20.
Which of the following is the correct signature of method drawString()?
DrawString()
DrawString(String str, int x, int y)
DrawString(int x, Sting str, int y)
DrawString(int x, int y, String str)
Submit
21.
Which of the following will generate an error:
A drawRect method with 4 parameters.
A fillArc method with 6 parameters.
A fillRoundRect method with 4 parameters
A fillRect method with 4 parameters
Submit
22.
Which of the following is NOT a method of MouseListener interface?
MouseMoved()
MouseClicked()
MousePressed()
MouseReleased()
Submit
23.
These are serious errors in the Java runtime system
Error
Exception
Runtime Exception
User Exception
Submit
24.
You can provide animations in java by combining different methods of drawing and using _______
SetColor
Conditional statements
ActionListener
Loop
Submit
25.
What is another name for a base class?
Superclass
Derived class
Child class
Hierarchy class
Submit
26.
It is the keyword in Java used for instance methods or constructor to refer to the object on which thecurrently executing method has been invoked.
Super
This
Static
Void
Submit
27.
It is a method used by the Thread object to pause for a specified number of milliseconds.
Sleep(int)
Wait(int)
Run()
Stop()
Submit
28.
The
_________
class “knows” how to change colors and draw things on the screen.
Paint
Color
Draw
Graphics
Submit
29.
It is an interface class that aligns your components so that they neither crowd each other nor overlap
Layout
Flow layout
Layout managers
Java layout
Submit
30.
It is a layout manager which divides a rectangular screen area into five regions.
GridBagLayout
BoxLayout
GridLayout
BorderLayout
Submit
31.
A communication from the outside world to the program that something has occurred
Event handling
Event
Action event
Action performed
Submit
32.
The character streams are used to transfer _______ of characters.
8 bits
8 bytes
16 bits
32 bytes
Submit
33.
What type of exception will you use if you are trying to access a non-existing index?
NullPointerException
StringIndexOutOfBoundsException
ArrayIndexOutOfBoundsException
IOException
Submit
34.
This method of Graphics object is useful for drawing pie-shaped pieces of a circle or oval.
DrawOval( )
FillArc( )
DrawRoundRect( )
DrawCircle( )
Submit
35.
Threads with the same priority are called _________.
Sequence
Thread
Monitor
Peers
Submit
36.
It is an event, usually some form of error which happens during the normal course of program execution.
Exception Handling
Error
Exception
Error Handling
Submit
37.
It is a classification of objects which can’t be touched but do exist.
Tangible objects
Physical
Conceptual
Logical
Submit
38.
It prepares your applet to accept event messages.
Event programming
Event-driven programming
Java applet programming
Java application
Submit
39.
The GridLayout constructor takes 4 arguments and these are
Left, right, top, bottom
Top, right, bottom, left
Cols, rows, ver, hor
Rows, cols, hor, ver
Submit
40.
____ are pieces of information that are sent into, or passed to, a method, usually because the method requires the information to perform its task or carry out its purpose.
Applets
Arguments
Methods
Objects
Submit
41.
It is a type of method that is used to write or change the value of a member field.
Static method
Accessor method
Mutator method
Final method
Submit
42.
A window that is moved or covered is __________.
Destructed
Destroyed
Damaged
Overlapped
Submit
43.
It is the process by which an operating system allocates processor time to each running thread.
Thread priority
Thread synchronization
Thread scheduling
Thread time slicing
Submit
44.
Which of the following is NOT a subclass of class Component
TextField
Button
Choice
Label
Submit
45.
Which of the following statements describe the key aspects about the syntax of the try-catch-finally blocks? I. The block notation is mandatory. II. For each try block, there can be one or more catch blocks, but at most only one finally block. III. A try block must be followed by atleast one catch block or one finally block. IV. Each catch block can define one or more exception handle. V. The exception must be of the Throwable class or one of its subclasses.
I, III and IV only
II, III and V only
I, II, III and V only
All of the choices
Submit
46.
Which package is automatically imported by the Java system?
Java.io
Java.util
Java.lang
Java.applet
Submit
47.
It acts as a gatekeeper, ensuring that only one thread at a time has access to data.
Blocker
Controller
Monitor
Synchronize
Submit
48.
The following are the different constructors that can be used to create File object except?
A. File(String directoryPath)
B. File(String directoryPath, String filename)
C. File(File dirPath, String filename)
D. File(File dirObj, String filename)
Submit
49.
A state of a thread that might be blocked, waiting indefinitely, or waiting for a specified time
Inactive
Interrupted
Wait
New
Submit
50.
Which of the following is the method of ActionListener interface?
Public void actionPerformed(ActionEvent e)
Public void actionPerformed( )
ActionPerformed(ActionEvent e)
Public static void actionPerformed( )
Submit
×
Thank you for your feedback!
View My Results
Related Quizzes
Basic Industrial Skills
Basic Industrial Skills
Music Industry 101 Quiz: MCQ! Trivia
Music Industry 101 Quiz: MCQ! Trivia
How Well Do You Know The Film Industry?
How Well Do You Know The Film Industry?
Inventory Methods
Inventory Methods
Big Business and Industry Assessment
Big Business and Industry Assessment
Test Your IQ On Science,Technology and Industry
Test Your IQ On Science,Technology and Industry
Thank you for your feedback!
Would you like to edit this question to improve it?
No thanks
Name:
Email:
Oops! Give us more information:
Incorrect Question
Incorrect Answer
Typos
I have a feedback
Submit
Please provide name and email to proceed.
Please provide correct email to proceed.
Please provide feedback.
Please select the option.
All (50)
Unanswered (
)
Answered (
)
Which of the following is the ...
It is an access modifier that specifies that class members are...
To run a Java ____, you must use either a Web browser or an applet ...
To change the color for your drawings, you ...
What type of exception will you use if your ...
It represents or models things in the real world....
Which of the following are NOT an example of a Physical object?I. Person...
This method means that the mouse leaves the component area.
Labels and Buttons are __________.
A program that allows you to ...
Which of the following statements is true?
When you perform an input operation in a java ...
Consider the following program. ...
Which of the following is a reserved word in Java?
The distance values for drawRect are ________.
which of the following is NOT a type of layout:
The file method canWrite returns a _________value.
It is the keyword used for implementing an interface....
It refers to the hiding of attributes and methods within an object....
Which of the following is the correct signature of method drawString()?...
Which of the following will generate an error:
Which of the following is NOT a method of MouseListener interface?...
These are serious errors in the Java runtime system
You can provide animations in java by ...
What is another name for a base class?
It is the keyword in Java used for instance methods or constructor to refer to the object on which thecurrently...
It ...
The _________class “knows” how to change colors and draw...
It is an interface class that aligns your ...
It is a layout manager which divides a rectangular screen area into five regions....
A communication from the outside world to ...
The character streams are used to transfer _______ of characters.
What type of exception will you use if you are ...
This method of Graphics object is useful for drawing...
Threads with the same priority are called _________.
It is an event, usually some form of error which happens during the normal course of program...
It is a classification of objects which can’t be touched but do exist....
It prepares your applet to accept event messages.
The GridLayout constructor takes 4 arguments and these are
____ are pieces of information that are sent into, or passed to, a ...
It is a type of method that is used to write or change the value of a...
A window that is moved or covered is __________.
It is the process by which an operating system allocates processor time to each running thread....
Which of the following is NOT a subclass of class Component
Which of the following statements describe the key aspects about the syntax of the try-catch-finally...
Which package is automatically imported by the Java system?
It acts as a ...
The following are the different constructors ...
A state of a thread that might be blocked, waiting ...
Which of the following is the method of ActionListener interface?...
X
OK
X
OK
Cancel
X
OK
Cancel
Your Rank: #-- / --
Leaderboard
✕