
Java Basics Assessment
Authored by Ingrid Merwe
Other
12th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Given the line of code: int age = 25;
Question: True or False?
The code above declares an integer variable named age and assigns it the value of 25.
False
True
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. Given the line of code: System.out.println("Hello, World!")
Question: True or False?
This code will successfully print "Hello, World!" to the console.
False
True
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. Given the line of code: double price = 9.99
Question: True or False?
This line of code is correct as written.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. Complete the line of code to declare a string variable named name with the value "Alice": __________ name = "Alice";
Text
Character
Name
String
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. Given the line of code: boolean isStudent = true;
Question: True or False?
The boolean variable isStudent can hold any value.
The boolean variable can only hold the value 'maybe'.
The boolean variable can hold any integer value.
The boolean variable can hold multiple values at once.
The boolean variable can hold either True or False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. Given the line of code: System.out.print("3 + 4 = " +
Question: True or False?
This line of code is complete and will execute without errors.
False
True
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. Given the line of code: char initial = 'A';
Question: True or False?
The variable initial is declared as a character type.
True
False
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Valentines Day
Quiz
•
KG - Professional Dev...
15 questions
TXT THEORY
Quiz
•
8th Grade - Professio...
15 questions
Spider man quiz
Quiz
•
3rd Grade - Professio...
11 questions
Ant science
Quiz
•
5th Grade - University
10 questions
Equestrian Quiz
Quiz
•
KG - Professional Dev...
15 questions
Cache Childcare unit 1
Quiz
•
10th - 12th Grade
10 questions
Quiz on APA JARS
Quiz
•
12th Grade
15 questions
STOCK MARKET
Quiz
•
8th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
11 questions
Exponent Quotient Rules A1 U7
Quiz
•
9th - 12th Grade