Misconceptions Check
Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Manuel Alvarez
Used 8+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do you use to compare Strings?
=
==
.equals()
&&
Answer explanation
= is for assigning values
== is for comparing primitive types (int, double, boolean, char)
.equals() is for comparing Objects/Strings
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do you use to compare ints and doubles?
=
==
.equals()
||
Answer explanation
= is for assigning values
== is for comparing primitive types (int, double, boolean, char)
.equals() is for comparing Objects/Strings
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What do you use to compare chars and booleans?
=
==
.equals()
!
Answer explanation
= is for assigning values
== is for comparing primitive types (int, double, boolean, char)
.equals() is for comparing Objects/Strings
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following the correct way to initialize a String variable?
string str = "Monday";
String str = "Monday";
String str = 'Monday';
string str = 'Monday';
Answer explanation
String is a java class, unlike the primitive types (int, double, float, char). All classes should start with an uppercase letter. You know a String is a class because it has its own methods.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The indexes of elements in a Java array always start with _.
0
1
2
3
Answer explanation
When you construct an array int [] arr = new int[ 10 ] ; 10 refers to the length, which is the number of elements in the array. The index of those elements begins with 0.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the length of this String: "Bread"
2
3
4
5
Answer explanation
The length of a string is the number of characters in it. The index is the position of any character or set of characters within the string. Length starts counting with 1 and index starts with 0.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What index number is the "d" in the String: "Bread"
2
3
4
5
Answer explanation
The length of a string is the number of characters in it. The index is the position of any character or set of characters within the string. Length starts counting with 1 and index starts with 0.
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
TQ - Review Quiz Week 1
Quiz
•
9th Grade
20 questions
CSS Box Model
Quiz
•
10th Grade
10 questions
Review Quiz #2- Productivity Tools
Quiz
•
11th - 12th Grade
20 questions
INFORMATIKA X A-B
Quiz
•
10th Grade
20 questions
Pemrograman Dasar
Quiz
•
10th Grade
10 questions
TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN
Quiz
•
11th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
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
