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

CSC121 PYTHON EXAM QUESTIONS WITH CORRECT ANSWERS

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
17-06-2025
Written in
2024/2025

CSC121 PYTHON EXAM QUESTIONS WITH CORRECT ANSWERS /. Python formats all floating-point numbers to two decimal places when outputting with the print statement. TRUE OR FALSE? - Answer-FALSE /.Comments in Python begin with the # character. TRUE OR FALSE - Answer-TRUE /.What symbol is used to mark the beginning and end of a string? a quote mark (") a slash (/) a comma (,) an asterisk (*) - Answer-A quote mark /.The ________ function reads a piece of data that has been entered at the keyboard and returns that piece of data, as a string, back to the program. input() str_input() output() eval_input() - Answer-input() /.What is the informal language, used by programmers use to create models of programs, that has no syntax rules and is not meant to be compiled or executed? flowchart algorithm pseudocode source code - Answer-pseudocode /.result = 8 * 2 + 8 // 4 - Answer-18 /.The % symbol is the remainder operator, also known as the ________ operator. - Answer-modulus /.After the execution of the following statement, the variable sold will reference the numeric literal value as a(n) ________ data = 256.752 float currency int str - Answer-float /.What is the output of the following print statement?print('I'm ready to begin') Im ready to begin I'm ready to begin I'm ready to begin 'I'm ready to begin' - Answer-I'm ready to begin /.n PyCharm, what feature will alter a code file so that it conforms to the P PEP 8 coding style guide? A. Refactor B. Reformat Code C. Debug D. Help - Answer-Reformat Code /.Computer programs typically perform three steps: input is received, some process is performed on the input, and output is produced. TRUE OR FALSE - Answer-TRUE /.Which of the following is the correct if clause to determine whether choice is anything other than 10? if choice != 10 if not(choice 10 and choice 10): if choice != 10: if choice 10: - Answer-if choice != 10: /.Python allows you to compare strings, but it is not case sensitive. TRUE OR FALSE - Answer-FALSE /.Which of the following is the correct if clause to determine whether y is in the range 10 through 50, inclusive? if y = 10 or y = 50: if y = 10 and y = 50: if 10 y or y 50: if 10 y and y 50: - Answer-if y = 10 and y = 50: /.Python uses the same symbols for the assignment operator as for the equality operator. TRUE OR FALSE - Answer-FALSE

Show more Read less
Institution
CSC121 PYTHON
Course
CSC121 PYTHON

Content preview

CSC121 PYTHON EXAM QUESTIONS WITH CORRECT
ANSWERS

/. Python formats all floating-point numbers to two decimal places when outputting with
the print statement. TRUE OR FALSE? - Answer-FALSE

/.Comments in Python begin with the # character. TRUE OR FALSE - Answer-TRUE

/.What symbol is used to mark the beginning and end of a string?

a quote mark (")
a slash (/)
a comma (,)
an asterisk (*) - Answer-A quote mark

/.The ________ function reads a piece of data that has been entered at the keyboard
and returns that piece of data, as a string, back to the program.

input()
str_input()
output()
eval_input() - Answer-input()

/.What is the informal language, used by programmers use to create models of
programs, that has no syntax rules and is not meant to be compiled or executed?

flowchart
algorithm
pseudocode
source code - Answer-pseudocode

/.result = 8 * 2 + 8 // 4 - Answer-18

/.The % symbol is the remainder operator, also known as the ________ operator. -
Answer-modulus

/.After the execution of the following statement, the variable sold will reference the
numeric literal value as a(n) ________ data

type.sold = 256.752

float
currency
int

, str - Answer-float

/.What is the output of the following print statement?print('I\'m ready to begin')

Im ready to begin
I'm ready to begin
I\'m ready to begin
'I\'m ready to begin' - Answer-I'm ready to begin

/.n PyCharm, what feature will alter a code file so that it conforms to the Python.org PEP
8 coding style guide?

A.
Refactor
B.
Reformat Code
C.
Debug
D.
Help - Answer-Reformat Code

/.Computer programs typically perform three steps: input is received, some process is
performed on the input, and output is produced. TRUE OR FALSE - Answer-TRUE

/.Which of the following is the correct if clause to determine whether choice is anything
other than 10?

if choice != 10
if not(choice < 10 and choice > 10):
if choice != 10:
if choice <> 10: - Answer-if choice != 10:

/.Python allows you to compare strings, but it is not case sensitive. TRUE OR FALSE -
Answer-FALSE

/.Which of the following is the correct if clause to determine whether y is in the range 10
through 50, inclusive?

if y >= 10 or y <= 50:
if y >= 10 and y <= 50:
if 10 < y or y > 50:
if 10 > y and y < 50: - Answer-if y >= 10 and y <= 50:

/.Python uses the same symbols for the assignment operator as for the equality
operator. TRUE OR FALSE - Answer-FALSE

Written for

Institution
CSC121 PYTHON
Course
CSC121 PYTHON

Document information

Uploaded on
June 17, 2025
Number of pages
10
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

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.
kartelodoc Harvard University
View profile
Follow You need to be logged in order to follow users or courses
Sold
133
Member since
1 year
Number of followers
6
Documents
8139
Last sold
2 days ago

Our store offers a wide selection of materials on various subjects and difficulty levels, created by experienced teachers. We specialize on NURSING,WGU,ACLS USMLE,TNCC,PMHNP,ATI and other major courses, Updated Exam, Study Guides and Test banks. If you don't find any document you are looking for in this store contact us and we will fetch it for you in minutes, we love impressing our clients with our quality work and we are very punctual on deadlines. Please go through the sets description appropriately before any purchase and leave a review after purchasing so as to make sure our customers are 100% satisfied. I WISH YOU SUCCESS IN YOUR EDUCATION JOURNEY

Read more Read less
3.3

23 reviews

5
8
4
1
3
7
2
3
1
4

Trending documents

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