Pre-Assessment: Java Basics

Quiz
•
Computers
•
Professional Development
•
Medium
Danny Casimero
Used 8+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is a variable?
A location in memory with a name and a type
A keyword in Java programming
A method to print output
A loop in a program
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How do you declare a variable in Java?
Using a keyword "declare"
By assigning a value directly without declaration
By specifying its type and giving it a name
By using quotation marks around the value
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which primitive type is used for numbers with decimal places in Java?
int
double
char
boolean
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the default type of a literal number in Java?
double
float
int
long
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the output of the following code:
System.out.println("Hello"+5+3); ?
Hello53
8
Hello8
there is an error
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
In Java, which of the following is NOT a primitive data type?
char
double
string
boolean
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the result of the expression
2 + 3 * ( 4 % 5 )
in Java?
14
20
4
10
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
ITF+ Ch6, Software Development

Quiz
•
Professional Development
23 questions
JS QUİZ

Quiz
•
Professional Development
16 questions
DECI - Week 8 - round

Quiz
•
Professional Development
19 questions
Javascript - Revisão

Quiz
•
University - Professi...
15 questions
react-native basics

Quiz
•
Professional Development
15 questions
Java Concepts Assessment

Quiz
•
Professional Development
15 questions
React Basics - Quiz I

Quiz
•
Professional Development
20 questions
Technology pop quiz

Quiz
•
9th Grade - Professio...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development