100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CSCI 121 Final Exam Question and answers already passed 2025/2026

Rating
-
Sold
-
Pages
28
Grade
A+
Uploaded on
14-12-2025
Written in
2025/2026

CSCI 121 Final Exam Question and answers already passed 2025/2026

Institution
CSCI 121
Course
CSCI 121










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CSCI 121
Course
CSCI 121

Document information

Uploaded on
December 14, 2025
Number of pages
28
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSCI 121 Final Exam Question and answers already passed
2025/2026
1. Which of the following is an input device for a comput- c
er?
a. CPU
b. Monitor
c. Mouse
d. Printer
e. Memory

2. Which of the following is a correct way to print out d
"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;

3. Which of the following is correct? b
a. #include < iostream>
b. #include <iostream>
c. #include <iostream >
d. All of a, b, and c

*pg. 26

4. Which of the following prints out a tab space? a
a. cout << "\t";
b. cout >> "\t";
c. cout << "/t";
d. cout >> "/t";

5. C++ source code is saved in a file with extension b



,a. .obj






, CSCI 121 Final Exam
Study online at https://quizlet.com/_8e9n66

b. .cpp
c. .txt
d. .exe

6. Which of the following is a legal C/C++ identifier?c
a. how?
b. 2how
c. how2
d. #how

*pg. 43

7. Which of the following is the correct way to declare an c
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

8. Which of the following is the correct C/C++ expression a
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)

9. What is the error in the following statement? Assume b
that x, and y are declared and
initialized. if(x > y)
cout << x << " is smaller than " << y << endl;

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.
LEWISSHAWN55 Yale University
View profile
Follow You need to be logged in order to follow users or courses
Sold
87
Member since
2 year
Number of followers
46
Documents
7223
Last sold
1 week ago
THE SHOP FOR EXAMS,TESTBANKS,AQA, WHAT YOU STUDY AND WISH TO PASS THEN COME AND CHECK FOR YOUR NEED ......

WANT TO PASS YOUR EXAMS??? IF YES CHECK OUT MY ACCOUNT FOR ALL YOUR EXAMS NEED BE IT NURSING,REALTORS, HUMAN RESOURCE,MATHS,BIOLOGY,WGU,ICT, YOU BETTER CHECK MY ACCOUNT FOR MORE IF YOU GET WHAT U WANT THEN FEEL FREE TO PURCHASE AT A BETTER PRICE........

3.1

10 reviews

5
5
4
0
3
0
2
1
1
4

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

Frequently asked questions