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;}

Answers

Answer 1

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.

In summary, if statements are not loops

(b): switch statements

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

Hence, switch statements are not loops

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

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


Related Questions

Can you help me in this question

Answers

Answer:

count = arry[0];

          for (i = 0; i < n; i++)

          {

              if (count>5);

              {

                  count;

              }

          }

       

       cout << "Total Count of the numbers greater than or equal to 5 : " <<count ;

Explanation:

count = arry[0];

          for (i = 0; i < n; i++)

          {

              if (count>5);

              {

                  count;

              }

          }

       

       cout << "Total Count of the numbers greater than or equal to 5 : " <<count ;

You are configuring NIC teaming on a server with two network adapters. You chose Switch Independent Mode. You now must choose between the two modes determining if one adapter is left offline or both adapters are functional. You require a mode for the highest throughput. What mode do you choose?

Answers

Answer:

The appropriate answer is "Active/Active mode".

Explanation:

Now just after the customers or clients respond to the traditional standards, the board is comprised the information rapport with the cloud service, which would be considered as Active mode.The car glides primarily somewhere at a specified constantly controlled rate of the conductor. Currently entering the grounding connection boosts the flow of electrons further into the receiver as well as the transmitter.

Thus the above is the correct solution.

Write a Prolog predicate makeset(L1, L2) that takes list L1 of integers and removes the repeating elements. The result is returned in list L2. For example, makeset([1,3,4,1,3,9],Set). would return [1,3,4,9].

Answers

Answer and Explanation:

Using Javascript:

We could just use ES6 syntax and quickly get our result with no long coding. ECMA script 2015, the sixth version of javascript programming language has an array method that returns the unique values of an array in a new array.

var allValues = [ 1,3,4,1,3,9 ];

let uniqueValues = [...new Set(allValues)];

console.log(uniqueValues);

This will output only the unique values 1,3,4,9

Number are stored and transmitted inside a computer in the form of​

Answers

Number are stored and transmitted inside a computer in the form of ASCII code

What is the primary difference between BMPs, JPEGs, and GIFs?

Answers

In simple words,
JPEGs- Images
GIFs- animated images used for messaging

In the properly way to explain,
BMPs- The BMP file format, also known as bitmap image file, device independent bitmap (DIB) file format and bitmap, is a raster graphics image file format used to store bitmap digital images, independently of the display device (such as a graphics adapter), especially on Microsoft Windows and OS/2 operating systems.

Answer:

BMPs are not compressed; JPEGs and GIFs are compressedExplanation:

What is the page table mainly for?

Answers

Answer: See explanation

Explanation:

A page table is used for the tracking and the location of different pages of a task in memory. It helps in showing the mapping of locations between the physical addresses and the virtual addresses.

A page table stores also has the page table entries and this is where the frame numbers are stored as well as the operational status.

what is SEO and SEM?

Answers

Answer:

SEO stands for “search engine optimization.” In simple terms, it means the process of improving your site to increase its visibility for relevant searches.

SEM, or search engine marketing, is the act of using paid strategies to increase search visibility.

What aspect should you consider before adding pictures to a document?

You should structure the BLANK first before you search for a relevant picture.

Answers

Answer:

You should structure the text first before you search for a relevant picture.

Explanation:

When adding a picture or pictures to a text document, the structure of the text must be considered.

Structure as used in the above sentence means (but is not limited to), the headings, the layouts, the spacing, paragraphs and word formatting in the document.

In other words, the way the document is organized

All these must be put in to place before one adds pictures into the document.

What is the IP address and TCP port number used by the client computer (source) that is transferring the file to gaia.cs.umass.edu

Answers

Answer:

Explanation:

ae

At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase by 2 percent each year for the next five years. Design a program with a loop that displays the projected semester tuition amount for the next five years.

Answers

Answer:grhgrt

Explanation:

The program is an illustration of loops;

Loops are program statements used to perform repetition

The tuition program

The program written in Python, where comments are used to explain each action is as follows:

#This initializes the fee

fee = 6000

#The following loop is repeated 5 times

for i in range(5):

   #This calculates the fee, each year

   fee *= 1.02

   #This prints the calculated fee

   print(round(fee,2),end=" ")

Read more about loops at:

https://brainly.com/question/24833629

#SPJ6

Explain the steps that are needed to remove the data items from linked list

Answers

Explanation:

Iterative Method:

To delete a node from the linked list, we need to do the following steps.

1) Find the previous node of the node to be deleted.

2) Change the next of the previous node.

3) Free memory for the node to be deleted.

Scenario: The Development group in a company wants to setup theirown Child Domain to have full control on managing their accounts and policies. The Main IT group is recommending they are setup with an Organizational Unit, and delegating the appropriate access.Make your case supporting either the Development group or the Main IT group.Computer ScienceEngineering & TechnologyNetworkingIFT 220

Answers

Answer:

(:

Explanation:

The Self-Quiz gives you an opportunity to self-assess your knowledge of what you have learned so far.

a. True
b. False

Answers

Answer:

a. True

Explanation:

A test can be defined as an examination or quiz given to a student (pupil) during an academic calendar in order to measure or determine his or her intelligence. It is usually graded based on a set of defined grades or scores.

The key characteristics of a well-designed test includes the following;

I. Standardization: it is important that test is set based on certain criteria and acceptable rules within the education community and curriculum.

II. Reliability: the questions contained in a test should be credible and backed by correct answers.

III. Validity: the test questions should be genuine and authentic across board.

Basically, a Self-Quiz is a form of test which is aimed at assessing or measuring the knowledge of a self quiz taker (user) such as a student or pupil.

This ultimately implies that, Self-Quiz avail an end users the opportunity to self-assess his or her knowledge of what he or she might have learned over a specific period of time.

However, any result or score obtained through a Self-Quiz count for nothing with respect to final grade or gaining admission into the university.

A ___________ consists of a large number of network servers used for the storage, processing, management, distribution, and archiving of data, systems, web traffic, services, and enterprise applications.

Answers

Answer:

Data center

Explanation:

A network service provider can be defined as a business firm or company that is saddled with the responsibility of leasing or selling bandwidth, internet services, infrastructure such as cable lines to both large and small internet service providers.

Generally, all network service providers, internet service providers and most business organizations have a dedicated building or space which comprises of a large number of computer systems, security devices, network servers, switches, routers, storage systems, firewalls, and other network associated devices (components) typically used for remote storage, processing, management, distribution, and archiving of large amount of data, systems, web traffic, services, and enterprise applications.

Furthermore, there are four (4) main types of data center and these includes;

I. Managed services data centers.

II. Cloud data centers.

III. Colocation data centers.

IV. Enterprise data centers.

Write an application that prompts a user for two integers and displays every integer between them. Display There are no integers between X and Y if there are no integers between the entered values. Make sure the program works regardless of which entered value is larger.

Answers

Answer:

x = int(input("Enter an integer: "))

y = int(input("Enter another integer: "))

if x > y:

   for number in range(y+1, x):

       print(number, end=" ")

elif y > x:

   for number in range(x+1, y):

       print(number, end=" ")

else:

   print("There are no integers between {} and {}".format(x, y))

Explanation:

*The code is in Python.

Ask the user to enter the two integers, x and y

Since we want our program to run regardless of which entered value is larger, we need to compare the numbers to be able to create the loop that prints the numbers.

Check if x is greater than y. If it is, create a for loop that iterates from y+1 to x-1 and print the numbers

Otherwise, check if y is greater than x. If it is, create a for loop that iterates from x+1 to y-1 and print the numbers

If none of the previous part is executed, print that there are no integers between

Todd Wallace works as the chief knowledge officer for Pennsylvania Lumber Company. He has been given the responsibility to create a product or service that will bring an added value to its customers to increase the company's revenue. Todd determines that the best value he can add is by creating a service that offers free next day shipping on any order over $50. Where in the value chain is Todd adding value?

a. The primary value activity inbound logistics
b. The primary value activity marketing and sales
c. The primary levy outbound logistics

Answers

Answer:

c. The primary levy outbound logistics.

Explanation:

Todd Wallace has identified a marketing strategy and has introduced a levy on outbound logistics for its customers. It has introduced a campaign for its customer free shipping on an order of $50 or above.

TRUE or FALSE: CSS is used to style web pages.

Answers

Answer:

true

Explanation:

HTML is the structure and CSS is the design

Part1) Given 3 integers, output their average and their product, using integer arithmetic.
Ex: If the input is:
10 20 5
the output is:
11 1000
Note: Integer division discards the fraction. Hence the average of 10 20 5 is output as 11, not 11.6667.
Note: The test cases include three very large input values whose product results in overflow. You do not need to do anything special, but just observe that the output does not represent the correct product (in fact, three positive numbers yield a negative output; wow).
Submit the above for grading. Your program will fail the last test cases (which is expected), until you complete part 2 below.
Part 2) Also output the average and product, using floating-point arithmetic.
Output each floating-point value with two digits after the decimal point, which can be achieved by executing
cout << fixed << setprecision(2); once before all other cout statements.
Ex: If the input is:
10 20 5
the output is:
11 1000
11.67 1000.00

Answers

Answer:

The program is as follows:

#include <iostream>

#include <iomanip>

using namespace std;

int main(){

   int num1, num2, num3;

   cin>>num1>>num2>>num3;

   cout << fixed << setprecision(2);

   cout<<(num1 + num2 + num3)/3<<" ";

   cout<<num1 * num2 * num3<<" ";

   return 0;

}

Explanation:

This declares three integer variables

   int num1, num2, num3;

This gets input for the three integers

   cin>>num1>>num2>>num3;

This is used to set the precision to 2

   cout << fixed << setprecision(2);

This prints the average

   cout<<(num1 + num2 + num3)/3<<" ";

This prints the product

   cout<<num1 * num2 * num3<<" ";

1- By using C++ programming language write a program which displays the Fibonacci Series numbers. Note: The number of elements is taken as in input from the user Hint: The Fibonacci Sequence: 0,1,1,2,3,5,8,13,21,34,55.. .

Answers

Answer:

i hope this helpful for you

Explanation:

Example 1.

#include <iostream>

using namespace std;

int main() {

   int n, t1 = 0, t2 = 1, nextTerm = 0;

   cout << "Enter the number of terms: ";

   cin >> n;

   cout << "Fibonacci Series: ";

   for (int i = 1; i <= n; ++i) {

       // Prints the first two terms.

       if(i == 1) {

           cout << t1 << ", ";

           continue;

       }

       if(i == 2) {

           cout << t2 << ", ";

           continue;

       }

       nextTerm = t1 + t2;

       t1 = t2;

       t2 = nextTerm;

       

       cout << nextTerm << ", ";

   }

   return 0;

}

Example 2.

#include <iostream>

using namespace std;

int main() {

   int t1 = 0, t2 = 1, nextTerm = 0, n;

   cout << "Enter a positive number: ";

   cin >> n;

   // displays the first two terms which is always 0 and 1

   cout << "Fibonacci Series: " << t1 << ", " << t2 << ", ";

   nextTerm = t1 + t2;

   while(nextTerm <= n) {

       cout << nextTerm << ", ";

       t1 = t2;

       t2 = nextTerm;

       nextTerm = t1 + t2;

   }

   return 0;

}

describe all the main stress causal agents​

Answers

Answer:

Causes of Stress

Being unhappy in your job.

Having a heavy workload or too much responsibility.

Working long hours.

Having poor management, unclear expectations of your work, or no say in the decision-making process.

Working under dangerous conditions.

Being insecure about your chance for advancement or risk of termination.

