Add to folder Introducing inter-base.net Folders! Find out exactly how you can intelligently organize your Flashcards.

Flag




You are watching: Array elements must be ________ before a binary search can be performed.




Use LEFT and also RIGHT arrowhead keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;


*
*

The advantage of a direct search is its __________.

a) complexity

b) efficiency

c) simplicity

d) speed


A(n) ________ search is even more efficient than a(n) ________ search.

a) character, string

b) integer, double

c) binary, linear

d) linear, binary


A binary search begins via the _________ facet of an selection.

a) initially

b) last

c) largest

d) middle


The bubble kind is a simple way to arrange data right into ascending order, however it cannot arvariety information into descending order.

a) True

b) False


Before you have the right to percreate a choice kind, the data need to be stored in ascfinishing order.

a) True

b) False


The _________ sort commonly perdevelops fewer exchanges than the ________ kind.

a) bubble, selection

b) binary, straight

c) selection, bubble

d) ANSI, ASCII


A(n) ________ search offers a loop to sequentially step via an selection.

a) binary

b) unary

c) straight

d) relative


When an variety is sorted from highest to lowest, it is said to be in _____ order.

a) reverse

b) forward

c) ascending

d) descending


Using a binary search, you are even more likely to find an item than if you usage a straight search.

a) True

b) False


When the indirection operator is provided with a pointer variable, you are actually working via the value the pointer is pointing to.

True

False


When you add a worth to a guideline, you are actually adding that number times the size of the data kind referenced by the guideline.

True

False


The strcat feature checks to make sure the first string is huge sufficient to host both strings prior to perdeveloping the concatenation.

True

False


String dealing with features accept as disagreements pointers to strings (range names or reminder variables), or literal strings.

True

False


If the beginning address of a string is passed right into a guideline parameter, it deserve to be assumed that all the personalities, from that deal with as much as the byte that holds the null terminator, are component of the string.

True

False


If tolowers discussion is currently lowerinstance, it will certainly be inadvertently converted to uppersituation.

True

False


Character trial and error functions, such as isupper, accept strings as arguments and test each character in the string.

True

False


in the definition of a structure variable, the __________ is placed prior to the variable name, simply choose the data type of a continual variable is inserted prior to its name.


When a framework is passed _________to a duty, its members are not copied.

a) by referral

b) by worth

c) Namong these


Data types that are produced by the programmer are recognized as:

a) variables

b) abstract data types

c) functions

d) parameters


A structure _____________ contain members of the same data type.

a) cannot

b) have the right to

c) shouldn"t

d) Namong these


A declaration for an enumerated kind starts through this vital word.

a) enumerated

b) enum_type

c) enum

d) ENUM


Look at the following declaration. enum Tree OAK, MAPLE, PINE ;In memory, what worth will the MAPLE enumerator be stored as?

a) "MAPLE"

b) 2

c) "M"

d) 1


The ios::out flag causes the file"s existing contents to be deleted if the file currently exists.

True

False


This data kind can be used to produce files and also write information to them yet cannot be used to check out indevelopment from them.

a) ofstream

b) ifstream

c) afstream

d) outstream


What is true about the complying with statement?out.open("worths.dat", ios::app);

a) If the file already exists, its contents are kept and all output is written to the finish of the file.

b) If the file exists, it need to be reput via a new copy of worths.dat

c) If the file exists, it can be opened up yet not modified

d) None of these.


a) If the file already exists, its contents are kept and all output is created to the end of the file.


Which of the following statements opens up the file information.txt for both input and output? a) dataFile.open("info.txt", ios::in && ios::out); b) dataFile.open("information.txt", ios::in , ios::out); c) dataData.open("details.txt", input || output);d) dataDocuments.open("details.txt", ios::in | ios::out);


Beyond a C++ program, a document is identified by its _________. Inside a C++ routine, a document is figured out by a ____________.

a) file number, file name

b) file name, file number

c) name, deal with

d) name, file stream object


Cshedding a paper reasons any kind of unsaved indevelopment still hosted in the file buffer to be

a) conserved to the file

b) deleted

c) maintained in the buffer for safekeeping.

d) duplicated


A exclusive member feature may be called from a statement exterior the class, as long as the statement is in the exact same program as the course declaration.

True

False


Objects are developed from abstract data types that encapsulate _______ and also _______ together. a) numbers, characters

b) data, attributes

c) addresses, pointers

d) integers, floats


In OOP terminology, an object"s member variables are frequently referred to as its _________, and also its member functions are periodically referred to as its actions, or ____________.

a) worths, morals

b) data, activities

c) features, tasks

d) qualities, methods


Instances of accessibility specifiers are the keywords: a) close to and much

b) opened and closed

c) private and public

d) table and also row


Class declarations are generally stored right here.

a) On sepaprice disk volumes

b) In their own header documents

c) In .cpp documents, along with feature definitions d) Under pseudonyms


A ___________ is a member feature that is instantly referred to as when a class object is ___________.

a) destructor, produced

b) constructor, produced

c) static attribute, dealsituated

d) energy attribute, declared


When a constructor feature accepts no debates, or does not need to accept debates bereason of default debates, it is referred to as a(n): a) empty constructor

b) default constructor

c) stand-alone feature

d) arbitrator function


This type of member attribute might be dubbed from a statement external the course.

a) public

b) personal

c) undeclared

d) global


A course is a(n) _____________ that is characterized by the programmer.

a) data type

b) feature

c) strategy

d) attribute


Assuming that Rectangle is a class name, the statement Rectangle *BoxPtr;

a) declares a things of class Rectangle

b) asindicators the value of *BoxPtr to the object Rectangle

c) defines a Rectangle tip variable dubbed BoxPtr

d) is illegal in C++


When you derecommendation an object reminder, usage the

a) -> operator

b) operator

c) dot operator

d) & operator


*
inter-base.net has partnered with the National Tutoring Association Claim your accessibility


See more: Lyrics To Drop It Like Its Hot, Drop It Like It'S Hot

"cdnAssetsUrl":"","site_dot_caption":"inter-base.net","premium_user":false,"premium_set":false,"payreferer":"clone_set","payreferer_set_title":"C++ Final Exam","payreferer_url":"/flashcards/copy/c-ii-final-exam-5845485","isGuest":true,"ga_id":"UA-272909-1","facebook":"clientId":"363499237066029","version":"v2.9","language":"en_US"