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
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
Similar Resources on Wayground
15 questions
Java Strings and Math Quiz

Quiz
•
12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
19 questions
Java Base

Quiz
•
9th - 12th Grade
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

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

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

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade