Self-Quiz Unit 2.pdf - CS 1102 Programming 1 Term 1 2019-2020 Home ► My courses ► CS 1102 AY2020-T1 ► 12 September 18 September ► Self-Quiz Unit

Self-Quiz Unit 2.pdf - CS 1102 Programming 1 Term 1...

This preview shows page 1 - 4 out of 10 pages.

/ Home My courses CS 1102 - AY2020-T1 12 September - 18 September Self-Quiz Unit 2 Not answered Marked out of 1.00 Started on Thursday, 12 September 2019, 7:51 AM State Finished Completed on Thursday, 12 September 2019, 7:52 AM Time taken 1 min 34 secs Marks 10.00/17.00 Grade 58.82 out of 100.00 Which of the following statements about the 'block' statement are true. Select one: a. it groups a sequence of statements into a single statement b. it conditionally executes a sequence of statements c. is use used to prevent a sequence of statements from being executed d. it is used to contain a main statement Your answer is incorrect. The correct answer is: it groups a sequence of statements into a single statement
Image of page 1

Subscribe to view the full document.

/ Incorrect Mark 0.00 out of 1.00 What output will the following code produce: int number; number = 1; while ( number < 6) { System.out.print(number); number += 1; } Select one: a. 12345 b. 01234 c. 123456 d. 13579 Your answer is incorrect. The correct answer is: 12345
Image of page 2
/ Incorrect Mark 0.00 out of 1.00 Incorrect Mark 0.00 out of 1.00 What is the following java code structure known as: for (i=0; i<10; i++) { for (j=0; j<10; j++) { // do something } } Select one: a. Nested loop b. Double loop c. Exponential loop d. None of the above Your answer is incorrect.
Image of page 3

Subscribe to view the full document.

Image of page 4
  • Fall '18

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes