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

Chapters 1-3 "Python Programming: An Introduction to Computer Science, 3rd Ed." by John Zelle Questions and Answers

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
11-05-2025
Written in
2024/2025

Chapters 1-3 "Python Programming: An Introduction to Computer Science, 3rd Ed." by John Zelle Questions and Answers T/F Computer science is the study of computers. FALSE the fundamental question is "what can be computed?" T/F The CPU is the "brain" of the computer. TRUE T/F Secondary memory is also called RAM. FALSE main memory is called RAM. secondary memory is hard disks, solid-state disks, flash drives, CDs, and DVDs T/F All information that a computer is currently working on is stored in main memory. TRUE T/F The syntax of a language is its meaning, and semantics is its form. FALSE syntax is form and semantics is meaning T/F A function definition is a sequence of statements that defines a new command. TRUE T/F A programming environment refers to a place where programmers work. FALSE a programming environment is a program designed to help programmers write programs T/F A variable is used to give a name to a value to it can be referred to in other places. TRUE T/F A loop is used to skip over a section of a program. FALSE a loop is used to repeat a section of code T/F A chaotic function can't be computed by a computer. FALSE we literally wrote the program that computes a chaotic function What is the fundamental question of computer science? What can be computed? An algorithm is like a _____ recipe A problem is intractable when ___________ it is not practical to solve Which of the following is /not/ an example of secondary memory? RAM Computer languages designed to be used and understood by humans are _______ high-level languages A statement is ____________ a complete computer command One difference between a compiler and an interpreter is ____ a compiler is no longer needed after a program is translated By convention, the statements of a program are often placed in a function called ______ main Which of the following is /not/ true of comments? They make a program more efficient The items listed in the parentheses of a function definition are called _____ parameters (not arguments; arguments are the data stored in parameters) T/F The best way to write a program is to immediately type in some code and then debug it until it works. FALSE there are many steps T/F An algorithm can be written without using a programming language. TRUE T/F Programs no longer require modification after they are written and debugged. FALSE they need to be maintained T/F Python identifiers must start with a letter or underscore. TRUE T/F Keywords make good variable names. FALSE keywords/reserved words are literally the worst idea ever to use T/F Expressions are built from literals, variables, and operators. TRUE (L.O.V.) T/F In Python, x = x + 1 is a legal statement. TRUE T/F Python does not allow the input of multiple variable with a single statement. FALSE simultaneous assignment is a thing T/F A counted loop is designed to iterate a specific number of times. TRUE T/F In a flowchart, diamonds are used to show statements, and rectangles are used for decision points. FALSE Diamonds are used for decisions, and rectangles for statements. What of the following is not a step in the software development process? fee setting What is the correct formula for converting Celsius to Fahrenheit? F = 9/5(C) + 32 The process of describing exactly what a computer program will do to solve a problem is called _____ specification Which of the following is not a legal identifier? 2spam Which of the following are not used in expressions? (L.O.V.) statements Fragments of code that produce or calculate new data values are called ______ expressions (NOT assignment statements) Which of the following is not part of the IPO pattern? program (input, process, output is the correct pattern) The template for <variable> in range(<expr>) describes _____ a COUNTED loop Which of the following is the most accurate model of assignment in Python? sticky note In Python getting user input is done with a special expression called ____ input T/F Information that is stored and manipulated by computers is called data. TRUE T/F Since floating point numbers are extremely accurate, they should generally be used instead of ints. FALSE slower & unnecessary for some calculations T/F Operations like addition and subtraction are defined in the math library. FALSE they a part of basic python T/F The number of possible rearrangements of n items is equal to n!. TRUE T/F The sqrt function computes the squirt of a number. FALSE T/F The int data type is identical to the mathematical concept of integer. TRUE T/F Computers represent numbers using base 2 representations. TRUE T/F A hardware float can represent a larger range of values than a hardware int. TRUE T/F A Python int can represent indefinitely large numbers. FALSE Python is limited by the amount of computer memory available. T/F In Python, 4+5 produces the same result type as 4.0+5.0. FALSE 9 ≠ 9.0 What of the following is not a Python data type? rational

Show more Read less
Institution
CDW110V
Course
CDW110V








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

Written for

Institution
CDW110V
Course
CDW110V

Document information

Uploaded on
May 11, 2025
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Chapters 1-3 "Python Programming: An
Introduction to Computer Science, 3rd Ed."
by John Zelle Questions and Answers
T/F Computer science is the study of computers. - answer FALSE the fundamental
question is "what can be computed?"

T/F The CPU is the "brain" of the computer. - answer TRUE

T/F Secondary memory is also called RAM. - answer FALSE main memory is called
RAM. secondary memory is hard disks, solid-state disks, flash drives, CDs, and DVDs

T/F All information that a computer is currently working on is stored in main memory. -
answer TRUE

T/F The syntax of a language is its meaning, and semantics is its form. - answer
FALSE syntax is form and semantics is meaning

T/F A function definition is a sequence of statements that defines a new command. -
answer TRUE

T/F A programming environment refers to a place where programmers work. - answer
FALSE a programming environment is a program designed to help programmers write
programs

T/F A variable is used to give a name to a value to it can be referred to in other places. -
answer TRUE

T/F A loop is used to skip over a section of a program. - answer FALSE a loop is
used to repeat a section of code

T/F A chaotic function can't be computed by a computer. - answer FALSE we literally
wrote the chaos.py program that computes a chaotic function

What is the fundamental question of computer science? - answer What can be
computed?

An algorithm is like a _____ - answer recipe

A problem is intractable when ___________ - answer it is not practical to solve

Which of the following is /not/ an example of secondary memory? - answer RAM

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.
Pogba119 Harvard University
View profile
Follow You need to be logged in order to follow users or courses
Sold
48
Member since
1 year
Number of followers
2
Documents
4863
Last sold
3 weeks ago
NURSING TEST

BEST EDUCATIONAL RESOURCES FOR STUDENTS

3.9

9 reviews

5
4
4
2
3
2
2
0
1
1

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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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