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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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