Quiz4 - 1. COMP113_Quiz4.1 A _____________________ loop...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1. COMP113_Quiz4.1 A _____________________ loop always executes its body at least once. Student Response Value Correct Answer Feedback 1. while 2. do 100% 3. for 4. repeat 5. iterate Score: 1/1 2. COMP113_Quiz4.2 What happens if a case in a switch statement does not end with a break statement? Student Response Value Correct Answer Feedback 1. the program will not compile 2. the switch statement will not execute 3. it will cause infinite loop 4. the switch 100% statement will execute the next case statement 5. the case will never be executed Score: 1/1 3. COMP113_Quiz4.3 A ____________ is an object that has methods that allow you to process a collection of items one at a time. Student Response Value Correct Answer Feedback 1. iterator 100% 2. loop 3. conditional 4. nested loop 5. scanner Score: 1/1 4. COMP113_Quiz4.4 A logical expression can be described by ______________ that lists all possible combination of values for the variables involved in an expression. Student Response Value Correct Answer Feedback 1. palindrome 2. nested loop 3. equality operator 4. switch statement 5. truth table 100% Score: 1/1 5....
View Full Document

This note was uploaded on 04/17/2011 for the course COMP 1130 taught by Professor Na during the Winter '11 term at Thompson Rivers.

Page1 / 9

Quiz4 - 1. COMP113_Quiz4.1 A _____________________ loop...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online