Quiz
CP213 Final Practice Questions
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (16)
1The Java Compiler is able to find all programming errors
- ATrue
- BFalse
2The Java graphics coordinate system is similar to the coordinate system one finds in mathematics in every respect
- ATrue
- BFalse
3The following for-loop is an inifinite loop
for (int j=0; j<1000;)j++;- ATrue
- BFalse
4All parts of a container in BorderLayout must be used
- ATrue
- BFalse
5To swap the 3rd and 4th elements in the int array values, you would apply the following statements
values[3] = values[4];
values[4] = values[3];- ATrue
- BFalse
6Java allows one to create polymorphic references using inheritance and using interfaces
- ATrue
- BFalse
7The type of reference, not the type of object, is use to determine which version of a method is invoked in a polymorphic reference
- ATrue
- BFalse
8A swing program does not end until it encounters a System.exit statement
- ATrue
- BFalse
9The difference between the throw reserved word and the throws reserved word is that throw is used within a method body, while throws is used within a method header
- ATrue
- BFalse
10The dispose() method of the JFrame class terminates a Java program
- ATrue
- BFalse
11When a model object in a model-view association fires a property change event, it must identify the specific attribute that caused the property change
- ATrue
- BFalse
12If no throw is executed in a try block, then the subsequent catch block is not executed
- ATrue
- BFalse
13The visibility of an overridden method can be changed from public in a base class to more restricted access permission in a derived class
- ATrue
- BFalse
14A Model object in a model-view association is allowed to perform I/O independently of any view objects that are associated with it
- ATrue
- BFalse
15Any change in graphics displayed on the screen requires a call to the method _________
to update the graphics- Apaint()
- Brepaint()
- Cupdate()
- Dall of the above
16Regardless of the programming language in question, a GUI uses a programming style that is called
- Aevent-driven programming
- BStructured programming
- Cbottom-up programming
- Dobject-oriented programming
Information
- Description
- Computer Science Quiz on CP213 Final Practice Questions, created by Areesha Yahya on 08/08/2022.
- Author
- Areesha Yahya
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz