Quiz
Exam1 Practice
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 (12)
1To create a CoffeCup class, how must the file be named in order to be compiled?
- ACoffeeCup
- BCoffeeCup.class
- CCoffeeCup.java
- DcoffeeCup.java
2Python is faster than Java.
- ATrue
- BFalse
3Which is NOT a primitive data type?
- Aint
- Bboolean
- CString[]
- Dchar
4Where are local variables stored?
- AIn the class but outside the method
- BInside a method
- COutside the class
- DOn the file system
5When declaring a variable, what must we always specify before we name it?
- AHow large it is
- BWhat data type it is
- CWhat the value is
6In Object-oriented Programming, an object is a
- Aa programming entity that has state and behavior
- Ba command you type at the terminal
- Ca set of stored values
- Da set of actions
7In Object-oriented Programming, what is the definition of state?
- AA set of actions an object can perform
- BThe type of data a variable can store
- CThe practice of processing input line-by-line
- DA set of values (internal data) stored in an object
8In Object-oriented Programming, the definition of behavior is
- Aa set of actions an object can perform, often reporting or modifying its internal state
- Ba set of values (internal data) stored in an object
- Chow well the program performs
- Dthrowing an exception
9After an object of a class has been created, it is referred to as
- AA thing
- BA class
- CAn instance
- DThe program
10In Java, behaviors are referred to as
- Amethods
- Bclasses
- Cstates
- Dobjects
11In Java, states are stored as
- Aclasses
- Bmethods
- Carguments
- Dfields
12Select all that are true of object fields:
- ASyntax of a field is <type> <name>;
- BDefined as a variable inside an object that makes up part of its state
- C

Information
- Description
- Computer Science Quiz on Exam1 Practice, created by Tylene Smith on 30/09/2020.
- Author
- Tylene Smith
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz