stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Girls In STEM Lesson 1 Flashcards | StudBud
Explore
/
Girls In STEM Lesson 1
Girls In STEM Lesson 1
11 terms
·
StudBud Administration
·
31 plays
Lesson 1: Introduction to Java Print Statements, Variables, Math Functions
Flashcards
11 cards
F
Practice quiz
P
Host live
L
Questions
11
Answers
1
True or False: When you want to print a backslash, you need to add another backslash before it.
False
True
2
How do you create a float?
num float = 5.0f;
float num = 5;
num = 5.0;
float num = 5.0f;
3
What programming language do we use for our robotics team?
Python
C++
SQL
Java
4
Which of these cannot be a variable name?
brushSize
myAge
15
youareamazing
5
Which of these is NOT a valid operator in Java?
/
+
%
}
6
What will this print?
5
Math.min(2,5)
Math.min
2
7
What can we use to print information to the console?
For loops
Print statements
While loops
If statements
8
To manual cast from double to int, what should replace #####?
Nothing
(double)
(float)
(int)
9
How do you feel about the Lesson 1 concepts?
I was already familiar with them
Awesome!
I need more help
I didn't like them
10
What is the proper Java syntax for a print statement?
System.out.println("Hello!")
System.out.println(Hello!);
System.out.println("Hello!");
print("Hello!")
11
Which of these Java data types can be used to store true or false values?
float
boolean
String
char