Shared Flashcard Set

Details

Comp Prog Sem Final Review
words
71
Computer Science
10th Grade
12/12/2012

Additional Computer Science Flashcards

 


 

Cards

Term
1) The most basic circuitry-level computer language, which consists of on and off switches, is
Definition
machine language
Term
2) Languages that let you use a vocabulary of descriptive terms like read, write, or add are known as _______________ languages.
Definition
high level
Term
The rules of a programming language constitute its
Definition
syntax.
Term
4) A _______________ translates high-level language statements into machine code.
Definition
compiler or translator
Term
Programmer-named computer memory locations are called
Definition
variables
Term
Envisioning program components as objects that are similar to concrete objects in the real world is the hallmark of
Definition
object oriented programming
Term
The Java programming language is architecturally
Definition
neutral
Term
All Java programming language statements must end with a
Definition
semi-colon
Term
All Java programs must have a method named
Definition
main
Term
Non-executing program statements that provide documentation are called
Definition
comments.
Term
You save text files containing Java language source code using the file extension
Definition
.java
Term
The eight primitive data types are
Definition
byte, char, boolean, short, int, long, float, double
Term
The assignment operator in the Java programming language is
Definition
equal sign
Term
Can you assign to a variable of type int the value '5'? 98.6? 5? 5,000,000,000,000?
Definition
Yes, NO, YES, NO
Term
Which data type can store a value in the least amount of memory?
Definition
byte
Term
The purpose of the modulus operator is to
Definition
provide the remainder of integer division.
Term
The symbol for the "equal to" comparison operator is
Definition
==
Term
A boolean variable can hold the values of
Definition
true or false
Term
When you perform arithmetic with values of diverse types, the Java programming language
Definition
implicitly converts the values to a unifying type.
Term
If you attempt to add a float, an int, and a byte, the result will be the data type.
Definition
float
Term
Explicitly overriding an implicit type is called
Definition
type casting
Term
An escape sequence always begins with a(n)
Definition
back slash
Term
The 16-bit code scheme employed by the Java programming language is
Definition
Unicode
Term
The Java platform’s term for a series of statements that carry out some task is a
Definition
method.
Term
How many methods can a Java class contain?
Definition
Unlimited or any number
Term
What effect does the access modifier public have on a method? What effect does the access modifier private have on a method?
Definition
It makes the method available to be used from any class. Private methods cannot be called from outside the class.
Term
Every object is a member or instance of a more general
Definition
class
Term
You send messages to an object through its
Definition
methods
Term
A program or class that instantiates objects of another prewritten class is called a a(n)
Definition
client class
Term
A class header must contain the keyword
Definition
class
Term
Most classes are created with which the access modifier?
Definition
public
Term
The body of a class is written between what symbols?
Definition
A set of curly brackets
Term
Most class fields are classified as
Definition
) private
Term
The concept of allowing a class’s private data to be changed only by a class’s own methods is known as
Definition
information hiding
Term
To allocate memory you must use the operator
Definition
new
Term
Code between a pair of curly brackets in a method is called a
Definition
block.
Term
When a block exists within another block, the blocks are called
Definition
nested blocks
Term
The portion of a program within which you can reference a variable is the variable’s
Definition
scope
Term
A variable ceases to exist at the end of the in which it is declared.
Definition
block
Term
You can declare two variables with the same name as long as
Definition
their scope does not overlap
Term
If you declare a variable within a class and declare and use the same variable name within a method of the class, which one takes precedence?
Definition
The variable declared inside the method takes precedence.
Term
Methods that you associate with individual objects are what type of methods?
Definition
Nonstatic
Term
Variables that are shared by every instantiation of a class are what kind of variables?
Definition
Class variables
Term
The word closest in meaning to static as used by the Java programming language is
Definition
single
Term
If you change the value of a static variable in a class, it is changed for which objects of the class?
Definition
All of them.
Term
What does the keyword final in a variable declaration indicate?
Definition
A symbolic constant
Term
Can a symbolic constant be changed during program execution?
Definition
NO
Term
Java classes are stored in a folder or
Definition
package
Term
What would be the statement to determine the square root of number and assigns it to the variable s?
Definition
s = Math.sqrt(number);
Term
Static methods are also called methods.
Definition
class
Term
The wildcard symbol used with the import statement is the.
Definition
*
Term
A program that accepts values at run time is said to be
Definition
interactive
Term
An error situation is called an.
Definition
Exception
Term
A decision is based on a(n) value.
Definition
boolean
Term
The value of ( 4 > 6 ) is
Definition
false
Term
You can use the statement to terminate a case in a switch structure
Definition
break
Term
Assuming x = 3 and y = 12, then the value of x > 0 | | y < 10 && x == 0 is.
Definition
true
Term
A structure that allows repeated execution of a block of statements is a(n)
Definition
loop.
Term
The postfix operator ++ is a operator.
Definition
unary
Term
If g = 6, then the statement System.out.println (g++); would output
Definition
6
Term
If h = 8, then the statement System.out.println (++h); would output
Definition
9
Term
) Convert the following binary number into base 10:10110110
Definition
182
Term
Convert the following base 10 number into binary:327
Definition
101000111
Term
Usually, you want each instantiation of a class to have its own copy of
Definition
data fields
Term
To use any of the prewritten classes besides those in the java.lang package, can you – Use the entire path with the class name? Import the class? Import the package of which the class you are using is a part?
Definition
All three.
Term
the types fo method access modifiers are
Definition
public private,friendly, protected private protected, staic and final
Term
If a class is named MyClass(), then the class constructer name is
Definition
MyClass()
Term
If you change the static variable of a class...
Definition
It is changed for all objects of the class
Term
To use any of the prewritten classes besides those in the java.lang package, you can-
Definition
use the entire path with the class name, iImport the class, or import the package in which the class you are using is a part
Term
The operator that combines 2 conditions that are both true
Definition
&&
Term
If you do not create a constructor for a class, java will
Definition
automatically create one for you
Supporting users have an ad free experience!