
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
BASIC SCIENCE AND TECHNOLOGY 2ND CA TEST
Quiz
•
2nd Grade
15 questions
S2 Databases
Quiz
•
2nd Grade
20 questions
Quiz Informatika Bab 3 & 4
Quiz
•
10th Grade
16 questions
Java by Mr Sam
Quiz
•
10th Grade
20 questions
ICT Grade 8 Model exam Altaluq private school Excel
Quiz
•
8th Grade
20 questions
DreamWeaver CS6
Quiz
•
University
20 questions
ÔN TẬP HỌC KỲ 2 - TIN HỌC 8
Quiz
•
8th Grade
15 questions
INFORMATIKA_8
Quiz
•
7th - 9th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Company Logos
Quiz
•
6th - 8th Grade
13 questions
PowerPoint Basics
Quiz
•
6th - 8th Grade
10 questions
App Creators Lesson 2.1-2.4
Quiz
•
8th Grade
10 questions
Exploring Computer Science Careers and Subfields
Interactive video
•
6th - 10th Grade
15 questions
AP CSP Unit 4
Quiz
•
10th - 12th Grade
45 questions
Cybersecurity Quiz
Quiz
•
12th Grade
23 questions
Prog 1 Python Q1 Practice
Quiz
•
9th - 12th Grade
20 questions
logo quiz
Quiz
•
3rd Grade
