• 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 3 out of 17 pages
Exam (elaborations)

Programming In Python – WGU D335: Questions With Applicable Solutions

Document preview thumbnail
Preview 3 out of 17 pages

Programming In Python – WGU D335: Questions With Applicable Solutions

Content preview

Programming In Python – WGU D335: Questions
With Applicable Solutions
Program Correct Answer - Consists of instructions executed
one at a time

Input Correct Answer - A program gets data, perhaps from a
file, keyboard, touchscreen, network.

Process Correct Answer - A program performs computations
on that data, such as adding two values like x + y

Output Correct Answer - A program puts that data
somewhere , such as to a file, screen, or network

Variables Correct Answer - Refer to data , like x, y, and z.

Triangle's area Correct Answer - 1/2(base)(height)

Computational thinking Correct Answer - creating a sequence
of instructions to solve a problem

Algorithm Correct Answer - A sequence of instructions that
solves a problem

Python interpreter Correct Answer - a computer program that
executes code written in the Python programming language

Interactive interpreter Correct Answer - a program that allows
the user to execute one line of code at a time

Code Correct Answer - a common word for the textual
representation of a program

,Line Correct Answer - A row of text

Prompt Correct Answer - Informs the programmer that the
interpreter is ready to accept commands

Interpreter Correct Answer - A program that executes
computer code.

Statement Correct Answer - program instruction

Expressions Correct Answer - Code that returns a value when
evaluated; for example, the code wage * hours * weeks is an
expression that computes a number.

Variables Correct Answer - named references to values stored
by the interpreter

Assignment Correct Answer - Used to create a new variable
using the = symbol

Print Correct Answer - displays variables or expression values

Comment Correct Answer - To explain portion of code by a
human reader using the # symbol

What is the purpose of variables? Correct Answer - Store
values for later used to refer to values saved in memory by the
interpreter.

Expressions Correct Answer - are code that yield a value when
evaluated, such as 20 * 40, which yields the value of 800

, How are most Python programs developed? Correct Answer -
Writing code in files - The Python interpreter can load and execute
Python code saved in files

string literal Correct Answer - text enclosed in quotes, may
have letters, numbers, spaces , or symbols.

Given the variable num_cars = 9, which statement prints 9?
Correct Answer - print(num_cars)

newline character Correct Answer - "\n" moves output to the
next line

Whitspace Correct Answer - Any space, tab or newline

Input function Correct Answer - Causes the interpreter to wait
until the user has entered some text and has pushed the return key

string Correct Answer - It simply represents a sequence of
characters.

Which statement reads a user-entered string into variable
num_cars? Correct Answer - num_cars = input ()

Type Correct Answer - Determines how a value can behave.
For example, integers can be divided by 2, but not strings ex 'Hello'

int function Correct Answer - can be used to convert that
string to the integer for numbers

Type a statement that converts the string '15' to an integer and
assigns my_var with the result. Correct Answer - my_var =
int('15")

Document information

Uploaded on
July 5, 2025
Number of pages
17
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$20.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.
LeCrae
4.0
(448)
Sold
2149
Followers
1409
Items
22712
Last sold
1 day 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