Java, part I

Quiz
•
Computers
•
11th Grade - University
•
Medium
Satrio Rukmono
Used 389+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Who invented Java?
Ryan Gosling
Bjarne Stroustrup
James Gosling
Guido van Rossum
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is String a primitive data type?
Yes
No
Both
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method to use to find length of a string?
length()
size()
long()
count()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
String x = "10";
String y = "20";
String z = x + y;
System.out.println(z);
Guess the output.
1020
10 20
30
"10 20"
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Choose most appropriate purpose of trim() method in String?
to remove white spaces
to get a substring of the string
to cut String at desired index
to remove extra white spaces from start and end of String
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the most appropriate way to check if two Strings are identical?
string1 == string2
string1.equals(string2)
string1.same(string2)
string1.equalsIgnorecase(string2)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int[] myArray = {11, 22, 33, 44, 55};
which code is correct to print length of above int-array?
System.out.println(int[].myArray.length());
System.out.println(myArray.length);
System.out.println(myArray.length());
System.out.println(int[].myArray.size());
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Bootcamp Day 3 - Java Array

Quiz
•
University
25 questions
Introduction to Java

Quiz
•
University
23 questions
Unit 2 Quiz review

Quiz
•
12th Grade
18 questions
U3.1. Connections (JDBC)

Quiz
•
University
22 questions
AP CSA Primitive Types Practice

Quiz
•
11th Grade
15 questions
UTS SMT Genap PBO 11 RPL

Quiz
•
11th Grade
15 questions
Progamming - Java Syntax

Quiz
•
11th - 12th Grade
18 questions
PBO Inheritance Episode 2

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade