
Java Basics Assessment

Quiz
•
Other
•
12th Grade
•
Easy
Ingrid Merwe
Used 10+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Intro to Python Programming Quiz 9C

Quiz
•
10th Grade - University
15 questions
Variable Frequency Drives

Quiz
•
12th Grade
14 questions
Intro to Python Programming Quiz 9B

Quiz
•
10th Grade - University
12 questions
Patient's Bill of Rights!

Quiz
•
6th Grade - University
14 questions
Unit 6 Microcontrollers Intro 2022

Quiz
•
11th Grade - University
15 questions
STM20483 - Topic 1 & 2

Quiz
•
12th Grade
15 questions
Scratch Sprites Quiz

Quiz
•
KG - Professional Dev...
10 questions
#Sg_Spaic Last season Quiz (ML and Python)

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade