stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Duplicate of Intro Java - Chapter 1 - 5 Review Flashcards | StudBud
Explore
/
Duplicate of Intro Java - Chapter 1 - 5 Review
Duplicate of Intro Java - Chapter 1 - 5 Review
20 terms
·
StudBud Administration
·
20 plays
A #Java quiz to review basic object-oriented programming concepts with students.
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
The output of a method is called its ________________ value.
Explicit
Implicit
Return
Parameter
2
The _____ statement is used to implement a decision based on a condition or set of conditions
GoTo
If
Do
While
3
When comparing values in an if statement, what relational operator is used to mean not equal?
!=
<>
=!
==
4
What does an object store its data in?
files
instance variables
access specifiers
methods
5
What is the result of this line of code: (int) 16.7
16.7
16
7
17
6
What statement is used to specify the value that a method gives back to its caller?
private
public
return
new
7
What is the syntax for calling the println method on the object System.out?
System.out("Any message").println;
System.out.println ("Any message");
Println(System.out, "any message");
Println("any message").system.out
8
When a Java application starts, what is the name of the method that is executed?
Main
start
begin
main
9
To place one string after another to create a new string; adding strings together:
Addition
Merge
Combine
Concatenate
10
What is the output of the following Java statement?
4+6
46
4
10
11
A single letter, symbol, or digit is called a
Cartoon
Symbol
Type
Character
12
Which is not a primitive type?
String
boolean
double
int
13
To increase or add to a value is to:
Inflate
Decrement
Deflate
Increment
14
A ____ contains sequences of instructions to perform a particular task.
Variable
Label
Parameter
Method
15
What is the value of !(false || true)
True
False
16
The Boolean data type has exactly two values. What are they?
false and true
either and or
beginning and ending
yes and no
17
What term is used to refer to a sequence of characters enclosed in quotation marks?
Comment
Variable
Object
String
18
Which line is best to declare a variable to store someone's height in pounds to 1 decimal?
int height;
double h
double height;
String height;
19
Converting a value from one type to a different type is called:
Fishing
Basting
Casting
Changing
20
In Java, the = sign means what?
A value is equal to another value
A value is assigned to a variable or constant
it has no meaning in Java
meaning depends on where it's used