Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

20 easy java questions?? Thanks to whomever helps me! I really appriciate it! 1. A sequence of characters enclosed within double quotation marks is a

20 easy java questions?? Thanks to whomever helps me! I really appriciate it!

1.

A sequence of characters enclosed within double quotation marks is a _____.

a. command
b. symbolic string
c. literal string
d. prompt

2.

To create a String object, you can use the keyword _____ before the constructor call, but you are not required to use this format.

a. create
b. object
c. new

d. char

3.

A String variable name is a _____ which is a variable that holds a memory address.

a. literal
b. constant
c. value

d. reference

4.

The term that programmers use to describe objects that cannot be changed is _____.

a. nonvolatile
b. irrevocable
c. immutable

d. stable

5.

Which of the following is not a commonly used Character method?

a. isWhiteSpace()
b. toLowerCase()
c. isDigit()

d. toUpper()

6.

The Character class is defined in _____.

a. java.String
b. java.text
c. java.lang

d. java.Character

7.

The method that determines whether two String objects are equivalent, regardless of case, is _____.

a. equalsNoCase()
b. equals()
c. toUpperCase()

d. equalsIgnoreCase()

8.

A String is an example of an object that can't be changed, also known as _____.

a. dynamic
b. static
c. immutable

d. immature

9.

A String variable that does not yet hold a memory address is known as a(n) _____ String.

a. vacant
b. empty
c. null

d. alias

10.

The actual length of the _____ is the capacity of the StringBuilder object.

a. buffer
b. string
c. thread

d. variable name

11.

If String movie = new String("West Side Story");, the value of movie.indexOf(s) is _____.

a. 2
b. false
c. true

d. 3

12.

The String class replace() method replaces _____.

a. one String with another String
b. a String with a character
c. every occurrence of a character in a String with another character

d. one character in a String with another character

13.

The toString() method converts a(n) _____ to a String.

a. all of the above
b. float
c. int

d. char

14.

Joining Strings with a '+' is called _____.

a. linking
b. concatenation
c. chaining

d. parsing

15.

The first position in a String _____.

a. is position zero
b. must be alphabetic
c. must be uppercase

d. is ignored by the compareTo() method

16.

The method that extracts a string from within another string is _____.

a. substring()
b. extract()
c. append()

d. parseString()

17.

The method parseInt() converts a(n) _____.

a. integer to a Double
b. Double to a String
c. String to an integer

d. integer to a String

18.

The difference between int and Integer is _____.

a. nonexistent; both are primitive types
b. int is a primitive type; Integer is a class
c. int is a class; Integer is a primitive type

d. nonexistent; both are classes

19.

For an alternative to the String class, and so you can change a String's contents, you can use _____.

a. StringMerger
b. StringHolder
c. char

d. StringBuilder

20.

Unlike when you create a String, when you create a StringBuilder, you must use the keyword _____.

a. null
b. class
c. buffer
d. new

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxxviii Special Issue On Database And Expert Systems Applications Lncs 11250

Authors: Abdelkader Hameurlain ,Roland Wagner ,Sven Hartmann ,Hui Ma

1st Edition

3662583836, 978-3662583838

More Books

Students also viewed these Databases questions

Question

What are the main activities in RUPs Construction phase?

Answered: 1 week ago