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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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