GoConqr has a new look! Let us know what you think.

Quiz

Exam1 Practice

Tylene Smith 12 questions

Take the quiz

Questions in this quiz (12)

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

Information

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

Feedback

What is it about?

What do you think of the new look?

How do you like it?