ITEC1030 INSTRUCTION TO PROGRAMMING WEEK5 QUIZ
ITEC1030 INSTRUCTION TO PROGRAMMING WEEK5 QUIZ • Question 1 The code between a pair of curly braces in a method is a . 1 out of 1 points Selected Answer: Correct Answer: bloc k bloc k • Question 2 When a block exists within another block, the blocks are . 1 out of 1 points Selected Answer: Correct Answer: nest ed nest ed • Question 3 1 out of 1 points The portion of a program within which you can reference a variable is the variable’s . Selected Answer: Correct Answer: sco pe sco pe • Question 4 You can declare variables with the same name multiple times . Selected Answer: within a method 0 out of 1 points Correct Answer: within a method • Question 5 1 out of 1 points If you declare a variable as an instance variable within a class, and you declare and use the same variable name within a method of the class, then within the method, . Selected Answer: the variable used inside the method takes precedence Correct Answer: the variable used inside the method takes precedence • Question 6 A method variable will a class variable with the same name. 0 out of 1 points Selected Answer: Correct Answer: overrid e overrid e • Question 7 Nonambiguous, overloaded methods must have the same . 0 out of 1 points Selected na Answer: me Correct na Answer: me • Question 8 0 out of 1 points If a method is written to receive a double parameter, and you pass an integer to the method, then the method will . Selected Answer: Correct Answer: work correctly; the integer will be promoted to a double] work correctly; the integer will be promoted to a double • Question 9 A constructor parameters. 0 out of 1 points Selected Answer: Correct
Written for
Document information
- Uploaded on
- January 10, 2022
- Number of pages
- 7
- Written in
- 2021/2022
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
itec1030 instruction to programming week5 quiz • question 1 the code between a pair of curly braces in a method is a 1 out of 1 points selected answer correct answer bloc k bloc k •