3/8/23, 11:13 AMMidterm Quiz 1: Attempt review trimestral.amaesonline.com/2223A/mod/quiz/review.php?attempt=195436&cmid=114501/4Started onWednesday, 8 March 2023, 11:08 AM StateFinished Completed onWednesday, 8 March 2023, 11:13 AM Time taken5 mins 5 secs Marks10.00/10.00 Grade100.00out of 100.00 Question 1 Correct Mark 1.00 out of 1.00 Question 2 Correct Mark 1.00 out of 1.00 Which of the following is a valid statement to accept String input? Select one: a.None of these b.String str = JOptionPane.showInputDialog(""); c.String str = scan.nextString(); d.string str = scan.nextShort(); e.String num = scan.nextText(); Which statement will check if x is less than y? Select one: a.if (x<>y) b.if (x<y); c.if (x>y)?: d.None of these e.if (x>y)
Your answer is correct.
3/8/23, 11:13 AMMidterm Quiz 1: Attempt review trimestral.amaesonline.com/2223A/mod/quiz/review.php?attempt=195436&cmid=114502/4Question 3 Correct Mark 1.00 out of 1.00 Question 4 Correct Mark 1.00 out of 1.00 Question 5 Correct Mark 1.00 out of 1.00 Which of the following does not return numeric value? Select one: a.nextDouble() b.nextInt() c.None of these d.nextShort() e.nextLong() Which is not a repetition control structure? Select one: a.switch b.for c.do while d.while e.None of these Which of the following is a valid nextInt() return value? Select one: a.floating-point literal b.1010 c.3.1416 d.long value e.None of these
End of preview
Want to read all 4 pages? Upload your study docs or become a member.