Java Strings and Math Quiz

Quiz
•
Computers
•
12th Grade
•
Medium
Wit Paña
Used 17+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a String variable in Java?
A collection of integers
A collection of characters surrounded by single quotes
A collection of characters surrounded by double quotes
A collection of boolean values
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to find the length of a String in Java?
count()
getLength()
size()
length()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the indexOf() method return?
The entire string
The length of the string
The index of the first occurrence of specified text
The last occurrence of a character
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used for String concatenation in Java?
&
+
*
%
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of adding two Strings in Java?
A number
An error
A boolean
A String concatenation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What escape character is used to insert a double quote in a String?
!
/
"
\
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the Math.max(X, Y) method do?
Returns the sum of X and Y
Returns the average of X and Y
Returns the highest value of X and Y
Returns the minimum value of X and Y
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Progamming - Java Syntax

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

Quiz
•
9th - 12th Grade
20 questions
Data Type

Quiz
•
7th - 12th Grade
18 questions
AP CSA U1L01-03

Quiz
•
11th - 12th Grade
20 questions
JavaScript Basics Test

Quiz
•
10th - 12th Grade
20 questions
ict5_mt_w2_sw2

Quiz
•
12th Grade - University
10 questions
Technical Terms - Internet (A-Z) - Primitive

Quiz
•
12th Grade
15 questions
Java Level 1 - A

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University