Which of the following is correct if the data type of inventoryItem is string?

A. inventoryItem = 3
B. inventoryItem = "printer"
C. inventoryItem = -9
D. inventoryItem = (printer)


Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following import statements is required to use the Character wrapper class?

a. import java.String; b. import java.lang.Char; c. import java.Char; d. No import statement is required

Computer Science & Information Technology

A __________ occurs when two or more processes access a resource in a nondeterministic order, and the outcome depends on the order that the processes access the resource.

a) thundering herd b) mutual exclusion violation c) residual dependency d) race condition

Computer Science & Information Technology

After the title slide, when you add a new slide to a presentation the default layout is ________

A) Section Header B) Title and Content C) Title D) Comparison

Computer Science & Information Technology

The five basic components or subsystems of biometric ID systems are:

A. data collection, transmission, signal processing, storage, decision B. feature extraction, quality control, pattern matching, and pattern classification C. data collection, quality control, pattern matching, transmission D. data collection, transmission, signal processing, storage, quality control E. none of the above

Computer Science & Information Technology