100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Python Basics Exam Questions and Answers

Rating
-
Sold
-
Pages
1
Grade
A+
Uploaded on
12-08-2024
Written in
2024/2025

Python Basics Exam Questions and Answers Output - Answer-Information coming OUT of program. Often this is achieved using print command. Import - Answer-Accesses modules of code from the python library While Loop - Answer-A loop that will make a set of instructions repeat while a status is TRUE For Loop - Answer-A loop that will repeat for a set number of times. IF statement - Answer-A conditional statement. IF something is true then 'sequence A' will run. IF is it is not 'sequence B' will run. (allows selection to happen) ELIF - Answer-An additional IF. Allows you to check multiple conditions. ELSE - Answer-Otherwise. This pairs with an IF statement to run code when IF statement condition is false. String - Answer-The text that is displayed when program is run. In Python, this is green and in speech marks. Integer - Answer-A whole number (no decimal places) > - Answer-More than < - Answer-Less than != - Answer-Not Equal to Testing - Answer-Running program at different stages to check that it is running correctly. Comment - Answer-#This is a comment to help understand the lines of code Boolean - Answer-A condition that is True/False Logical error - Answer-An error that does not stop the program from running, but means that it doesn't do as expected.

Show more Read less
Institution
Python Basics
Course
Python Basics








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Python Basics
Course
Python Basics

Document information

Uploaded on
August 12, 2024
Number of pages
1
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Python Programming Exam Questions
and Answers
comments - Answer-Using descriptive text to explain portions of code. Comments do
not change the way a computer behaves, but are important for the programmer to
remember what the code does.

""" - Answer-used to create a multi line comment

# - Answer-used to create an in line comment

naming guidelines - Answer-all lower case letters, no spaces, use underscores, cannot
start with a number, use descriptive names

function - Answer-combines many lines of instructions into one line of code

variable - Answer-a container to store information to use in the code; can be text or
numbers

if statements - Answer-The common programming structure that implements
"conditional statements"; the condition must be true in order for the command to be
followed.
Python Code - Answer-a high-level general-purpose programming language. Its design
philosophy emphasizes code readability with its use of significant indentation.

For Loop - Answer-Loops that have a predetermined beginning, end, and increment
(step interval).

for i in range ( ): - Answer-loop syntax

indent - Answer-to move text horizontally away from the left margin; used in loops,
functions and if statements.
R244,65
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document also available in package deal

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.
Perfectscorer Chamberlain College Of Nursng
Follow You need to be logged in order to follow users or courses
Sold
483
Member since
3 year
Number of followers
354
Documents
8823
Last sold
2 weeks ago

Our store offers a wide selection of materials on various subjects and difficulty levels, created by experienced teachers. We specialize on NURSING,WGU,ACLS USMLE,TNCC,PMHNP,ATI and other major courses, Updated Exam, Study Guides and Test banks. If you don't find any document you are looking for in this store contact us and we will fetch it for you in minutes, we love impressing our clients with our quality work and we are very punctual on deadlines. Please go through the sets description appropriately before any purchase and leave a review after purchasing so as to make sure our customers are 100% satisfied. I WISH YOU SUCCESS IN YOUR EDUCATION JOURNEY

Read more Read less
3,6

74 reviews

5
27
4
15
3
17
2
5
1
10

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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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