Java Quiz 1: Introduction

Quiz
•
Computers
•
6th - 12th Grade
•
Easy
Jerry Xiao
Used 259+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following can be used for decimal values?
int
String
long
double
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In Java a string is a:
Long strand of thread
A series of objects arranged in a line.
Group of visible symbols contained in "quotes".
A series of objects arranged in a line.
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following is the correct way to create a String in Java?
"Hello, World" = String message;
String message = "Hello, World!";
message = Hello, World!;
String = "Hello, World!"
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following is acceptable as a variable name in Java for int type?
myInt
myint!
4isMyFavoriteInt
my int
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will the following statement display when run?
System.out.println(5+2*4-1);
12
27
5+2*4-1
11
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will the following statements display when run?
String str1="Hello";
String str2="Goodbye";
String str3=str1+str2;
System.out.println(str3+str1);
"str3+str1"
"HelloGoodbyeHello"
"HelloHelloGoodbye"
"Hello GoodBye Hello"
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Variable names can start with an underscore.
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Programming - Basic String Manipulation

Quiz
•
2nd - 10th Grade
12 questions
String Basics Quiz

Quiz
•
7th Grade
11 questions
Python Data Types Quiz

Quiz
•
10th Grade - University
10 questions
Python Quiz for 10s

Quiz
•
10th Grade
15 questions
Pre-Test Operator Javascript

Quiz
•
11th Grade
13 questions
String Manipulation

Quiz
•
9th - 11th Grade
7 questions
Python Data Types and Arithmetic Quiz

Quiz
•
8th Grade
10 questions
str vs int

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade