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

CS101 EXAM ALL QUESTIONS WITH ANSWERS 2025

Rating
-
Sold
-
Pages
32
Uploaded on
04-01-2025
Written in
2024/2025

CS101 EXAM ALL QUESTIONS WITH ANSWERS 2025...

Institution
CS101
Course
CS101

Content preview

When a function computes a value and needs to send it back to where the
function was called it needs this:
argument
def
don't pick this answer
invoke
return - ANSWER return

Which of the following is NOT a benefit of learning to code?
You can become a better problem solver
You may need to code in your job
You can develop a basic understanding of how software works
You learn to easily give up whenever you encounter a difficult problem. -
ANSWER You learn to easily give up whenever you encounter a difficult
problem.

T/F: An algorithm is a list of steps needed to solve a problem. - ANSWER
True

Which of the following is NOT an essential algorithm property?
The algorithm has inputs
The algorithm has outputs
The order of the steps is completely random
Each steps is doable
The algorithm must eventually hault - ANSWER The order of the steps is
completely random.

Which of the following is NOT a part of the Program Development Cycle?
Browsing
Input
Output
Processing - ANSWER Browsing

,Which of the following is NOT one of the four main parts of a general-purpose
computer?
central processing unit(CPU)
memory(RAM)
inputs (like keyboard or mouse
outputs(like monitor or printer
blanket(to keep the parts warm) - ANSWER blanket ( to keep the parts warm)

In a flowchart, which shape is used to represent the start or end of a solution?
arrow
diamond
oval
parallelogram
rectangle - ANSWER oval

In a flowchart, which shape is used to represent an action or process?
arrow
diamond
oval
parallelogram
rectangle - ANSWER rectangle

In a flowchart, which shape is used to represent the flow of execution?
arrow
diamond
oval
parallelogram
rectangle - ANSWER arrow

In a flowchart, which shape is used to represent input and output?
arrow
diamond
oval
parallelogram
rectangle - ANSWER parallelogram

In Python, a ____ begins with a pound sign (#)

,comment
formula
input
print - ANSWER comment

Which of the following is an environment for writing and running Python
programs?
ABLE
GRUMPY
IDLE
PUPPY - ANSWER IDLE

Who created Python?
Bill Gates
Steve Jobs
Guido van Rossum
Alan Turing - ANSWER Guido van Rossum

Which of the following is an advantage of using python?
it's easy to learn
its portable
its powerful
all of the above - ANSWER It's easy to learn, its portable, its powerful

The rules of programming language (punctuation, spacing, etc.) is called its___.
comments
function
syntax
variable - ANSWER syntax

What is a name used to store data in memory?
comments
function
syntax
variable - ANSWER variable

T/F: A computer program can be thought of as a "black box" with inputs and
outputs. - ANSWER True

, T/F: An algorithm is a sequence of steps that solves a problem. - ANSWER
True

T/F: A flowchart is a visual, or graphical, representation of a solution to a
problem. - ANSWER True

Which of the following is a valid Python variable name?
half pints
half-pints
halfPints
print - ANSWER halfPints

What is the output of this Python program?
a=5+2*3
print (a)
10
11
13
21 - ANSWER 11

What is the output of this Python program?
a = 7 +8 + 9 /3
print(a)
8
15
18
27 - ANSWER 18

What is the output of this Python program?
a = 19/4
print(a)
3
4
4.75
5 - ANSWER 4.75

What is the output of this Python program?

Written for

Institution
CS101
Course
CS101

Document information

Uploaded on
January 4, 2025
Number of pages
32
Written in
2024/2025
Type
Exam (elaborations)
Contains
Unknown

Subjects

  • cs101
  • cs 101
  • cs101 exam

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.
Boostertips Chamberlain College Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
261
Member since
3 year
Number of followers
195
Documents
5175
Last sold
2 weeks ago

3.8

44 reviews

5
19
4
8
3
10
2
2
1
5

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