V) A/an-------------------------- is piece of code that performs a specific task. a. instruction b. block c. method d. function V) A keyword---------------------is used to create an array. a. create b. new c. build d. set VI) In java, packages are collections of----------------------------- a. Methods b. Classes c. Libraries d. Arrays VII) A switch fall through occurs in java only in the absence of_________ keyword. a. default b. break c. case d. None VIII) Which sign is used to check equality in Java? a. “= =” b. “=” c. All d. None IX) A switch statement accepts _______ type of data as input. a. byte b. short c. int d. all of them X) What is the symbol represent the “and” operator in Java? a. AND b. | | c. && d. Both a & c XI) Complete the following statement to create an object of the class Scanner  Scanner keyboard= new Scanner (….......); a. New b. System.in c. System.out d. Scanner

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.3: Declaring And Processing Two-dimensional Arrays
Problem 7E: (Electrical eng.) a. An engineer has constructed a two-dimensional array of real numbers with three...
icon
Related questions
Question

Choose the correct answer:

 

IV) A/an-------------------------- is piece of code that performs a specific task.
a. instruction b. block c. method d. function
V) A keyword---------------------is used to create an array.
a. create b. new c. build d. set
VI) In java, packages are collections of-----------------------------
a. Methods b. Classes c. Libraries d. Arrays
VII) A switch fall through occurs in java only in the absence of_________ keyword.
a. default b. break c. case d. None
VIII) Which sign is used to check equality in Java?
a. “= =” b. “=” c. All d. None
IX) A switch statement accepts _______ type of data as input.
a. byte b. short c. int d. all of them
X) What is the symbol represent the “and” operator in Java?
a. AND b. | | c. && d. Both a & c
XI) Complete the following statement to create an object of the class Scanner
 Scanner keyboard= new Scanner (….......);
a. New b. System.in c. System.out d. Scanner
XII) In order to test two strings to see if they have equal values, we use
a. string1.equals(string2) b. string1.equals.string2 c. string1=string2 d.string1==string2
XIII) All arrays have an instance variable named ________________, contains the length of the
array (number of elements).
a. length b. index c. subscript d. collection
XIV) -------------------------- is a set of values where each value is identified by an index.
a. A string b. A variable c. An array d. None
XV) -------------------- are identifiers that have a predefined meaning in Java
 a. Keywords b. Reserve words c. Both d. None

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr