Question 1 Not yet answered Marked out of 2.00 P Flag question a. 6 b. 4 c. none d. 5 Clear my choice Assume array x [1] = {{4,5,6}, {1,2,3}}; X[1][2]= _? Question 2 Not yet answered Marked out of 2.00 Flag question a. 4 b. 5 C. 2 d. 3 Clear my choice
Question 3 which of the following causes an error? Not yet answered Marked out of 2.00 Flag question a. While (number <0); b. while (number<=0) C. None d. while (number !=0) Clear my choice Which of the following is not a valid java identifier? Question 4 Not yet answered Marked out of 2.00 a. Exam#1 b. Exam_1 C. Exam1 d. Exam_1 Flag question Clear my choice
Which of the following is not a printing statement? Question 5 Not yet answered Marked out of 2.00 Flag question a. printin b. println print C. d. printf Clear my choice Question 6 Which of the following is not a logical operator? Not yet answered Marked out of 2.00 a. Not b. Or Flag C. And question d. Equal Clear my choice
What is the output of the following segment of code? Math.max(8, Math.min(9,5)) a. 9 Question 7 Not yet answered Marked out of 2.00 P Flag question b. Error C. 8 d. 5 Clear my choice What is the answer of evaluating the following equation? 5*(2+2)/2 a. 11 Question 8 Not yet answered Marked out of 2.00 P Flag question b. 10 C. 20 d. 5 Clear my choice
Question 9 Not yet answered Marked out of 2.00 String courseCode="ITCS122": String msg="Welcome to Which statement shall give the output itcs122 P Flag question a. System.out.println(courseCode.lowerCase()) b. System.out.println(courseCode to Lowerox System.out.println(courseCode.toLowerCase(); d. System.out.println(courseCode tolowercase(): Clear my choice pich String function Returns the index within this string of the first occurrence of the specified substring? Question 10 Not yet answered Marked out of 2.00 a.indexOf b. indexBy CindexAt Flag question d. none Clear my choice
What is the length of the following array? a[]= {1,2,3,4,5); What is the length of the following array? a[]= {1,2,3,4,5); Question 1 Not yet answered Marked out of 2.00 P Flag quest
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am