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
20 questions
Computer Science: Chapter 1 Test Review

Quiz
•
9th - 12th Grade
21 questions
ÔN TẬP KIỂU XÂU

Quiz
•
1st - 12th Grade
15 questions
Basics in Java

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

Quiz
•
12th Grade
15 questions
Introduction to Programming

Quiz
•
12th Grade
15 questions
G10 CS String Manipulation

Quiz
•
12th Grade
15 questions
Round 5 Clash of Coders S&T

Quiz
•
12th Grade
22 questions
Camp 1_30

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade