51. Which of the following places the numbers in ascending order?

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 4MQ4
icon
Related questions
Question
Answer this questions show the work and explain how you got the answer !
51. Which of the following places the numbers in
ascending order?
L. 01011110
ii. 01011101
iii. 92
(A) i., ii, iii
(B) i, iii, ii
(C) ii, iii., i
(D) iii., ii., i
54. How many times does the following loop run?
numsold true
price - x
REPEAT nunsold TIMES
{
sales numSold
numSold numBold -1
price
}
(A) The REPEAT loop will run 5 times.
(B) The REPEAT loop executes once and exits
the loop after numSold's value changes.
(C) The REPEAT loop never ends, creating
an infinite loop because numSold's value
keeps changing.
(D) The program has an error and will not run.
Transcribed Image Text:51. Which of the following places the numbers in ascending order? L. 01011110 ii. 01011101 iii. 92 (A) i., ii, iii (B) i, iii, ii (C) ii, iii., i (D) iii., ii., i 54. How many times does the following loop run? numsold true price - x REPEAT nunsold TIMES { sales numSold numSold numBold -1 price } (A) The REPEAT loop will run 5 times. (B) The REPEAT loop executes once and exits the loop after numSold's value changes. (C) The REPEAT loop never ends, creating an infinite loop because numSold's value keeps changing. (D) The program has an error and will not run.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning