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
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

D335 INTRO TO PYTHON QUESTIONS WITH CORRECT ANSWERS

Document preview thumbnail
Preview 2 out of 9 pages

D335 INTRO TO PYTHON QUESTIONS WITH CORRECT ANSWERS

Content preview

D335 INTRO TO PYTHON QUESTIONS WITH
CORRECT ANSWERS 2026-2027

Computer Program - CORRECT ANSWER -Set of instructions executing one at a time.



Input - CORRECT ANSWER -Data that is entered into the computer system via an input or
storage device.



Process - CORRECT ANSWER -A series of actions or steps taken to achieve an end



Output - CORRECT ANSWER -Data that has been processed into a useful format.



Variables - CORRECT ANSWER -A named item in a program, such as x or num_people, used to
hold a value



Interactive Interpreter - CORRECT ANSWER -a program that allows the user to execute one line
of code at a time



Code - CORRECT ANSWER -Common word for the textual representation of a program



Prompt ('>>>') - CORRECT ANSWER -A signal that the interpreter is ready to accept code



Statement - CORRECT ANSWER -A program instruction



Expressions - CORRECT ANSWER -A combination of items, like variables, literals, and
parentheses, that evaluates to a value, like 2*(x=1).

Codes that return a value when evaluated

, Assignment - CORRECT ANSWER -Creates a new variable using the '=' symbol



" = " - CORRECT ANSWER -assignment operator (NOT EQUALITY)

= is an assignment of a left-side variable with a right-side value



print() - CORRECT ANSWER -Displays variables or expression values

Always adds a newline character after the output



" # " - CORRECT ANSWER -Comments



Comments - CORRECT ANSWER -Uses "#"

Can be used to explain portions of the code to human readers and will be ignored by the
program



String Literal - CORRECT ANSWER -('Hello World')

Text enclosed in quotes that will be read as actual text by the program. May have letters,
numbers, spaces, or symbols



end=' ' - CORRECT ANSWER -keeps the next print's output on the same line separated by a
single space



Comma ( , ) - CORRECT ANSWER -Allows printing multiple items using a single print() statement.

print('Wage: ', wage)



Newline Character - CORRECT ANSWER -Output can be moved to the next line by printing \n

print("'\n2\n3') gives

Document information

Uploaded on
July 29, 2026
Number of pages
9
Written in
2025/2026
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

Sold
6
Followers
0
Items
1386
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