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
Artyom0805 [142]
3 years ago
10

Which commands (constructs) do NOT have a loop when expressed in syntax graphs? Select all that apply Group of answer choices if

-then-else switch (expr) { case value: statements ;} for ( ; ; ) {} while (condition) do {statements;}
Computers and Technology
1 answer:
fiasKO [112]3 years ago
5 0

Answer:

if-then-else

switch (expr) { case value: statements ;}

Explanation:

Required

Which do not represent loop

Literally, looping means repeating an action or sequence of actions as long as a given condition is true.

For options (a) to (d), we have:

(a): if-then-else:

if statements are used to test conditions; depending on the truth or falsity of the condition, only one block of code can be executed at once.

<em>In summary, if statements are not loops</em>

(b): switch statements

This is an alternate to if statements and can be used in place of if statements.

<em>Hence, switch statements are not loops</em>

(c) and (d): for and while:

The above represent loops, because they both involve repetition of operations until the condition is no longer satisfied.

You might be interested in
What is the missing line of code?
Ray Of Light [21]

Answer:

phrase[2:5]

Explanation:

Given:

The above code segment

Required

Which instruction returns 'u a'

First, we need to get the index of u in the phrase:

u is at the third position but in programming, index starts at 0.

So, u is at index 2

Next, we need to get the index of a in the phrase:

a is at index 4

One of the ways to return a sub string from a string in python is string[start:stop+1]

Where:

start = 2 ----- index of u

stop = 4  ----- index of a

phrase ---- The string variable

So, the instruction that returns 'u a' is: phrase[2:5]

<em>Where 5 = 4 + 1</em>

5 0
4 years ago
What job titles describes a person with green engery? in career clusters
Amiraneli [1.4K]

Answer:

environmental scientist

Explanation:

8 0
3 years ago
Return a formatted string with numbers The function below takes three numerical inputs: num1, num2, and num3. Implement it to re
alexira [117]

Answer:

In Python:

def ret_formatted(num1,num2,num3):

   result = str(num1)+"_"+str(num2)+" ! "+str(num3)

   return result

Explanation:

This defines the function

def ret_formatted(num1,num2,num3):

This generates the output string

   result = str(num1)+"_"+str(num2)+" ! "+str(num3)

This returns the result string

   return result

3 0
3 years ago
Give two examples of html presentation
svp [43]

Answer:

Size, colors, borders, margins, etc. can be taken as the example of HTML presentation.

5 0
3 years ago
An extent is a named portion of secondary memory allocated for the purpose of storing physical records.
Dafna11 [192]

An extent is a named portion of secondary memory that is allocated for the purpose of storing physical records: a. true.

<h3>What is a hard-disk drive?</h3>

A hard-disk drive can be defined as an electro-mechanical, non-volatile data storage device that is made up of magnetic disks (platters) that rotates at high speed.

In Computer technology, all hard-disk drives are commonly installed on computers and other digital service for the storage of files and to enable the booting of a computer through its operating system (OS).

<h3>What is a memory?</h3>

A memory can be defined as a terminology that is used to describe the available space on an electronic device that is typically used for the storage of data or any computer related information such as:

  • Images
  • Videos
  • Texts
  • Music
  • Codes
  • Folders

In this context, we can reasonably infer that it is true that an extent refers to a named portion of secondary memory that is typically allocated for the purpose of storing physical records.

Read more on memory here: brainly.com/question/24881756

#SPJ4

3 0
2 years ago
Other questions:
  • The home page box will only appear with what people you may know
    12·1 answer
  • How many bones are in a human body
    7·2 answers
  • Why do the holes at the top of parachutes make it go slower
    12·1 answer
  • Write a loop that reads positive integers from standard input, printing out those values that are greater than 100, and that ter
    14·1 answer
  • What is an efficient way to ensure that the code is working as per the acceptance criteria/business requirements? (1 correct ans
    11·2 answers
  • Match the part of the browser window to the correct description.
    9·1 answer
  • In what ways are hardware and software different? in what ways are the the same?
    10·2 answers
  • The four general functions of any application program are: data storage, data access logic, application logic and presentation l
    11·1 answer
  • What type of adventure/puzzle computer games can I download and not have to pay for? Some games that I've played are Legend of Z
    9·2 answers
  • Deleting messages keeps them in the mailbox and on the server. How can they be removed from the server to reduce the quota?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!