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

CSCI CH 4. Built around real course units and objectives!

Rating
-
Sold
-
Pages
27
Grade
A+
Uploaded on
29-12-2025
Written in
2025/2026

CSCI CH 4. Built around real course units and objectives!

Institution
CSCI
Course
CSCI










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

Written for

Institution
CSCI
Course
CSCI

Document information

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

Subjects

Content preview

CSCI CH 4.
Built around real course units and objectives!
1) Relational operators allow you to ________ numbers.
A) add
B) multiply
C) compare
D) average
E) None of these - Answer: C


2) After execution of the following code, what will be the value of input_value if the value 0
is entered at the keyboard at run time?


Cin >> input_value;
If (input_value > 5)
Input_value = input_value + 5;
Else if (input_value > 2)
Input_value = input_value + 10;
Else
Input_value = input_value + 15;


A) 15
B) 10
C) 25
D) 0
E) 5 - Answer: A


3) What will be the output of the following code segment after the user enters 0 at the
keyboard?


APPHIA – Crafted with Care and Precision for Academic Excellence.
1

,Int x = -1;
Cout << "Enter a 0 or a 1 from the keyboard: ";
Cin >> x;
If (x)
Cout << "true" << endl;
Else
Cout << "false" << endl;


A) Nothing will be displayed.
B) false
C) x
D) true - Answer: B




APPHIA – Crafted with Care and Precision for Academic Excellence.
2

, A = x >= y;


A) 10
B) 7
C) The string "x >= y"
D) 1
E) 0 - Answer: D


5) If you place a semicolon after the statement:


If (x < y)


A) The code will not compile.
B) The compiler will interpret the semicolon as a null statement.
C) The if statement will always evaluate to false.
D) All of the above
E) None of these - Answer: B


6) When a relational expression is false, it has the value ________.
A) one
B) zero
C) zero, one, or minus one
D) less than zero
E) None of these - Answer: B


7) This is a variable, usually a bool or an int, that signals when a condition exists.
A) relational operator
B) arithmetic operator

APPHIA – Crafted with Care and Precision for Academic Excellence.
3
$10.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
Apphia

Get to know the seller

Seller avatar
Apphia California University Of Pennsylvania
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
3 months
Number of followers
0
Documents
1240
Last sold
-
Apphia Tutors - Your Ultimate Study Companion for Academic Excellence.

Apphia Tutors is your all-in-one global study guide hub — built to make learning simple, smart, and rewarding. We bring together thousands of high-quality study materials, topic-specific notes, and verified answers designed to help students master every subject with ease. Whether you’re in high school, college, or university, Apphia Tutors has everything you need — from clear explanations to exam-ready practice questions. Our goal is to turn studying into a confident, stress-free journey toward success. Trusted by learners and educators worldwide, Apphia Tutors is where great grades begin and excellence grows.

Read more Read less
0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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