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)

CS 108 INTRODUCTION TO COMPUTER SCIENCE COMPREHENSIVE STUDY GUIDE LATEST VERSION

Rating
-
Sold
-
Pages
15
Uploaded on
24-07-2026
Written in
2025/2026

CS 108 INTRODUCTION TO COMPUTER SCIENCE COMPREHENSIVE STUDY GUIDE LATEST VERSION

Institution
CS 108 INTRODUCTION TO COMPUTER SCIENCE
Course
CS 108 INTRODUCTION TO COMPUTER SCIENCE

Content preview

CS 108 — Intro to Computer Science: Study Guide




CS 108 INTRODUCTION TO COMPUTER SCIENCE COMPREHENSIVE STUDY GUIDE
LATEST VERSION




Coding Fundamentals · Algorithm Breakdowns · Worked Examples · Practice
Exam




Page 1 of 15

, CS 108 — Intro to Computer Science: Study Guide



Part 1 — Coding Basics
1.1 Variables and Data Types
A variable is a named storage location whose value can change during program
execution. Every variable has a type that determines what kind of data it can hold
and what operations are valid on it.
• Integer (int) — whole numbers: -3, 0, 42
• Floating-point (float/double) — decimal numbers: 3.14, -0.5
• Character (char) — a single symbol: 'a', '9', '$'
• Boolean (bool) — logical value: true or false
• String (str) — sequence of characters: "hello world"
int age = 20;
double gpa = 3.75;
char grade = 'A';
bool isEnrolled = true;
String name = "Alex";
1.2 Operators
• Arithmetic: + - * / % (modulus returns the remainder)
• Relational: == != < > <= >=
• Logical: && (AND) || (OR) ! (NOT)
• Assignment: = += -= *= /=
1.3 Control Structures
Control structures decide the order in which statements run.
// if / else
if (score >= 90) {
grade = 'A';
} else if (score >= 80) {
grade = 'B';
} else {
grade = 'C';
}

// for loop
for (int i = 0; i < 5; i++) {
print(i);
}

Page 2 of 15

Written for

Institution
CS 108 INTRODUCTION TO COMPUTER SCIENCE
Course
CS 108 INTRODUCTION TO COMPUTER SCIENCE

Document information

Uploaded on
July 24, 2026
Number of pages
15
Written in
2025/2026
Type
Exam (elaborations)
Contains
Unknown

Subjects

$15.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.
luzlinkuz Chamberlain University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1571
Member since
4 year
Number of followers
852
Documents
31396
Last sold
22 hours ago

3.8

322 reviews

5
140
4
63
3
62
2
17
1
40

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