include to folder presenting inter-base.net Folders! find out how you can intelligently organize her Flashcards.

Flag




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




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

Use UP and DOWN arrow keys to upper and lower reversal the card;

H to present hint;

A reads text to speech;


*
*

The advantage of a straight search is that is __________.

a) complexity

b) efficiency

c) simplicity

d) speed


A(n) ________ search is much more efficient 보다 a(n) ________ search.

a) character, cable

b) integer, dual

c) binary, straight

d) linear, binary


A binary search begins with the _________ facet of one array.

a) an initial

b) critical

c) largest

d) middle


The bubble kind is an easy method to species data into ascending order, however it cannot arrange data right into descending order.

a) True

b) False


Before you have the right to perform a choice sort, the data need to be stored in ascending order.

a) True

b) False


The _________ kind usually performs fewer exchanges 보다 the ________ sort.

a) bubble, selection

b) binary, direct

c) selection, bubble

d) ANSI, ASCII


A(n) ________ search provides a loop come sequentially action through one array.

a) binary

b) unary

c) straight

d) relative


When variety is sorted from greatest to lowest, the is claimed to it is in in _____ order.

a) reverse

b) forward

c) ascending

d) descending


Using a binary search, girlfriend are more likely come find things than if you use a linear search.

a) True

b) False


When the indirection operator is used with a tip variable, you room actually working v the worth the tip is pointing to.

True

False


When you include a worth to a pointer, you room actually adding that number time the dimension of the data type referenced through the pointer.

True

False


The strcat function checks to make sure the very first string is huge enough to host both strings before performing the concatenation.

True

False


String managing functions accept as disagreements pointers come strings (array surname or reminder variables), or literal meaning strings.

True

False


If the starting address of a wire is passed into a reminder parameter, it deserve to be assumed that all the characters, native that resolve up to the byte that holds the null terminator, are part of the string.

True

False


If tolowers debate is currently lowercase, it will be inadvertently convert to uppercase.

True

False


Character experimentation functions, such as isupper, expropriate strings together arguments and test every character in the string.

True

False


in the an interpretation of a framework variable, the __________ is placed before the variable name, just like the data kind of a consistent variable is placed before its name.


When a structure is happen _________to a function, that is members are not copied.

a) by referral

b) by value

c) no one of these


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

a) variables

b) summary data species

c) features

d) parameters


A framework _____________ save members the the exact same data type.

a) cannot

b) deserve to

c) shouldn"t

d) no one of these


A declaration because that an enumerated form begins with 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 reasons the file"s existing contents to be turned off if the document already exists.

True

False


This data form can be used to develop files and also write info to them but cannot be offered to read info from them.

a) ofstream

b) ifstream

c) afstream

d) outstream


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

a) If the record already exists, its materials are preserved and also all calculation is composed to the finish of the file.

b) If the record exists, it have to be replaced with a brand-new copy that values.dat

c) If the document exists, it deserve to be opened yet not amendment

d) no one of these.


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


Which of the complying with statements opens up the record info.txt because that both input and also output? a) dataFile.open("info.txt", ios::in && ios::out); b) dataFile.open("info.txt", ios::in , ios::out); c) dataFile.open("info.txt", input || output);d) dataFile.open("info.txt", ios::in | ios::out);


Outside of a C++ program, a paper is established by that is _________. Within a C++ program, a file is established by a ____________.

a) paper number, file name

b) document name, file number

c) name, resolve

d) name, document stream object


Closing a file causes any unsaved details still held in the document buffer to be

a) conserved to the file

b) deleted

c) preserved in the buffer because that safekeeping.

d) duplicated


A exclusive member function may be dubbed from a statement outside the class, as long as the declare is in the same regimen as the course declaration.

True

False


Objects are developed from summary data varieties that encapsulate _______ and _______ together. A) numbers, personalities

b) data, attributes

c) addresses, needle

d) integers, floats


In OOP terminology, an object"s member variables room often called its _________, and also its member features are occasionally referred to together its behaviors, or ____________.

a) values, morals

b) data, tasks

c) attributes, tasks

d) attributes, methods


Examples of access specifiers are the keywords: a) near and also far

b) opened and also closed

c) private and also public

d) table and also row


Class declarations room usually save on computer here.

a) On separate disk volumes

b) In their very own header papers

c) In .cpp files, follow me with duty definitions d) Under pseudonyms


A ___________ is a member role that is automatically called when a class object is ___________.

a) destructor, produced

b) constructor, produced

c) static function, deallocated

d) energy function, declared


When a constructor function accepts no arguments, or go not have to accept disagreements because that default arguments, the is called a(n): a) empty constructor

b) default constructor

c) stand-alone role

d) arbitrator function


This type of member function may be referred to as from a statement external the class.

a) windy

b) private

c) undeclared

d) global


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

a) data form

b) duty

c) method

d) attribute


Assuming that Rectangle is a course name, the explain Rectangle *BoxPtr;

a) declares an object of course Rectangle

b) assigns the worth of *BoxPtr come the object Rectangle

c) defines a Rectangle guideline variable referred to as BoxPtr

d) is illegal in C++


When girlfriend dereference an item pointer, usage the

a) -> operator

b) operator

c) dot operator

d) & operator


*
inter-base.net has partnered with the nationwide Tutoring combination insurance 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++ last 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"