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 Section 2 Introduction to Python (Terms) Exam with accurate solutions

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
29-06-2025
Written in
2024/2025

D335 Section 2 Introduction to Python (Terms) Exam with accurate solutions

Content preview

D335 Section 2: In tr oduction to |! |! |! |! |!




Python (Ter m s) Exam w ith accur ate |! |! |! |! |!




solution s


A computer program consists of basic instructions such as:
|! |! |! |! |! |! |! |!




Input: A program gets data, perhaps from a file, keyboard, touchscreen,
|! |! |! |! |! |! |! |! |! |! |!




network, etc. |!




Process: A program performs computations on that data, such as adding two
|! |! |! |! |! |! |! |! |! |! |! |!




values like x + y. |! |! |! |!




Output: A program puts that data somewhere, such as to a file, screen, or
|! |! |! |! |! |! |! |! |! |! |! |! |! |!




network.




What is Python? |! |!




a high-level general-purpose programming language.
|! |! |! |!




Is Python an interpreted language?
|! |! |! |!




Yes, Python is an interpreted language. An interpreted language is a
|! |! |! |! |! |! |! |! |! |! |!




programming language that executes instructions directly by an interpreter. |! |! |! |! |! |! |! |!




When was Python originally released?
|! |! |! |!




1991

Python 1.0 was released in what year?
|! |! |! |! |! |!

, 1994

Why was it named Python? |! |! |! |!




The name Python came from Guido van Rossum (the creator) being a fan of
|! |! |! |! |! |! |! |! |! |! |! |! |! |!




the TV show Monty Python.
|! |! |! |!




The Python interpreter is
|! |! |!




a computer program that directly executes code written in the Python
|! |! |! |! |! |! |! |! |! |! |!




programming language. |!




Code is a common word for |! |! |! |! |!




the textual representation of a program (and hence programming is also
|! |! |! |! |! |! |! |! |! |! |!




called coding). |!




What is a statement? |! |! |!




A statement is a program instruction. A program mostly consists of a series of
|! |! |! |! |! |! |! |! |! |! |! |! |!




statements, and each statement usually appears on its own line.
|! |! |! |! |! |! |! |! |! |!




What is an expression? |! |! |!




Expressions are any code that return a value when it is evaluated by the |! |! |! |! |! |! |! |! |! |! |! |! |! |!




program; for example, the code "5 + 6" is an expression that computes a
|! |! |! |! |! |! |! |! |! |! |! |! |! |!




number by adding two values. |! |! |! |!




A new variable is created by
|! |! |! |! |!




performing an assignment statement using the = symbol, such as |! |! |! |! |! |! |! |! |! |!




favoritecolor = red |! |!




What character denotes comments in Python?
|! |! |! |! |!




The character '#' denotes comments
|! |! |! |!




For example: |!




# this is a comment
|! |! |! |!




How do you print text to the screen in Python?
|! |! |! |! |! |! |! |! |!

Document information

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

Subjects

$16.99
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.
Ruiz Liberty University
View profile
Follow You need to be logged in order to follow users or courses
Sold
98
Member since
1 year
Number of followers
1
Documents
13905
Last sold
1 week ago
Top-Quality Study Materials for Success – Ace Your Exams with Expert Resources!

Access high-quality study materials to help you excel in your exams. Get notes, summaries, and guides tailored to your courses!

3.2

15 reviews

5
4
4
4
3
2
2
1
1
4

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