java 1510 chapter 2

java 1510 chapter 2

12th Grade

48 Qs

quiz-placeholder

Similar activities

Quiz on Programming Basics

Quiz on Programming Basics

3rd Grade - University

43 Qs

SAINS KOMPUTER TINGKATAN 4 BAB 1

SAINS KOMPUTER TINGKATAN 4 BAB 1

3rd Grade - University

50 Qs

CS Awesome Unit 4 Review

CS Awesome Unit 4 Review

9th - 12th Grade

46 Qs

Python Programming Quiz

Python Programming Quiz

11th Grade - University

50 Qs

PCEP Questions

PCEP Questions

9th - 12th Grade

46 Qs

Python Practical Questions

Python Practical Questions

9th - 12th Grade

46 Qs

Project STEM Unit 1 Review

Project STEM Unit 1 Review

9th - 12th Grade

49 Qs

C++ Chapter 10

C++ Chapter 10

9th - 12th Grade

43 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?

Discover more resources for Computers