Questions LLC
Login
or
Sign Up
Ask a New Question
Loops
Page 2
Questions (131)
Which of the following scenarios should use a for loop?
(1 point) Responses printing the names in a list until the user presses
1 answer
asked by
ave human
85 views
Nathan has a 30-second clip of music that he wants to play over and over again when he runs a program. What does Nathan need to
1 answer
asked anonymously
36 views
Which of the following scenarios should use a for loop?
(1 point) O printing the names in a list until the user presses the space
1 answer
asked anonymously
53 views
Which of the following scenarios should use a while loop?
(1 point) O telling the user what format their phone number should be
1 answer
asked anonymously
38 views
Jamal wants to create a program that will play music during the afternoon. Which kind of loop should be used in the program?
(1
1 answer
asked anonymously
41 views
write a multiplication table in python from 1-10 using loops
example output: x 1 2 3 4 5 6 7 8 9 10 1 1 2 3 4 5 6 7 8 9 10 2 2 4
1 answer
asked anonymously
21 views
A few questions, all involving "for" loops that I am unsure how to do (Thank you in advance for the help):
Q1.) Write a table of
3 answers
asked by
Randy
545 views
__________ are an element in programming that will repeat a portion of your code a specified number of times until a desired
1 answer
asked anonymously
35 views
A program allows the user to enter a condition that is then used in a for loop. If the user accidentally creates an infinite
1 answer
asked anonymously
29 views
A program allows the user to enter a condition that is then used in a for loop. If the user accidentally creates an infinite
1 answer
asked by
Blue
33 views
Write a program that asks the user for two numbers. Using a for loop, add all of the numbers from the first to the second.
For
1 answer
asked by
joe
16 views
fix this code
start_num = int(input("Enter the first number: ")) end_num = int(input("Enter the second number: ")) # Initialize
1 answer
asked by
joe
35 views
# Use for loop to add numbers
for i in range(start_num, end_num+1): num_sum += i
1 answer
asked by
joe
8 views
Question: 3
How many times will the following program print "hello"? var i = 0; while(i < 10){ println("hello"); } JavaScript 10
1 answer
asked by
joe
28 views
Question: 23
The AP Exam does not use for loops and while loops, but rather REPEAT or REPEAT UNTIL commands as shown below.
1 answer
asked by
joe
43 views
The AP Exam does not use for loops and while loops, but rather REPEAT or REPEAT UNTIL commands as shown below.
REPEAT n TIMES {
1 answer
asked by
joe
47 views
The AP Exam does not use for loops and while loops, but rather REPEAT or REPEAT UNTIL commands as shown below.
REPEAT n TIMES {
1 answer
asked by
joe
61 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
78 views
Chinh wants to have a program print “Sorry, but that isn’t one of your options” until the user enters the correct
1 answer
asked anonymously
112 views
What is the function of a loop?
(1 point) Responses debug a program debug a program convert from binary to decimal convert from
1 answer
asked anonymously
69 views
A count-controlled loop repeats for a specific number of times.
(1 point) Responses True True False
1 answer
asked anonymously
96 views
A line of code that begins with the word while needs to end with which symbol?
(1 point) Responses # # “ “ . . :
1 answer
asked anonymously
19 views
Which of the following scenarios should use a for loop
Printing the names in a list until the user presses the space key Printing
1 answer
asked by
Will
21 views
Malik wants to create a program that will repeat spanish vocabulary words five times what kind of loop should he use to do this
1 answer
asked by
Will
46 views
How many times will an Infinite loop repeat
100 The number of minutes in the variable The number of times in the variable Until
1 answer
asked by
Will
15 views
Which of the following scenarios should use a while loop?
Telling the user what format their phone number should be entered in
1 answer
asked by
Will
26 views
Nathan had 30 second clip of music he wants to play over and over again when he runs his program what does Nathan need to do to
1 answer
asked by
Will
19 views
The line of code after the line while num!=10: will be executed under what conditions?
A. The number 10 B. The number is not 10
1 answer
asked by
Kee
28 views
A count-controlled loop repeats for a specific number of times.
A. True B. False
1 answer
asked by
Kee
25 views
Jamal wants to create a program that will play music during the afternoon. Which kind of loop should be used in the program?
(1
1 answer
asked anonymously
29 views
How many times will an infinite loop repeat?
(1 point) A. 100 B. the number of minutes in the variable C. the number of times in
1 answer
asked anonymously
18 views
Which of the following scenarios should use a while loop?
(1 point) A. telling the user what format their phone number should be
1 answer
asked anonymously
27 views
What structure should be used to create an infinite loop in a block-based program?
(1 point) A. if statement B. for loop C. while
1 answer
asked anonymously
32 views
Malik wants to create a program that will repeat Spanish vocabulary words five times. What kind of loop should be used to do
1 answer
asked anonymously
28 views
What is the function of a loop?
(1 point) Odebug a program convert from binary to decimal input a variable repeat a section of
1 answer
asked anonymously
14 views
LaToya is creating a program that will teach young children to type. What keyword should be used to create a loop that will
1 answer
asked anonymously
23 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
31 views
What is the purpose of using a for loop in code?
To do something if a condition is true To do something while a condition is true
7 answers
asked by
e
37 views
Create a loop to display all even numbers from 0 to 100. Describe the three elements that must be included in order for a loop
1 answer
asked anonymously
34 views
Iteration (or "looping") is the act of repeating something. In code, a program loop will execute the same block of statements
1 answer
asked anonymously
26 views
Iteration (or "looping") is the act of repeating something. In code, a program loop will execute the same block of statements
1 answer
asked anonymously
24 views
If the user enters a password that is too short, they will get an error message. Otherwise, they will get a welcome message.
1 answer
asked by
Johovah_Witness
17 views
A section of code executes lines of code in the exactly order in which they are written. This program uses which of these
1 answer
asked by
Johovah_Witness
25 views
Create a loop to display all even numbers from 0 to 100. Describe the three elements that must be included in order for a loop
1 answer
asked anonymously
39 views
Which code example is an infinite loop?
Group of answer choices for loopNum in range(0,5): print(loopNum) loopNum = 1 while
1 answer
asked anonymously
25 views
The following code has a logic error. What code for the while loop will fix the error so that the code will loop five times?
coun
1 answer
asked anonymously
50 views
You are now able to write "for" loops, which will iterate over the letters in a string or through a range of numbers. The "for"
11 answers
asked anonymously
32 views
You are now able to write "for" loops, which will iterate over the letters in a string or through a range of numbers. The "for"
1 answer
asked anonymously
22 views
The program below will ask the user for an input phrase. The program should then use a "for" loop to iterate over the string,
1 answer
asked anonymously
21 views
Pages
1
2
3
Parent Categories (23)
Algorithms
C programming
Code Constructs
Code Execution
Coding terms
Computer Programming
Computer Science/Programming
Control Flow
Control structures
Java
Java programming
Javascript
Programming
Programming Basics
Programming Concepts
Programming Structures
Pseudo Code
Python
Python Programming
QBASIC Programming
Source Code
Syntax
Visual Basic