Practice 1 for Quiz 3: COP 2220-003, COP 2220-501: Intro to Programming in C 9/23/18, 6*06 PM Prac!ce 1 for Quiz 3 Due Sep 23 at 11:59pm Points 9 Questions 9 Available Sep 17 at 12am - Sep 27 at 11:59pm 11 days Allowed Attempts 2 Time Limit 25 Minutes A!empt History Attempt Time Score KEPT Attempt 2 3 minutes 9 out of 9 LATEST Attempt 2 3 minutes 9 out of 9 Attempt 1 6 minutes 9 out of 9 ! Correct answers are hidden. Score for this attempt: 9 out of 9 Submitted Sep 23 at 6:05pm This attempt took 3 minutes. Question 1 1 / 1 pts What type (variable, object or a returned value from an expression) must be placed in-between a pair parentheses " (... ) " when they are used next to the "if" keyword? Anything that can evaluate to an integer zero or non-zero value. array float or a double https://canvas.fau.edu/courses/49131/quizzes/130842 Page 1 of 6 Practice 1 for Quiz 3: COP 2220-003, COP 2220-501: Intro to Programming in C 9/23/18, 6*06 PM Anything that can evaluate to a decimal (real) value. Question 2 1 / 1 pts Which of the following key words cannot have a pair of parentheses " (... ) " placed next to it? while if else for Question 3 1 / 1 pts Which of the following notations is correct for a code block? (When "..." are replaced by valid code pieces, and it may not be all on a single line) { ... , ... , ... } ( "... , ... , ..." ) { ... ; ... ; ... } ( ... ; ... ; ... ) [ ... , ... , ... ] https://canvas.fau.edu/courses/49131/quizzes/130842 Page 2 of 6 Practice 1 for Quiz 3: COP 2220-003, COP 2220-501: Intro to Programming in C 9/23/18, 6*06 PM ( ... , ... , ... ) Question 4 1 / 1 pts Which of the following notations is used after the keyword "for" to provide the three statements that every for loop needs? ( ... ; ... ; ... ) ( "... , ... , ..." ) { ... , ... , ... } [ ... , ... , ... ] { ... ; ... ; ... } ( ... , ... , ... ) Question 5 1 / 1 pts Which of the following notations indicates a code block? (In actual program this may or may not be on a single line) { ... } ( ... ) [ ... ] https://canvas.fau.edu/courses/49131/quizzes/130842 Page 3 of 6 Practice 1 for Quiz 3: COP 2220-003, COP 2220-501: Intro to Programming in C 9/23/18, 6*06 PM /* ... */ Question 6 1 / 1 pts Which of the following is an example that shows a parameter list placed inside the pair of parentheses " (... ) " ? void setVariable(double value)... while(isEmpty()) switch(userInput) (i=0; i< MAX_VALUE; i++){ Question 7 1 / 1 pts Which of the following is NOT an example of a parameter list placed inside a pair of parentheses " (... ) " ? (i=0; i< MAX_VALUE; i++){ https://canvas.fau.edu/courses/49131/quizzes/130842 Page 4 of 6 Practice 1 for Quiz 3: COP 2220-003, COP 2220-501: Intro to Programming in C 9/23/18, 6*06 PM void setVariables(double value1, int value2)... double getVariable()... void setVariable(double value)... Question 8 1 / 1 pts Which of the following type of errors is always caught by your compiler? Incorrect Logic based on requirements Incorrect C Syntax English grammar inside block comments. Style guide voilations Question 9 1 / 1 pts For the following function declaration int getUserOption(long option); Please match the following questions with proper answers: The parameter list is: https://canvas.fau.edu/courses/49131/quizzes/130842 Page 5 of 6 Practice 1 for Quiz 3: COP 2220-003, COP 2220-501: Intro to Programming in C 9/23/18, 6*06 PM (long op"on) The return type is: int The function name is: getUserOp"on Function prototype is: int getUserOp"on(long op"on); Quiz Score: 9 out of 9 https://canvas.fau.edu/courses/49131/quizzes/130842 Page 6 of 6