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
Exam (elaborations)

D335 Introduction to Python (Sections 1-4) questions with answers

Rating
-
Sold
-
Pages
19
Grade
A+
Uploaded on
14-06-2025
Written in
2024/2025

D335 Introduction to Python (Sections 1-4) questions with answers

Institution
WGU D335 Introduction To Programming In Python
Course
WGU D335 Introduction to Programming in Python

Content preview

D335: Introduction to Python (Sections 1-4) questions with
|\ |\ |\ |\ |\ |\ |\ |\




answers



1.Input: A program gets data, perhaps from a file, keyboard, touchscreen,
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




|\ network, etc. |\




2.Process: A program performs computations on that data, such as
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




adding two values like x + y
|\ |\ |\ |\ |\ |\




3.Output: A program puts that data somewhere, such as to a file,
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\




screen, or network. |\ |\




4.computational thinking,: creating a sequence of instructions to solve a |\ |\ |\ |\ |\ |\ |\ |\ |\ |\




problem

5.algorithm: A sequence of instructions that solves a problem
|\ |\ |\ |\ |\ |\ |\ |\




6.Python interpreter: a computer program that executes code written in
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




the Python programming language.
|\ |\ |\




7.interactive interpreter: a program that allows the user to execute one line
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\




|\ of code at a time
|\ |\ |\ |\




8.Code: a common word for the textual representation of a program
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




9.line: row of text
|\ |\ |\




1 |\/
|\19

,10.prompt: indicates the interpreter is ready to accept code
|\ |\ |\ |\ |\ |\ |\ |\




11.statement: a program instruction |\ |\ |\




12.Expressions: code that return a value when evaluated |\ |\ |\ |\ |\ |\ |\




13.cariables: named references to values stored by the interpreter
|\ |\ |\ |\ |\ |\ |\ |\




14.print(): function that displays variables or expression values
|\ |\ |\ |\ |\ |\ |\




15.'#": character tha denote comments, which are optional but can
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




be used to explains portions of code to a human reader
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




16.string literal: text enclosed in quotes (single or double) and can
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\




contain letters, numbers, spaces, or symbols
|\ |\ |\ |\ |\




17.Why would a programmer add
|\ |\ |\ |\




end=' ' inside of print()?: To keep the output on the same line
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\




18.print(variable_name) *without quotes*: to output the value of a variable |\ |\ |\ |\ |\ |\ |\ |\ |\




19.\n: newline character; output can be moved to the next line
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




20.whitespace: any space, tab, or newline |\ |\ |\ |\ |\




21.variable = input(): reads a user-enter string and changes it into a
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\




variable

22.type: determines how a value can behave
|\ |\ |\ |\ |\ |\




23.int(): converts a string to an integer
|\ |\ |\ |\ |\ |\




24.syntax error: violating a programming language's rules on how
|\ |\ |\ |\ |\ |\ |\ |\ |\


2 |\/
|\19

, symbols can be combined to create a program
|\ |\ |\ |\ |\ |\ |\




25.runtime error: program's syntax is correct, but the program attemps
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\




an impos- sible operation, such as dividing by zero or multiplying
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\




strings together |\




26.crash: Abrupt and unintended termination of a program
|\ |\ |\ |\ |\ |\ |\




27.SyntaxError: The program contains invalid code that cannot be
|\ |\ |\ |\ |\ |\ |\ |\ |\




understood.

28.IndentationError: The lines of the program are not properly indented.
|\ |\ |\ |\ |\ |\ |\ |\ |\




29.ValueError: An invalid value is used- can occur if giving letter to int().
|\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\ |\




3 |\/
|\19

Written for

Institution
WGU D335 Introduction to Programming in Python
Course
WGU D335 Introduction to Programming in Python

Document information

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

Subjects

CA$27.94
Get access to the full document:

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

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.
EXAMSTUDYPLUG Stanford University
Follow You need to be logged in order to follow users or courses
Sold
338
Member since
3 year
Number of followers
107
Documents
19904
Last sold
2 days ago
GRADE BUDDY

Welcome to My Page! Are you looking for high-quality study resources to ace your exams or better understand your coursework? You've come to the right place! I'm passionate about sharing my knowledge and helping students succeed academically. Here, you'll find a wide range of well-organized notes, study guides, and helpful materials across various subjects, including Maths ,nursig, Biology, History, etc.. Each resource is carefully crafted with detailed explanations, clear examples, and relevant key points to help simplify complex concepts. Whether you're preparing for a test, reviewing lectures, or need extra support, my resources are designed to make your learning experience smoother and more effective. Let me be a part of your academic journey, and feel free to reach out if you have any questions or need personalized assistance!

Read more Read less
4.5

234 reviews

5
158
4
50
3
14
2
5
1
7

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