3rd Qtr QUIZ1 COMPUTER PROGRAMMING-Strings in Java-2-22-2023
Quiz
•
Computers
•
12th Grade
•
Hard
Rhoychie Roy
Used 15+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Used to create a Java string object.
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
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
19 questions
Quiz sobre Estructuras Selectivas en Java
Quiz
•
12th Grade - University
15 questions
Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers
Quiz
•
12th Grade
20 questions
Twisted Pair Cables
Quiz
•
11th - 12th Grade
15 questions
Adobe Animate Ch. 9
Quiz
•
9th - 12th Grade
19 questions
Computer Languages
Quiz
•
12th Grade
15 questions
Quis Grade 5
Quiz
•
9th - 12th Grade
22 questions
Programming Review
Quiz
•
9th - 12th Grade
18 questions
T4 1.6 STRUKTUR DATA DAN MODULAR
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
