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

  Determined through default conventions

An advantage of dynamic scoping is that access to nonlocal variables is considerably faster than accesses to nonlocals when static scoping is used.

  Evaluating the post fixed expression

Approximate the post fixed expression a) Initialize an empty stack. While there exist more symbols within postfix string { b) If token is an operand, push it onto the stack. If token is an operator

  Describe the development of network architectures

explain the development of network architectures and its subsequent consolidation over past 20 years. Include topologies and the TCP/IP, Internetwork Packet Exchange/Sequence Packet Exchange (IPX/SPX), Network Basic Input Output System (NetBIOS), ..

  How can store configuration information on a motherboard

Why do you think the trend is to store configuration information on a motherboard in CMOS setup  than by using jumpers or switches.

  Identify the class boulesurprise

Identify the class BouleSurprise.

  Speed routing protocol

Following question is related to SPEED routing protocol-Multiple speeds are computed in MAC layer. The forwarder with highest speed is selected on MAC layer feedback. This selection could not produce a shortest path.

  Economic life of technology product

Explain what do you understand by the economic life of a technology product. Discuss how does economic life of the technology product is compared with the technology life and product life?

  Program to print a sequence of 20 random die tosses

Write down a program which produces a sequence of 20 random die tosses in an array and which prints the die values.

  How the estimated budget is as close to reality as possible

How important is it to be accurate with respect to the estimated budget and actual budget of a project.

  Categorizing the threat

Download a password cracker developed for your operating system. Run the cracker on your system. Describe the results from cracker.

  Patients taking benefit of social networks

Patients are able to take the benefit of the social networks to do more than just the share pictures and tweets. Analyze the benefit and de-merits of utilizing the mobile computing technology in order to monitor the patients.

  Application showing files name-size and last modifiaction

Make a file by utilizing any word-processing program or the text editor. Write down an application which shows the file's name, size, and time of the last modification.

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