Shared Flashcard Set

Details

Java CS170 Chapter. 3 Lecture
Lecture Questions
14
Computer Science
Undergraduate 1
10/14/2011

Additional Computer Science Flashcards

 


 

Cards

Term
Every variable has what?
Definition
1.) has a name that is used to access the data.

2.) has a data type that determines what kind of data the bucket can contain.

3.) has a value, which is stored inside the variable.
Term
In Java, String (capital S) is the type that holds ____? While char is a single character.
Definition
String holds sequences of characters.
Term
Variable names must follow the identifier rules _____
Definition
Start with a letter, followed by letters and digits.

Convention is to start with lowercase
Term
Java also has a class named Scanner that "knows" how to read ______.
Definition
Strings, integers and real numbers.
Term
Processing means
Definition
converting input to output
Term
Plus [ + ] concatenates or
Definition
"pastes" strings together
Term
An arithmetic expression uses what two things?
Definition
operands (values) and operators (+ - * / %) to produce a numeric value
Term
Classes define the types
Definition
data and behavior)
Term
Instances of the class (objects)
Definition
act in the simulation
Term
Seymour Papert at MIT in the 60s did what
Definition
Developed the Logo language and focused on teaching children
Term
To create objects we ask a class to give us a new?
Definition
instance or object
Term
Programmers name things they want to refer to again this is called
Definition
declaring a variable
Term
You create an object by using new and a
Definition
constructor
Term
You create an object by using new and a
Definition
constructor
Supporting users have an ad free experience!