java 1510 chapter 2

java 1510 chapter 2

12th Grade

48 Qs

quiz-placeholder

Similar activities

Java Basics Self-Check

Java Basics Self-Check

9th - 12th Grade

46 Qs

Q2LQ

Q2LQ

12th Grade

50 Qs

AP Java Quiz 1

AP Java Quiz 1

KG - University

50 Qs

adders

adders

12th Grade

45 Qs

Java Assesment Unit 1, Unit2

Java Assesment Unit 1, Unit2

9th - 12th Grade

44 Qs

Week 6 - Input/Output Functions

Week 6 - Input/Output Functions

9th - 12th Grade

46 Qs

LATIHAN SOAL

LATIHAN SOAL

10th Grade - University

50 Qs

TSA Review 6

TSA Review 6

9th - 12th Grade

50 Qs

java 1510 chapter 2

java 1510 chapter 2

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Bhavnoor Saroya

Used 4+ times

FREE Resource

48 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If x is a String, then x = new String("OH"); and x = "OH"; will accomplish the same thing.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If x is the String "Hi There", then x.toUpperCase().toLowerCase(); will return the original value of x.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If String name = "George W. Bush"; then the instruction name.length(); will return 14.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If String a = "ABCD" and String b = "abcd" then a.equals(b); returns false but a.equalsIgnoreCase(b); returns true.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Unlike the String class where you must pass a message to an object (instance) of the class, as in x.length(), in order to use either the Scanner or Math classes, you pass messages directly to the class name, as in Math.abs() or scan.nextInt().

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In order to generate a random number, you must use Math.random().

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A double is wider than a float and a float is wider than an int.

True

False

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?