stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Java Questions Flashcards | StudBud
Explore
/
Java Questions
Java Questions
15 terms
·
StudBud Administration
·
118 plays
<---- What you'll be saying when you can't solve it
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
True or False: Println prints text on a new line
True
False
2
Under what conditions will an infinite loop terminate?
Infinite loops do not terminate
When the loop conditions is met
3
At least how many times will a do-while loop run?
Will not run unless condition is met
Two Times
Three Times
One Time
4
What condition does a Boolean fulfill?
Int Comparison
String Comparison
True or False
5
What is the purpose of a Scanner?
To accept user input
To do math
To compare strings
To compare variables
6
What are these called: //Text Here
Indexes
Arrays
Comments
Strings
7
What are these, { }, called?
Quotes
Parenthesis
Braces
Brackets
8
What does this symbol, % , represent in mathematical operations?
Addition
Multiplication
Modulo
Division
9
At least how many times will a while loop run even if condition is not yet met?
Two Times
Won't run unless condition is met
Three Times
One Time
10
What type of variable would 6.0 go into?
double
int
String
11
In an 'If Else' statement, when is the command under else executed?
When if is true
When if is false
Always executed
When else is false
12
What is the condition in this statement: if(x < 3)?
x
x<3
3
<
13
Does an 'else if' execute if 'if' is false and does it have its own condition?
No & Sometimes
No & Yes
Yes & No
Yes & Yes
14
Can, < and >, be used to compare strings?
No
Sometimes
Yes
Maybe
15
What is a 'nested if statement'?
An if statement coded by birds
The same as a regular if statement
An if statement within an if statement