stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Java Week 3 Flashcards | StudBud
Explore
/
Java Week 3
Java Week 3
17 terms
·
StudBud Administration
·
16 plays
Concepts from material covered up to week 3. #java #programJava #learnJava #introToJava #JavaWeek3
Flashcards
17 cards
F
Practice quiz
P
Host live
L
Questions
17
Answers
1
This is the where we tell Java to treat a variable as a different data type.
Type Casting
Morphing
Evolving
Type Changing
2
Single line comments begin with this
<!--
//
/*
*/
3
This data type holds one character
oneSingleCharacter
character
char
Char
4
Which of these can hold data after the decimal point in a number.
long
double
short
int
5
A variable (in Java) should be . . .
a word that shares the initial with your favorite celebrity
a word that describes the data
a random word
a single letter
6
Which character sequence would cause following text to be on the next line?
\r
\l
\n
\c
7
How many mathematical operands are there for integer math?
6
3
5
4
8
This can hold numbers up to approximately 2 Billion
byte
long
int
short
9
Which of these correctly declares and initializes a String Variable?
string name = "Mr. Poore"
var name = "Mr. Poore"
String name = 'Mr. Poore'
String name = "Mr. Poore"
10
These are words you can't use for your variables because Java uses them at it's core.
Java Keywords
Latin Verbs
Reserved Words
Java Variable Identifiers
11
Which of these would change the num variable to num/10
num *=10
num/=10
num/10
num =/ 10
12
Multiline comments begin with this
//
/*
**
*/
13
Java follows correct mathematical precedence (Order of Operations)
False
True
14
Which of these would add one to the variable k?
++k
k++
k+1
t++
15
This data type can hold integers up to 127
int
long
short
byte
16
This mathematical operand returns the remainder of dividing two numbers.
&
/
\
%
17
Which is the output for System.out.println("100" + "200");
300
400
100200
1200