Question: 1. Choose the correct answer: I) Which type of errors does not exist in Java? a. Syntax b. Semantic c. bug d. runtime II) The

 1. Choose the correct answer: I) Which type of errors does

1. Choose the correct answer: I) Which type of errors does not exist in Java? a. Syntax b. Semantic c. bug d. runtime II) The method nextInt ( reads a. Many values b. One integer value c. String value d. All types of values III) What will the following expression evaluate? ((2+5!=8)&&(7+3>=2)) a. True b. False c. 7 d. 10 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=string 2 d.string 1== string 2 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 Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!