Is it ever correct to create a loop that cannot terminate

Assignment Help Programming Languages
Reference no: EM13950651

Questions 2-8 only require "yes" or "no."

1. If you have a program with a housekeep() module, a mainloop() module, and a finishup() module, when is the second input record usually read?

2. Is it ever correct to create a loop that cannot terminate?

3. Is it inefficient to place the calculation within the loop when a calculation can be performed once before entering a loop?

4. When you must satisfy two or more criteria to initiate an event in a program, should you make sure that the second decision is made entirely within the first decision?

5. In most programming languages, are you allowed to ask two or more questions in a single comparison by using a logical AND operator?

6. Do most programming languages allow you to ask two or more questions in a single comparison by using a logical OR operator?

7. In an AND situation, do you first ask the question that is more likely to be true?

8. Are elements in an array differentiated by numbers called subnumbers?

9. Of the following, which does not need to occur in a loop: you must initialize a variable that will control the loop; you must compare the variable to some value that stops the loop; within the loop, you must alter the variable? Or is it none of the above answers?

Reference no: EM13950651

Questions Cloud

Prepare the journal entries : Prepare the journal entries related to the contract.
What practice environment is of interest to you : Please introduce your background in nursing and tell us your career goals. Are you on the nurse educator or FNP track? What practice environment is of interest to you
Group of data elements describes a single entity or event : Which of the following data structures is a group of data elements that usually describes a single entity or event?
What would you say to your administrator : Scenario: Imagine you walk into your third grade classroom and your reading/literature textbooks have been replaced with The New England Primer. What would you say to your administrator? Predict your students' reactions. Decide what you would do f..
Is it ever correct to create a loop that cannot terminate : When you must satisfy two or more criteria to initiate an event in a program, should you make sure that the second decision is made entirely within the first decision?
Use the data in the grid to sort each population to species : The researchers discovered that the 12 populations could be organized into 3 distinct species. Populations A, B, and C each belong to a different species. Use the data in the grid to sort each population to the species to which it belongs.
Cookie creations is gearing up for the winter : Cookie Creations is gearing up for the winter holiday season
Diagrams with work and heat transfer : Determine (a) the temperature of the air at the compressor exit, in 8C, and (b) the heat transfer, in kJ per kg of air flowing. (c) Sketch the process on p-y and T-s diagrams and associate areas on the diagrams with work and heat transfer, respect..
Prepare entries in the capital projects fund for given event : Waterview does not use budgetary accounts for these projects. Prepare entries in the capital projects fund for these events.

Reviews

Write a Review

Programming Languages Questions & Answers

  Implement a program that processes an input file

Implement a program that processes an input file by changing every occurrence of an old string into a new string. (e.g., the usage is: chstr.pl file oldstring newstring, chstr.pl is your program name, file, oldstring and newstring are parameters ..

  Rewrite the program so input processing

Determine the output displayed when the button is clicked. Determine the output displayed when the button is clicked.

  Design program and incorporates sequential statements

Design the simple, working C++ program which uses the good design process and incorporates sequential, selection and repetitive programing statements and function.

  Design program to asks for number of fat grams

Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories are not less than 0.

  Program to accept inputs from user beginning temperature

Physicists tell us that lowest possible temperature is absolute zero. Absolute zero is -459.69 degrees Fahrenheit. Accept inputs from user: a beginning temperature, ending temperature, and increment value (all Fahrenheit).

  Create logic for program to enter each household size

Create logic for a program that allows a user to enter each household size and find out the mean and median household size in Marengo.

  Write program using to take input two integers by while loop

Write a program which uses while loops to perform following steps: Prompts user to input two integers: firstNum and secondNum. (firstNum must be less than secondNum).

  Program which converts fahrenheit to celsius.

Create the following program which converts Fahrenheit to Celsius. Your program must have the following functions: Read integer Fahrenheit temperatures from the user. You need to check whether the input is the correct one or not. If the user enters ..

  What are tools and strategies to increase traffic website

Select a web site from an education industry (university, school or training center) and analyze the ease of use of at least 3 functions and/or features?

  Write a while and a do-while loop

Pick one or more examples from everyday life and write a WHILE and a DO-WHILE loop.

  Advantages of separating logic from presentation

What are the advantages of separating logic from presentation? What are the differences between using the Dispatcher synchronously and asynchronously

  Provide a graphical view of the planets and bases

Intergalactic Navigation. Provide a graphical view of the planets and bases, and meteorite fields and display the requested path from start to destination.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd