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
École, étude et sujet
- Établissement
- Walden University
- Cours
- ITEC1030
Infos sur le Document
- Publié le
- 11 mars 2024
- Nombre de pages
- 7
- Écrit en
- 2023/2024
- Type
- Examen
- Contient
- Questions et réponses
Sujets
-
itec1030 instruction to programming week5 quiz