Copro2 Final Exam

50 Questions | Attempts: 140
Please wait...
Question 1 / 51
🏆 Rank #--
Score 0/100

1.  Which of the following is the correct declaration of drawing a rectangle method?

Submit
Please wait...
About This Quiz
Industry Quizzes & Trivia

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.

Submit

3. To run a Java ____, you must use either a Web browser or an applet viewer.

Submit

4.  To change the color for your drawings, you have to use ______ method.

Submit

5. What type of exception will you use if your program attempt to divide a value to zero?

Submit

6. It represents or models things in the real world.

Submit

7. Which of the following are NOT an example of a Physical object?I.       Person II.     Course III.    Teacher IV.    Department V.     Professor

Submit

8. This method means that the mouse leaves the component area.

Submit

9.   Labels and Buttons are __________.

Submit

10. A program that allows you to display HTML documents on your computer screen is a ____________.

Submit

11. Which of the following statements is true?

Submit

12. When you perform an input operation in a java program, you use a ___________.

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 ____.

Submit

14. Which of the following is a reserved word in Java?

Submit

15. The distance values for drawRect are ________.

Submit

16.  which of the following is NOT a type of layout:

Submit

17. The file method canWrite returns a _________value.

Submit

18. It is the keyword used for implementing an interface.

Submit

19. It refers to the hiding of attributes and methods within an object.

Submit

20. Which of the following is the correct signature of method drawString()?

Submit

21.  Which of the following will generate an error:

Submit

22. Which of the following is NOT a method of MouseListener interface?

Submit

23. These are serious errors in the Java runtime system

Submit

24. You can provide animations in java by combining different methods of drawing and using _______

Submit

25. What is another name for a base 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.

Submit

27.      It is a method used by the Thread object to pause for a specified number of milliseconds.

Submit

28.  The _________class “knows” how to change colors and draw things on the screen.

Submit

29. It is an interface class that aligns your components so that they neither crowd each other nor overlap

Submit

30. It is a layout manager which divides a rectangular screen area into five regions.

Submit

31. A communication from the outside world to the program that something has occurred

Submit

32. The character streams are used to transfer _______ of characters.

Submit

33. What type of exception will you use if you are trying to access a non-existing index?

Submit

34. This method of Graphics object is useful for drawing  pie-shaped pieces of a circle or oval.

Submit

35. Threads with the same priority are called _________.

Submit

36. It is an event, usually some form of error which happens during the normal course of program execution.

Submit

37. It is a classification of objects which can’t be touched but do exist.

Submit

38.  It prepares your applet to accept event messages.

Submit

39.  The GridLayout constructor takes 4 arguments and these are

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.

Submit

41. It is a type of method that is used to write or change the value of  a member field.

Submit

42. A window that is moved or covered is __________.

Submit

43. It is the process by which an operating system allocates processor time to each running thread.

Submit

44. Which of the following is NOT a subclass of class Component

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.

Submit

46. Which package is automatically imported by the Java system?

Submit

47.  It acts as a gatekeeper, ensuring that only one thread at a time has access to data.

Submit

48. The following are the different constructors that can be used to create File object except?

Submit

49.   A state of a thread that might be blocked, waiting indefinitely, or waiting for a specified time

Submit

50. Which of the following is the method of ActionListener interface?

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (50)
  • Unanswered
    Unanswered ()
  • Answered
    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?...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!