Joe has just started the Security Module. He wants to get through it as quickly as possible and take the Quiz. As he clicks through the unit, he sees a bunch of text with some activities sprinkled throughout, and is trying to decide how to proceed.

Required:
Which strategies would likely be most effective and efficient for Joe?

Answers

Answer:

Joe should read the explanatory text and complete the learning activities.

Explanation:

Given

See attachment for options

Required

Best strategy to get through the module

First off, rushing through the activities and taking guess for each question (as suggested by (a)) will not help him;

He may complete the activities but sure, he won't learn from the module.

Also, reading through the units without completing the activities is not an appropriate method because Joe will not be able to test his knowledge at the end of the module.

The best strategy to employ is to read through the units and complete the activities, afterwards (option (b)).

Other Questions
Can someone pls help me solve this . How will you distinguish the Tboli cloth? *1 puntoThe color is dark and accented with red and white patterns.The design is very complicated.The patterns are usually made of diamond shapesThe predominant color for each is red. Use abc to find the trigonometric ratios. Enter your answer as fractions I rlly need help! The Asian nations of China, Korea, and Japan did not always welcome Western foreigners. In fact, as Europeans pressed for more trade with East Asia, these nations often passed laws banning international trade and contact with foreigners. Use the following organizer to summarize the responses each of the Far Eastern countries had to Western influence. Then in a paragraph, compare these responses. Value of x? Complementary angles, easy. La fiesta Cmo van a celebrar en el restaurante? Describe la comida de la fiesta segun las fotos. Translate the following sentences into Chinese and make sure you place the location of the action correctly.(pls no use gogle trasnlate i will know if you do :) )1) I watch a movie at home.2) I work at school.3) I dance at school.4) I read at home.5) I eat Chinese food in China.6) I watch a ball game in Germany.7) I drink tea in Japan.8) I drink coffee in France.9) I drink cola in America. how does genetic factors influence the growth of trees in a forest? 5 difference between citizen and non citizen What eventually weakened the Mongolian Empire? If you were either Romeo's parents or Juliet'sparents, how would you react to your childmarrying into the family you dislike? Would youapprove once the marriage is finalized? Or wouldyou accept it? Who's happiness matters here? At the beginning of 20X1, a company issues 100,000 shares of 4%, $10 par value, cumulative preferred stock. All remaining shares outstanding are common stock. The company does not pay any dividends in 20X1, but pays dividends of $100,000 at the end of 20X2. How much of the dividend will be paid to common stockholders in 20X2?a. $20,000.B. $100,000.C. $80,000.D. $60,000. Activity 1 In your notebook, complete the following sentences using noun clauses: 1. Studies tell ____________2. Some people__________ 3. They believe_________ 4. The surgeons wish_______ 5. The patients hope_______. The following sentence may or may not need commas. Select the choice that contains correct comma usage. If commas are unnecessary, select "No commas needed.""Do you honestly believe" the police officer asked Zach "that you weren't speeding?" Question 4 of 10In a group of 30 students, the probability that at most 25 of them like to swimis 56%. What is the probability that at least 26 of them like to swim?A. 38%B. 44%C. 55%D. 62% 10 POINTS!!! PERSON TO HELP ME GET MARKED AS THE BRAINLEST PERSONif the first level consumers died out what animals and plants would start to die as well? Sarah's gross income last month was 1260. She pays 20% tax on her gross income. How much tax did Sarah pay last month? Suppose that many large samples were taken from a population and the sample proportion centered around 0.25 which of the following is most likely the population parameter0.250.450.350.15 Line Corporation's balance sheet showed the following amounts for their liability and stockholders' equity accounts: Current Liabilities, $5,000; Bonds Payable, $1,500; Lease Obligations, $2,000; and Deferred Income Taxes, $300. Total stockholders' equity was $6,000. The debt-to-equity ratio is:___________ edsedsedsedsedseds HELP PLZ FAST