1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anestetic [448]
4 years ago
11

The while loop has two important parts: an expression that is tested for a true or false value, and:

Computers and Technology
1 answer:
agasfer [191]4 years ago
5 0

Answer:

The correct answer for the given question is option(A) i,e a statement or block that is repeated as long as the expression is true.

Explanation:

While loop is an entry control loop it means if the condition in while loop is true then the statement inside the while loop is executed untill condition of while loop is false .

Following are the syntax of while loop

while(condition checking)

{

// statement

// increment or dec variable;

}

Let us consider an example of while loop

Following are the program in c++

#include<iostream> // header file

using namespace std; //namespace

void main() // main method

{

int k=1; // variable declarartion

while(k<5) // iterating over loop

{

cout<<"hello brainly:";

k++; // increment of k by 1

}

}

In the following code the variable k is initialized by 1 so 1<5 condition is "true" it executed the statement  inside the loop that menas when k=1 it print hello brainly: after printed the message  hello brainly: it increment the value of k by 1, Now k becomes "2" again 2<5 condition is "true "it executed the statement again .This process will continue untill k=5 when k=5 the condition is "false" it terminate the while loop.

Output

hello brainly:hello brainly:hello brainly:hello brainly:hello brainly:

You might be interested in
Posts that you delete
kiruha [24]
Answer
are visible to others may already have been shared
8 0
2 years ago
Who knows a website to learn how to code in java?
Murrr4er [49]
Simple...

Although we are not allowed to link in websites..(against guidelines) you can search up codeacademy, this is a place to learn to code.

Thus, your answer.
6 0
3 years ago
how to get into harvard stanford mit ivy league guaranteed upper middle class need aid 9th grade, computer science major have no
Murrr4er [49]

Answer:

Colleges care a lot more about your math skills than computer stuff, even for computer science. Make sure you still do some computer science stuff (esp. if it's extracurricular) but focus on improving your math.

8 0
3 years ago
Binary Numbers and Conversion 1. Complete the following decimal-to-binary number conversions. a) 17 (10) b) 34 (10) c) 58 (10) d
GaryK [48]

Answer:

a) 10001

b)100010

c)111010

d)1111100

e)1110111

f)10110010

g)100101001

h)110011101

Explanation:

7 0
3 years ago
In the context of firewall as a nonbiometric security measure, a _____ is software that acts as an intermediary between two syst
irga5000 [103]

Answer:

Proxy Server                        

Explanation:

  • Proxy server is a server that acts as a mediator between two systems.
  • One system can be your computer and the other can be the server to which you are asking a service, such as requesting a web page.
  • Lets suppose you request a web page from a server and you type a URL of a website to access a web page.
  • This request goes to proxy server which sends this request on your behalf to the target server in order to retrieve that web page.
  • Proxy server makes this request to the target server on the internet by using one of its IP addresses.
  • When the proxy server gets that web page, it will forward that web page to your requesting computer.
  • If you request a specific service such as a website frequently the proxy server saves that website on its cache.
  • So if you request that website again, proxy server will forward it to you from its cache rather than requesting it again from the target server on your behalf resulting in quick response to the user's request.
  • Proxy servers provide users with privacy to access the websites, and they can surf the internet anonymously .
8 0
3 years ago
Other questions:
  • video-sharing sotes such as youtube and vimeo provide a place to post short videos called clips true or false?
    5·1 answer
  • Fill in the missing statements or expressions in the following code that checks to ensure that a user enters an integer value at
    11·1 answer
  • printStars is a method that accepts a single int argument and returns no value. It prints as many stars as indicated by its argu
    9·1 answer
  • The _____ element of the wsdl describes the data being exchanged between the web service providers and the consumers, including
    12·1 answer
  • Explain in details three security countermeasures you know.​
    10·1 answer
  • What is most important to print out and keep offline?
    12·2 answers
  • Which function can you perform on a word processor but not on a typewriter?
    11·1 answer
  • How to turn on a computer
    9·1 answer
  • 4. What are the things that a computer literate understands?name them
    5·2 answers
  • What is the half of 3/18
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!