Which loop structure always uses a semicolon after the test condition?
A. for
B. do-while
C. while

Answers

Answer 1

Answer:

I would have to go with A

Explanation:

It could be B, but I'm going with A because of the fact that right after the condition, there is a semicolon, whereas for the do-while loop, the semicolon comes after the )

Syntax:

// For loop

for (int i = 0; i < 10; i++)

{

// Body

}

// Do-while

int i = 0;

do

{

i++;

// Other code

} while(i < 9); // We do i < 9, because by the time we get to the condition, i = 10, because the increment happens before the condition is checked

Answer 2

Answer:

do-while

Explanation:

syntax:

do {

//the statements;

} while(the condition is true);

In the other two types of loops, you can put a semicolon after the condition, but it signifies the end of the statement (e.g.  for loop, it will mean end of for statement and it's body will have no meaning)


Related Questions

differentiate between soft copy output and hard copy output?​

Answers

a hard copy stores data and information in the form of physical files it may be images text photographs and more a soft copy data and information in the form of virtual file saved on a computer or a drive you can preserve a hard copy for two long because its day subjected to wear and tear

Answer:

Soft copy output -

when the output is in the form of soft copy ( I.e I'm the computer) you cannot touch it. it's the digital version.

Hard copy output -

when output is in the form of hard format (.ie paper, print , xerox etc) you can touch it.

Can case conditions use test conditions?
A. yes
B. no

Answers

Answer:

yes.

Explanation:

because i Been tro it before

Which of the following Office Online apps is most effective for creating multi-media presentations?
O Calendar
O Cloud computing
O Outlook
PowerPoint
Answer - powerpoint

Answers

Answer:

powerpoint (PP) ..........

Briefly explain purpose of input device​

Answers

Answer:

Mouse, Keyboard, Headphones, Mouse dongle.

Explanation:

Input Device Definition: A piece of equipment/hardware which helps us enter data into a computer is called an input device. For example keyboard, mouse, etc.

Answer:

Input devices are those devices connected to the computer which are used to enter the data. Input can be in the form of text, graphics and sound. There are different types of input devices for different types of inputs.

Explanation:Today, input devices are important because they are what allows you to interact with and add new information to a computer. For example, if a computer had no input devices, it could run by itself but there would be no way to change its settings, fix errors, or other various user interactions. Also, if you wanted to add new information to the computer (e.g., text, command, document, picture, etc.), you wouldn't be able to do so without an input device.

Complete the sentence about bias and equity.
There is a lack of
in the field of computer science.

Answers

Answer:

diversity

Explanation:

Complete the sentence about bias and equity.

There is a lack of  

diversity

in the field of computer science.

got it right

Answer:Below

Explanation:

Question 7 * What is the default powerpoint standard layout A Blank B Title slide C Title only D. Comparison ​

Answers

Answer:

B. Title slide layout is the default PowerPoint standard layout.

Write short notes on the following:
I. keyboard ii.Control unit iii.printer​

Answers

Answer:

- the Keyboard:

The keyboard is a handheld device used to input alphabet, numbers, symbols and characters to a monitor. It also houses the special manipulative and function keys.

- the Control Unit:

The control unit is a component of the CPU which directs the operation of the processor.

- the Printer:

The printer is an external hardware output device which takes electronic data stored on a device and creates a hard copy.

How ict tools changed the way we live explain it​

Answers

Answer:

How does ICT change our way of living?

ICT has contributed a lot to change our everyday life such as letter to e-mail, market shopping to on-line shopping, classroom learning to e-learning, etc. This paper present's the effects of ICT as Home and Domestic Activities, Social Networking, Education, Health, Commerce, Banking, and Employment.

How many times is the second for loop going to loop in this block of code? Write your answer in numeric form in the box provided.
for steps in range(5):
turtle.forward(100)
turtle.right(90)
for moresteps in rage(4):
turtle.forward(50)
turtle.right(90)​

Answers

Explanation:

The second for loop does 1 of 4 iterations for every 1 of 5 iterations of the parent loop. meaning it is 4 x 5 which is 20.

Which option in PowerPoint allows users to configure the number of columns and rows manually, using numerical values?

Insert Table dialog box
Draw Table option
Insert Table drop-down menu
Excel spreadsheet

Answers

Users can use numerical values to set the number of columns and rows in the Insert Table dialog box in PowerPoint. Option A is correct.

What is the PowerPoint?

Microsoft or MS PowerPoint is defined as a presentation program that was developed by Forethought, Inc.'s Robert Gaskins and Dennis Austin. In PowerPoint, users can use numerical values to specify the number of columns and rows in the Insert Table dialog box.

Therefore, option A is correct.

Learn more about the PowerPoint, refer to:

https://brainly.com/question/14498361

#SPJ1

what are the 7 layers of cyberspace?

Answers

Answer:

The OSI model's seven layers are the: Human Layer, Perimeter Layer, Network Layer, Endpoint Layer, Application Layer, Data Layer, and Mission Critical Layer . Each layer represents a different stage in network communication, from someone typing on a keyboard to the data your system uses for applications.

HELP QUICK!!!!!!!

Which item is used in Excel to identify the row of a particular cell?
O letter
O number
O type
O sheet

Answers

Answer:

Number.

Letter is for columns, Number is for rows.

For example to find the cell on the fifth row, and 1st column, it would be A5.

Drag the words into the correct boxes

.............can be used for a responsive webpage with dynamic content. ............. can be used for a Point of Sale (POS) application for a grocery store. ...........can be used for a machine learning model to detect people using facial recognition.
(javascript / java / python )



Answers

Explanation:

if you have any doubts or queries regarding the answer please feel free to ask

java can be used for a responsive webpage with dynamic content. Javascript can be used for a Point of Sale (POS) application for a grocery store. Python can be used for a machine learning model to detect people using facial recognition.

What is Java?

The object-oriented programming language and software platform known as ava is utilized by billions of devices, including laptops, smartphones, gaming consoles, medical equipment, and many more. Java's syntax and principles are derived from the C and C++ languages.

The portability of Java is a key benefit while creating applications. It is relatively simple to transfer Java program code from a notebook computer to a mobile device once you have done so.

The fundamental intention of the language's creation in 1991 by James Gosling of Sun Microsystems (later bought by Oracle) was the ability to "write once, run anywhere."

Therefore, java can be used for a responsive webpage with dynamic content. Javascript can be used for a Point of Sale (POS) application for a grocery store. Python can be used for a machine learning model to detect people using facial recognition.

To learn more about Java, refer to the link:

https://brainly.com/question/29897053

#SPJ2

Directory services store information in a heirarchical structure. Which statements about Organizational Units (OUs) of a directory service hierarchy are true? Check all that apply.

Answers

Answer:

accounting, authorization, centralized authentication

Software that functions as an electronic version of a filing cabinet?

Answers

Answer: There are a lot of choices

Explanation: do you want a database? You can obtain a terabyte or even larger size thumb drive or USB drive

Do want a print server? a networked drive specific for your data and if you have  to   print out anything

Do you want a connected drive to send all your documents to with organized folders?  any size drive will work for this they come all prices

Enter the electronic filing system, sometimes called document management software. These computerized filing systems provide electronic file management. In other words, they give us a simple way to store, organize, and retrieve digital files and digital documents and pdfs.

https://www.filecenter.com/info-electronic-filing-system.html here is some good software

This program will output a right triangle based on user specified height triangleHeight and symbol triangleChar. It is strongly suggested to use the for loop for this solution.

(1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangleChar character.


(2) Modify the program to use a nested loop to output a right triangle of height triangleHeight. The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangleHeight. Output a space after each user-specified character, including after the line's last user-specified character.


Example output for triangleChar = % and triangleHeight = 5:


Enter a character:

%

Enter triangle height:

5


%

% %

% % %

% % % %

% % % % %


#include

< stdio.h >


int main(void) {

char triangleChar;

int triangleHeight;


printf("Enter a character:\n");

scanf("%c", &triangleChar);


printf("Enter triangle height:\n");

scanf("%d", &triangleHeight);

printf("\n");


printf("* \n");

printf("* * \n");

printf("* * * \n");


return 0;

}

Answers

The program illustrates the use of loops;

Loops are program statements that are used to perform repetition

The complete program

The modified program in C, is as follows:

#include<stdio.h>

int main(void) {

   char triangleChar; int triangleHeight;

   printf("Enter a character: ");    scanf("%c", &triangleChar);

   printf("Enter triangle height: ");    scanf("%d", &triangleHeight);

   for (int i = 0; i<triangleHeight; i++){

       printf("\n");

       for(int j = 0;j<=i;j++){

           printf("%c",triangleChar);

       }

   }

   return 0;

}

Read more about loops at:https://brainly.com/question/24833629

#SPJ1

Use propositional logic to prove the following argument is valid. If Alice gets the office position and works hard, then she will get a bonus. If she gets a bonus, then she will go on a trip. She did not go on a trip. Therefore, either she did not get the office position or she did not work hard or she was late too many times. a) Define your propositions [5 points]: O = W = B = T = L = b) Write down the logical argument [8 points]: c) Proof sequence [12 points]: Steps: Reason: 1. 2. 3. …

Answers

This question relates to Propositional logic. Thus, the propositions as defined are:

A = Gets office position

B = Works hard

C = Gets a bonus

D = Go on a trip.

What is the logical argument?

The logical argument is notated as follows:

((A∧B)→C)∧(C→D)∧(¬D),∴((¬A)∨(¬B))

What is a propositional logic?

A proposition is an assertion that can only be one of two things: valid or wrong. It can never be both.

Learn more about propositional logic at;
https://brainly.com/question/16783205
#SPJ1

What is the result of the expression: int('1750.0')?

Answers

Answer:

Value error

Explanation:

The result of the expression: int ('1750.0') is an error: the string does not represent an integer value. The correct option is a.

What is an expression?

A "statement," which is just a single unit of execution and returns nothing, is different from an "expression," which is a mixture of values and functions that are combined and processed by the compiler to create a new value.

A mix of operators, constants, and variables makes up an expression. To produce a value, an expression can include one or more operands and one or more operators.  A programming error is a mistake in the way a program functions. Although the software can execute, it does not perform as planned.

Therefore, the correct option is a. An error: the string does not represent an integer value.

To learn more about expressions, refer to the link:

https://brainly.com/question/14122593

#SPJ2

The question is incomplete. Your most probably complete question is given below:

a. An error: the string does not represent an integer value

b. The value 1750 as an int

c. The value 1750.0 as a float

d. The value '1750'as a string

What is an operating system on an IBM computer?
a. GUI
b. Microsoft Windows
c. Mac OSX

Answers

Answer:

Microsoft Windows

Explanation:

what are the effects of information systems in the management of corona ?

Answers

The effects of information systems in the above are:

It is used for Remote access and working remotely.Managing supply chain issues.What is impact of information system?

Information systems is one  that has helped to lower the number of levels in an organization by giving managers with a lot of information to monitor larger numbers of workers.

Note that The effects of information systems in the above are:

It is used for Remote access and working remotely.Managing supply chain issues.

Learn more about information systems from

https://brainly.com/question/14688347

#SPJ1

Trent is researching what it would take to become a pharmaceutical scientist. What academic requirements should he complete?
A.
an associate’s degree
B.
on-the-job training
C.
technical school
D.
a doctorate degree
E.
a bachelor’s de

Answers

Answer:

D - a doctorate degree

Explanation:

You are studying in a role as a doctors position.

10. What may help drivers conserve gasoline?
Sitting in their driveways with their cars
running.
Accelerating quickly.
Slowing down gradually.
Braking abruptly.

Answers

Answer: C. Slowing down gradually

Explanation:

A and B suck up the gas immediately since you are using much more of it. When you brake abruptly, you are not only wasting gas, but you are also damaging your tires. Therefore, the most appropriate answer is C.

I hope this helps!! Pls mark brainliest :)

The thing that may help drivers conserve gasoline is Slowing down gradually. third option is correct.

What is conservation of gasoline

There are three fundamental quantities in mechanics that are conserved. These are power, forward motion, and angular momentum. It takes time and fuel to accelerate and get one's vehicle back up to the speed of traffic every time one needs to stop fast.

Seeing far ahead of the car allows drivers to slow down gradually or change lanes to minimize idling, which improves gas consumption. Slowing down gradually is something that may assist drivers in saving petrol. The third choice is right.

Learn more about gasoline at;

https://brainly.com/question/29186659

#SPJ2

2. Why do old video games have large pixels and images with jagged edges?
Because that was the style at the time.
Because it allowed for larger files.
Because it allowed for smaller files.
Because smaller pixels didn't exist.

Answers

Answer:

A

Explanation:

cuz yea

Watch any film of the silent era. Choose a short film from any genre that is less than 30 minutes long. Write a review of your experience of watching this film. Make comparisons with a modern film of the same genre that you have recently watched.

Answers

 A review of your experience of watching this film. Make comparisons with a modern film of the same genre that you have recently watched The Consistency of the Silent Era Technique in The Artist.

What have been a number of the principal silent movie genres?

Many early silent movies have been both dramas, epics, romances, or comedies (frequently slapstick). One-reelers (10-12 minutes) quickly gave manner to four-reel feature-period movies.

From the factor of visible method seems there are a few which can be ordinary of the silent film technology this is appearing players, kind of shot, modifying transitions, intertitles and sound strategies together with using track at some stage in the movie.

Read more about the comparisons :

https://brainly.com/question/25261401

#SPJ1

who stronger than the rock or jhon cena
a the rock
b jhon cena

Answers

the rock because he is strong, I don't know

Answer: John Cena

Explanation:

John Cena is stronger than the rock

Numerous engineering and scientific applications require finding solutions to a set of equations. Ex: 8x + 7y = 38 and 3x - 5y = -1 have a solution x = 3, y = 2. Given integer coefficients of two linear equations with variables x and y, use brute force to find an integer solution for x and y in the range -10 to 10.

Ex: If the input is:

8
7
38
3
-5
-1
Then the output is:

x = 3 , y = 2
Use this brute force approach:

For every value of x from -10 to 10
For every value of y from -10 to 10
Check if the current x and y satisfy both equations. If so, output the solution, and finish.
Ex: If no solution is found, output:

There is no solution
Assume the two input equations have no more than one solution.

Note: Elegant mathematical techniques exist to solve such linear equations. However, for other kinds of equations or situations, brute force can be handy.

Answers

The brute strength method determines if each x and y value satisfies both conditions. To do this, we must iterate through each result in the specified range and insert them into both models.

What are Elegant mathematical technique?

ALGORITHM :

1. Take the values of all coefficients and SET flag = FALSE

2. Run a FOR loop for x in range (-10, 11). 11 won't be included.

2a. Inside the first FOR, start the y FOR loop in range(-10,11). 11 won't be included

2b. Inside the y FOR loop, check IF for a particular value of x and y both the equations satisfied.

2c. If yes, set flag TRUE and print values of x and y.

2d. ELSE the flag stays FALSE.

END FOR Y

END FOR X

3. Check if flag = FALSE, then print NO SOLUTION

PYTHON CODE :

a=int(input()) #taking input for each coefficient

b=int(input())

c= int(input())

a1= int(input())

b1= int(input())

c1= int(input())

flag = False

for x in range(-10,11): #checking for all values of x in range -10 to 10

for y in range(-10,11): #checking for all values of x in range -10 to 10

if (a  x + b  y – c == 0) and (a1*x + b1*y - c1 == 0) : #checking if the x and y values satisfy the equation

flag = True #setting the flag if solution is found

print('Solution : x = {-10, 10}, y = {-10, 10}'.format(x,y)) #if they satisfy print x & y

if flag = False : #if flag stays false, that means there is no solution

print('No solution')

OUTPUT : The output is given below.

More about the Elegant mathematical technique link is given below.

https://brainly.com/question/27934739

#SPJ1

explain why you would use the soft on/off jumper when working on ATX system

Answers

Explanation:

Soft power prevents a user from turning off a system before the operating system has been shut down. It enables the PC to use power-saving modes that put the system to sleep and then wake it up when you press a key, move a mouse, or receive an e-mail (or other network traffic).

1) Which of the following best describes the Ribbon?
B. A feature that can translate text into any language
C. A slider that you can use to zoom the document
D. A cable that connects your computer to a printer
E. A toolbar with various commands

Answers

Answer:

E. A toolbar with various commands

Explanation:

the ribbon is pretty much the red bar on top of your screen on power point

The option that best describes the Ribbon is A toolbar with various commands.

What is ribbon in MS Word?

The Ribbon is known to be a kind of a user interface element that is said to be found below the Quick Access Toolbar and the Title Bar and It made up of Home, Insert, Page layout commands and others.

Therefore one can say that The option that best describes the Ribbon is A toolbar with various commands.

Learn more about ribbon from

https://brainly.com/question/11685530

#SPJ6

When does if(x>=y) execute?
A. when x is greater than y
B. when x is equal to y
C. when x is greater than or equal to y

Answers

Answer:

C. When x is greater than or equal to y

a. From binary to decimal; 100112 b. From decimal to octal; 57110 c. From decimal to hexadecimal; 22210 a . From binary to decimal ; 100112 b . From decimal to octal ; 57110 c . From decimal to hexadecimal ; 22210​

Answers

Answer:

a. The answer is 19 [tex](10011)_{2} = (1 * 2^{4}) + (0*2^{3}) + (0*2^{2}) + (1 * 2^{1}) + (1 *2^{0}) = 19[/tex]

b. The answer is [tex](157426)_{8}[/tex]  

When 57110 is divided by 8, the quotient is 7138 and the remainder is 6. When 7138 is divided by 8, the quotient is 892 and the remainder is 2. When 892 is divided by 8, the quotient is 111 and the remainder is 4. When 111 is divided by 8, the quotient is 13 and the remainder is 7. When 13 is divided by 8, the quotient is 1 and the remainder is 5. When 1 is divided by 8, the quotient is 0 and the remainder is 1.

c. The answer is [tex](56C2)_{16}[/tex]

When 22210 is divided by 16, the quotient is 1388 and the remainder is 2.

When 1388 is divided by 16, the quotient is 86 and the remainder is 12 = C. When 86 is divided by 16, the quotient is 5 and the remainder is 6. When 5 is divided by 16, the quotient is 0 and the remainder is 5.

Other Questions
Helppppp meeeee pleaseeee? A car and a truck, starting from rest, have the same acceleration, but the truck moves twice the length of time. Compared with the car, the truck will travel Which best states the theme of this story? experience can refine one's goals. love can overcome all challenges. working in nature promotes inner calm. making sacrifices is part of growing up. Which of the following was the main reason farmers supported the war efforts?O to show patriotismO to increase their salesO to help othersO to follow the laws= What is the answer to the question the virus known as ________ primarily infects lymphocytes. The graph below shows point P and line A. If line B is drawn such that it passes through point P and is parallel to line A, what is the equation of line B? Give your answer in the form y = mx + c, where m and care integers or fractions in their simplest forms. The graph below shows point P and line A. If line B is drawn such that it passes through point P and is parallel to line A , what is the equation of line B ? Give your answer in the form y = mx + c , where m and care integers or fractions in their simplest forms . Please help!!!What is the area of , given that =/3 radians? Express your answer in terms of and as a decimal rounded to the nearest tenth. Show all your work. Read the excerpt from chapter 8 of The Travels of Marco Polo and study the map.Let us go on now to tell of a large city which forms part of the province of Aden but has a petty ruler of its own. This city, which lies about 400 miles north-west of the port of Aden, is called Shihr. It is ruled by a count, who maintains strict justice in his domain. He has several cities and towns under his sway but is himself subject to the sultan of Aden. The people are Saracens and worship Mahomet. The city has a very good port; for I assure you that many merchant-ships come here well loaded with goods from India, and from here they export many goods to India. In particular they export innumerable fine chargers and sturdy pack-horses of great worth and price, on which the merchants make a handsome profit.Map of Europe and Asia showing Marco Polo's route in red dashes and arrows.Based on the text and the map, which body of water do the Saracens use as their port?The Mediterranean SeaThe Arabian Sea The Bay of Bengal The Spice Islands How might the design be changed so that additional copies of print statements would not be needed? when you rub neutral objects Find a rational number between -1/3 and 1/2 5. (02.01 LC)Look at the image, and then choose the option to complete the sentence with the correct informal t command. (2 points)_______ el bal del carro.A. O AbraB. Abras C. abre D. abres Getting treatment at the dentistLow riskHigh risk????????????help please A family released their pet fish family into a local pond. The fish had no known local population. The impact of the fish on the ecosystem is not yet known.Which term would best define the fish added to the pond? Tariq also designs hot tubs. The diameter of the hot tub is 3 meters. What is the area of the deck that surrounds the hot tub? If necessary, round to the nearest tenth. A plane is coming in to taxi at an airport. It lands parallel to the surface at 480m/s and takes exactly one minute to come to a complete stop. What is its acceleration? The type of transcriptional control in operons in which a regulatory protein is an activator and stimulates transcription is called. Read this excerpt from Song of the Old Mother by William Butler Yeats.I rise in the dawn, and I kneel and blowTill the seed of the fire flicker and glow;Which description gives the best visualization of this excerpt?The narrator enjoys the warmth of the fire.The narrator cooks seeds in a pot on the fire.The narrator works to cool food that has cooked on the fire.The narrator restarts the fire by blowing on the embers. A square plastic tarp has sides that are 6 meters long. what is the tarp's area