Questions LLC
Login
or
Sign Up
Ask a New Question
Control structures
Page 2
Questions (75)
What is an iteration or a sequence an example of?
(1 point) A. variable B. control structure C. syntax D. tool
1 answer
asked anonymously
28 views
If you want to add a third option to if and else, you can use:
(1 point) O print O input alter elif
1 answer
asked anonymously
13 views
Chinh wants to have a program print "Sorry, but that isn't one of your options" until the user enters the correct information.
1 answer
asked anonymously
18 views
Marta is creating a program that will guide the user through a series of physical exercises. She wants the program to coach the
1 answer
asked anonymously
33 views
Say you want to write a program to have Karel put down 300 tennis balls. Which control structure would you use?
If statement
1 answer
asked by
e
36 views
How can we teach Karel new commands?
For loop While loop Define a new function The start function
5 answers
asked by
e
30 views
Discuss the three types of control structures. Describe how any one of these control structures impacts your program flow. Do
1 answer
asked anonymously
77 views
Which of the following is the method of list traversal?(1 point)
Responses if condition if condition if-else condition if-else
1 answer
asked by
Hayden
62 views
Give a real-world example of a selection control structure.
1 answer
asked anonymously
32 views
A program will recommend a movie to the user based on the input that the user provides about their interests. This program is an
1 answer
asked by
Johovah_Witness
20 views
Code that will repeat five times is an example of which of these structures? (1 point) Responses selection selection iteration
1 answer
asked by
Johovah_Witness
19 views
Discuss why you would use a for loop versus a while loop.
1 answer
asked anonymously
18 views
Cynthia is writing a program in which the user will have three choices, and the code will be executed differently based on the
1 answer
asked anonymously
70 views
Cynthia is writing a program in which the user will have three choices, and the code will be executed differently based on the
1 answer
asked anonymously
37 views
what kind of program construct has choices with certain branches of code executed under certain conditions?
A.sequence B.
1 answer
asked by
Kee
46 views
which term describes an if statement inside of another if statement?
A. Contested B. Contained C. Nested D. Sequential
1 answer
asked by
Kee
47 views
Given the code below, how would you set up the for() loop to iterate over the entire list using a numeric index?
marbles =
1 answer
asked anonymously
27 views
Sylvain is writing an algorithm in which a sequence of steps is repeated until a certain condition is met. What type of control
1 answer
asked anonymously
26 views
What kind of program construct has choices, with certain branches of code executed under certain conditions?
(1 point) Responses
1 answer
asked by
100%
28 views
Verify that the user enters a positive value. (use a while loop)
1 answer
asked anonymously
13 views
What does the following line of code do?
if (num2==50){ (1 point)
1 answer
asked anonymously
25 views
Sylvain is writing an algorithm in which a sequence of steps is repeated until a certain condition is met. What type of control
1 answer
asked anonymously
17 views
Dallas is writing a structured algorithm that uses a control structure that determines which path to take depending on a
1 answer
asked anonymously
10 views
Fatima is making a flowchart of her algorithm’s flow structure. Within the flowchart there are decisions to be made that
1 answer
asked anonymously
14 views
Decision and Repetition
Statements
1 answer
asked anonymously
7 views
Pages
1
2
Parent Categories (12)
Algorithms
C programming
Computer Programming
Fundamentals
Loops
Programming
Programming Concepts
Programming constructs
Programming Controls
Programming Fundamentals
Python Programming
Variables