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
Document preview thumbnail
Preview 3 out of 28 pages
Exam (elaborations)

CSCI 121 Final Exam Question and answers already passed || LATEST UPDATE 2026

Document preview thumbnail
Preview 3 out of 28 pages

CSCI 121 Final Exam Question and answers already passed || LATEST UPDATE 2026

Content preview

CSCI 121 Final Exam Question and
answers already passed || LATEST
UPDATE 2026


Which of the following is an input device for a computer?

a. CPU

b. Monitor

c. Mouse

d. Printer

e. Memory

c

Which of the following is a correct way to print out "Hello World!" on the screen

and the cursor

goes to the new line after the printing finished.

a. cout >> "Hello, World!\n" ;

b. cout << "Hello, World!/n" ;

c. cout >> "Hello, World!" << endl ;

d. cout << "Hello, World!" << endl;

d

Which of the following is correct?

a. #include < iostream>

b. #include <iostream>

,c. #include <iostream >

d. All of a, b, and c



*pg. 26

b

Which of the following prints out a tab space?

a. cout << "\t";

b. cout >> "\t";

c. cout << "/t";

d. cout >> "/t";

a

C++ source code is saved in a file with extension _____________

a. .obj

b. .cpp

c. .txt

d. .exe

b

Which of the following is a legal C/C++ identifier?

a. how?

b. 2how

c. how2

d. #how

, *pg. 43

c

Which of the following is the correct way to declare an int variable

named num_of_items+and

initialize it to 10?

a. Int num_of_items = 10;

b. int num_of_items[10];

c. int num_of_items(10);

d. none of the above

pg. 49

c

Which of the following is the correct C/C++ expression for math expression

square root of (2x + y)

a. sqrt(2*x+y)

b. sqrt(2x+y)

c. square(2*x+y)

d. square(2x+y)

a

What is the error in the following statement? Assume that x, and y are declared

and initialized.

if(x > y)

cout << x << " is smaller than " << y << endl;

Document information

Uploaded on
April 21, 2026
Number of pages
28
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$17.99

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

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.
Sold
268
Followers
6
Items
3632
Last sold
3 weeks ago


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