Test
Exam1 Practice
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (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.
- AVerdadero
- BFalso
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

Información
- Descripción
- Computer Science Test sobre Exam1 Practice, creado por Tylene Smith el 30/09/2020.
- Autor
- Tylene Smith
- Idioma
- English
- Visitas
- 0
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test