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

  Create sql database "chart of accounts" report

A grand total of the balance field will be provided at the end of the report.

  Create a base class that contains all of the properties

Create a base class (also called a superclass) that contains all of the properties that are common to both of these products. Create 2 derived classes (also called subclasses) that contain different kinds of sizes.

  Write accessors for each of the declared class variables.

Read the file and display in the listbox each record splitting out the fields, eliminating the comma delimiters and placing spaces between the fields.

  Write a machine-language program

Write a machine-language program to input two one-digit numbers add them, and output the one-digit sum. Write it in a format suitable for the loader and execute it on the Pep/8 simulator.

  Design a driver to test implementation of program

Design a driver to test your implementation. Add various random elements to heap, and then remove & display smallest element.

  Create set-list of enumerated constants called week

Create set/list of enumerated constants called week which contains days of week. Have variable called today that is of kind week. Allot a value to today.

  Create function m-file called mass that requires two vector

Create a function M-file called mass that requires two vector inputs-the number of moles and the molecular weight-and returns the corresponding mass. Because you are providing vector input, it will be necessary to use the meshgrid functio..

  Javascript for metric conversions

Write a javascript that will assist the user with metric conversions. Your program should allow the user to specify the names of the units as strings.

  Write a program that will generate a data file

Write a program that will generate a data file containing 100 value points (Y(t)) from a damped sine function. Make use of the math library functions for the exponent and sine calculations.

  Allen has been investing in the stock market for quite some

allen has been investing in the stock market for quite some time and had some success with equity investments.recently

  Write program to read series of pairs of numbers

Write the program which reads series of pairs of numbers (product code and quantity sold) then the program must compute and print the total retail value

  Matlab that will use the flipping of two-sided coins to sim

Write a program in matlab that will use the flipping of two-sided coins to simulate any event that has a probability of success(Ps) that ranges between 0 and 1. The simulation will most likely be approximate. It must be accurate to at least 0.01

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