Variables reduce unnecessary comparision in a bubble sort

Assignment Help Computer Engineering
Reference no: EM1326159

Programming logic and design
1. What type of variables can be used to reduce unnecessary comparision in a bubble sort.
(a) temporary (b) flag (c) integer (d) array
2.usually a program that processes an array uses a :
(a)decision (b) output report (c) batch (d) loop
3.when merging files, a ______ is used to determine which file the next record comes from.
(a) comparison (b) array (c) sequence (4) flag
4.when merging 2 files, what condition terminates the main loop of the program.
(a)when the first file reachs eof (b) when the second files reaches eof (c) when both files reach (d) when 100 records have been process
5.one of the things you need to find out about a module you wish to call is the:
(a) argument list (b) local variable names (c) number of lines code (d)original programmers name
6. Passing values to module helps facilitate:
a) confusion (b) encapsulation (c) sharing (d) reuse
7. What is the loosest style of coupling?
A) external (b) data-shared (c) control (d) data
8. Which of the following sorting methods is the least efficient?
A) insertion (b) selection (c) basic bubble sort (d) optimized bubble sort
9.in a (n) ______ sort all of the array elements are moved to make room for the newly sorted element.
A) swap (b) selection (c) bubble (d)insertion
10. What type of variable is used to help move array elements in a selection sort?
A) swap (b) temporary (c)flag (d) array
11.__________ contains an extra field in each record that holds a pointer to the next logical record.
A) link list (b) index (c) physical memory (d) random-access memory
12.a_____ application usually involves the user typing a choice at the command prompt
a)graphical user interface (b) batch (c) console (d) gui
13. When programmer writes a program ,she may leave certain module definitions as _______ when working on the mainline logic.
A) shells (b) stubs (c) standards (d) batches
14. When a menu contains numerous option, it is more elegant to use a(n) _____ structure than a series of decisions.
A)case (b) loop (c) if-then-else (d) batch
15.when matching records between files they must be :
a) sorted in the same order (b) padded to have the same length(c) backed up (d) printed
16. You need to understand a subroutine's _____ in order to use it
a) internal structure (b) programming style (c) local variables (d) interface
17.the order that array elements are stored in base on their memory address is the _____ order
a) numeric (b) physical (c) logical (d) index
18.you can circumvent potential problem cause by a user's invalid data entries by _______ the user's input
a) grouping (b) denying (c)validating (d) modifying
19.the first atsk that any menu-driven program should preform is:
a) accepting (b)displaying the menu (c) reading the user response (d) performing a module base on user selection
20.a variable's ______ in no way influences how the method is called from another module
a) local name (b) data type (c) size (d) definition

Reference no: EM1326159

Questions Cloud

Show the truth table for this function : Consider a logic function with three inputs, A, B, and C, and three outputs, D, E, and F . The function is defined as follows: D is true if A or C is true, E is true if A and C are true, and F is true only if B or C are false.
Show how an effective leader can manage : Emerging technology - Show how an effective leader can manage the change that implementing this new technology might require.
Explain why do you think the labor supply curve : Explain why do you think the labor supply curve for very gifted or unique people is quite inelastic.
Explaining the unilateral contract/llc partnership : When there is a unilateral mistake, in what three types of situations may a contract not be enforced? Explain your answer. Discuss which entity has less potential liability and greater tax advantages, a partnership or an LLC? Discuss in detail.
Variables reduce unnecessary comparision in a bubble sort : when merging 2 files, what condition terminates the main loop of the program.What type of variables can be used to reduce unnecessary comparision in a bubble sort.
Prepare the information system business plan : Information System and Processing - Prepare the information System Business Plan for a Consulting Company for the pharmaceutical Industry.
Compute the total fixed costs and total variable costs : Compute the total fixed costs, total variable costs, average fixed costs.
Potential challenges or obstacles of stakeholders : Stakeholders who would be advocates or supporters. Potential challenges or obstacles and how you would overcome them.
Explain seo and website optimizations and ranking : Explain SEO and Website Optimizations and Ranking and One of the interesting things that factor into getting a site ranked is the age of the site

Reviews

Write a Review

Computer Engineering Questions & Answers

  Determining the sample rate

Find the appropriate values of the sampling rate fs, the quantizing level L, and the binary digits n, assuming fM = 3.2 kHz.

  Why we have a divide databases and data warehouse

Why we have a divide databases and data warehouse

  How star configuration with a single router in the middle

A seven-story office building has 15 adjacent offices per floor. Each office contains the wall socket for a terminal in the front wall, so the sockets form a rectangular grid in the vertical plane, with a separation of 4 meters between sockets, bo..

  What are important considerations for an organization

Different types of storage devices are optimal for different situations. Explain what situations are appropriate for the following devices and explain.

  What role might the reticular activation formation play

What role may the "Reticular Activation Formation" play in the AROUSAL process.

  Function to input the 20 integers in the range of 1 to 6.

In C Write down the main function in order to input the 20 integers in range of 1 to 6. Write down a function in order to count number of times the numbers 2 and 5 occur.

  Data storage problem in the database tables

You must select the data storage problem of your interest and recognize the different pieces of the data which must be stored within the database.

  Creating a source documents on access 2010

Explain how to generate a source documents on the access 2010 with the information to involve the password, user ID, name, telephone, address, item number, e-mail address, bid offered, and method of payment.

  Securing the web passwords

Describe how the Web passwords can be more secure. Give examples and/or details in order to support your ideas.

  Designing the dfd

Construct a context diagram for the new system. Construct a diagram 0 DFD for the new system.

  Creating a program that creates a single tips object

Creating a program that creates a single Tips object

  Define corrective, adaptive, perfective, and preventive

explain an example of each of the four types of maintenance: corrective, adaptive, perfective, and preventive. Discuss how the decision to proceed is reached in each case. Be specific.

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