• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 10 pages
Exam (elaborations)

Csc121 Python Exam Questions With Correct Answers

Document preview thumbnail
Preview 2 out of 10 pages

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

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

Document information

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

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

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.
Brainariam
3.4
(30)
Sold
160
Followers
7
Items
8411
Last sold
1 month ago



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