Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CMPSC 201 Final Exam Clicker Questions and Answers 2023 with complete solution

Rating
-
Sold
-
Pages
6
Grade
A
Uploaded on
23-05-2023
Written in
2022/2023

CMPSC 201 Final Exam Clicker Questions and Answers 2023 with complete solution In C++, the elements of the array (values stored in the array) must be A. of the same data type B. floating point numbers C. whole number D. positive whole numbers E. boolean values A. of the same data type Which of the following would create an array that would hold up to 50 floating points numbers? A. float myarray[51]; B. float my array[50]; C. int abc[50]; D. double xyz[50]; E. double xyz[49]; D. double xyz[50]; Given the array definition int candybars[75]; What is the valid range of indices (subscripts) A. 1 to 75 B. 0 to 74 C. 0 to 75 D. 1 to 74 E. It cannot be determined from the array definition. B. 0 to 74 Given the array definition int clickers[ ] = {8, 6, 1, 18, 19}; what would be output by the statement coutclickers[3]; A. 18 B. 19 C. 1 D. 6 E. It cannot be determined. A. 18 In C++ entire arrays are passed to function in a manner similar to ___________ A. global variables B. pass by reference

Show more Read less
Institution
Course

Content preview

CMPSC 201 Final Exam Clicker Questions and Answers
2023 with complete solution
In C++, the elements of the array (values stored in the array) must be

A. of the same data type
B. floating point numbers
C. whole number
D. positive whole numbers
E. boolean values
A. of the same data type
Which of the following would create an array that would hold up to 50 floating
points numbers?

A. float myarray[51];
B. float my array[50];
C. int abc[50];
D. double xyz[50];
E. double xyz[49];
D. double xyz[50];
Given the array definition
int candybars[75];
What is the valid range of indices (subscripts)

A. 1 to 75
B. 0 to 74
C. 0 to 75
D. 1 to 74
E. It cannot be determined from the array definition.
B. 0 to 74
Given the array definition
int clickers[ ] = {8, 6, 1, 18, 19};
what would be output by the statement
cout<<clickers[3];

A. 18
B. 19
C. 1
D. 6
E. It cannot be determined.
A. 18
In C++ entire arrays are passed to function in a manner similar to ___________

A. global variables
B. pass by reference

, C. pass by value
D. returning values
E. Entire arrays cannot be passed to functions
B. Pass by reference
A linear search requires that the array be sorted

A. True
B. False
False
Given the array definition
int clickarray[ ] = {4, 10, 6, 7, 14, 18, 5, 3, 20};
which of the following commands would replace the 18 with 30.

A. clickarray[6] = 30;
B. clickarray[5] = 30;
C. 30 = clickarray[5];
D. 30 = clickarray[6];
E. Both B and C
click array[5] = 30;
A return statement in C++ can be used to return an entire array to a function call.

A. True
B. False
False (can send back by reference, but not returned by value because there would be
overhead)
Given the array declaration
double CQ[5][8];
how many values (maximum number) can be stored in the array CQ?

A. 28
B. 35
C. 32
D. 40
E. As many as the user wants.
D. 40
Supposed you wanted to create a 2-D C-string to hold 25 words and you know the
largest word contains 30 characters. Which of the following would be the correct
declaration (definition)?

A. char mywords[24][30];
B. mywords char[24][30];
C. char mywords[31][25];
D. char mywords[25][31];
E. mywords char[31][25];
D. char mywords[25][31];

Written for

Course

Document information

Uploaded on
May 23, 2023
Number of pages
6
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$9.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
LECTMAGGY Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
146
Member since
3 year
Number of followers
121
Documents
6314
Last sold
2 weeks ago
LECTMAGGY

Here, you will find everything you need in NURSING EXAMS AND TESTBANKS.Contact us, to fetch it for you in minutes if we do not have it in this shop.BUY WITHOUT DOUBT!!!!Always leave a review after purchasing any document so as to make sure our customers are 100% satisfied.

3.3

28 reviews

5
8
4
3
3
11
2
0
1
6

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions