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
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
Step by step
Solved in 3 steps