ITEC 1030 Week 4
ITEC 1030 Week 4 • Question 1 The logical structure in which one instruction occurs after another with no branching is a . 1 out of 1 points Selected Answer: sequen ce Correct Answer: sequen ce • Question 2 1 out of 1 points Which of the following is typically used in a flowchart to indicate a decision? Selected Answer: diamo nd Correct Answer: diamo nd • Question 3 Which of the following is not a type of if statement? 1 out of 1 points Selected Answer: reverse if Correct Answer: reverse if • Question 4 A decision is based on a(n) value. Selected Answer: 1 out of 1 points Boole an Correct Answer: Boole an • Question 5 In Java, the value of (4 > 7) is . 1 out of 1 points Selected Answer: Correct Answer: Fals e Fals e • Question 6 1 out of 1 points Assuming the variable q has been assigned the value 3, which of the following statements displays XXX? Selected Answer: if (q > 0) Sln(“XXX”); Correct Answer: if (q > 0) Sln(“XXX”); • Question 7 What is the output of the following code segment? t = 10; if (t > 7) { 1 out of 1 points S(“AAA”); S(“BBB”); } Selected Answer: AAABBB Correct Answer: AAABBB • Question 8
Written for
- Institution
-
Walden University
- Course
-
ITEC 1030
Document information
- Uploaded on
- March 15, 2024
- Number of pages
- 10
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
itec 1030 week 4 question 1 the logical st