Used to create a Java string object.
3rd Qtr QUIZ1 COMPUTER PROGRAMMING-Strings in Java-2-22-2023

Quiz
•
Computers
•
12th Grade
•
Hard
Rhoychie Roy
Used 15+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
import java.awt.*;
java.lang.String class
String literal
Using new keyword
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Two ways to create a String in Java.
Literal and New Keyword
Keyword and Literal
Str and New String
Methods and Class
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following Java string program?
class Quiz
{
public static void main(String[] args)
{
String s = "Java Programming is Fun";
String s1 = new String("Java Programming");
System.out.println("String1 " + s);
System.out.println("String2 " + s1);
}
}
}
String s1 = Java Programming is Fun
String s2 = Java Programming
String1=Java Programming is Fun
String2=Java Programming
String1 Java Programming is Fun
String2 Java Programming
String s = Java Programming is Fun
String s1 = Java Programming
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
it is constant and can cannot be changed once it has been created.
String
String literal
Using new keyword
Java String contains()
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
These are sequence of characters.
Java String length()
Object
Strings
Java String Methods
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
An object that represents a sequence of characters or char values. (Please type your answer)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In Java programming language, strings are treated as?
strings
objects
methods
class
Create a free account and access millions of resources
Similar Resources on Quizizz
19 questions
Java Base

Quiz
•
9th - 12th Grade
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
20 questions
JAVA FUNDAMENTALS

Quiz
•
9th - 12th Grade
15 questions
Java Strings and Math Quiz

Quiz
•
12th Grade
20 questions
Week 6 - CP1

Quiz
•
12th Grade
15 questions
Basics in Java

Quiz
•
9th - 12th Grade
20 questions
Java, part I

Quiz
•
11th Grade - University
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade