
Java String Quiz
Quiz
•
Computers
•
1st Grade - University
•
Practice Problem
•
Medium
M. R.
Used 17+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of objects that can store a sequence of characters in Java?
Character
String
Array
Text
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for both addition and concatenation in Java?
/
-
*
+
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a string using the new keyword in Java?
String str = new String[];
String str = String.new();
String str = new String("");
String str = new String();
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What escape character is used to insert a double quote in a string?
\"
\'
\\
\n
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of the following code:
String x = "50";
int y = 20;
String z = x + y;
50.20
50
5020
70
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which escape sequence represents a new line in Java?
\b
\r
\t
\n
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code:
String str = "Hello";
System.out.println(str.length());
5
4
Null
6
Create a free account and access millions of resources
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
20 questions
COMPUTER TEST
Quiz
•
1st - 7th Grade
22 questions
Text and Image representation
Quiz
•
11th Grade
20 questions
PHP First Internal Practical Viva
Quiz
•
University
15 questions
Assessment 08
Quiz
•
University
15 questions
Algoritma dan Pemrograman Bab 1
Quiz
•
University
21 questions
حاسب 1 نظري
Quiz
•
10th Grade
15 questions
Quis Grade 5
Quiz
•
9th - 12th Grade
16 questions
Year 3 Baseline
Quiz
•
1st - 2nd Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
