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
Area and Arrays

Quiz
•
10th - 12th Grade
19 questions
Java Basic 1 - Quiz

Quiz
•
8th Grade - University
18 questions
Java Wiederholung

Quiz
•
12th Grade
16 questions
CSA Unit 3 Review

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

Quiz
•
11th Grade - University
20 questions
Java OOP Connections

Quiz
•
10th - 12th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
15 questions
Java Level 1 - B

Quiz
•
12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade