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

Programming (Python) Questions with Correct Answers Graded to Pass

Document preview thumbnail
Preview 3 out of 22 pages

variable - A _____ stores a piece of data, and gives it a specific name. For example: spam = 5 variable - A _____ stores a piece of data, and gives it a specific name. For example: spam = 5 boolean - A _____ is like a light switch. It can only have two values. Just like a light switch can only be on or off, a boolean can only be True or False boolean - A _____ is like a light switch. It can only have two values. Just like a light switch can only be on or off, a _____ can only be True or False boolean - A _____ is like a light switch. It can only have two values. Just like a light switch can only be on or off, a _____ can only be True or False 4 - when dealing with whitespaces, indent the code with the use of __ spaces. 4 - when dealing with whitespaces, indent the code with the use of __ spaces. interpreter (both) - The window in the top right corner of the page is called the _____. The _____ runs your code line by line, and checks for any errors. interpreter (both) - The window in the top right corner of the page is called the _____. The _____ runs your code line by line, and checks for any errors. # (both) - You probably saw us use the __ sign a few times in earlier exercises. The __ sign is for comments. A comment is a line of text that Python won't try to run as code. It's just for humans to read. # (both) - You probably saw us use the __ sign a few times in earlier exercises. The __ sign is for comments. A comment is a line of text that Python won't try to run as code. It's just for humans to read. comment - You probably saw us use the # sign a few times in earlier exercises. The # sign is for comments. A ____ is a line of text that Python won't try to run as code. It's just for humans to read. comment - You probably saw us use the # sign a few times in earlier exercises. The # sign is for comments. A ____ is a line of text that Python won't try to run as code. It's just for humans to read. #, #, triple quotation - The __ sign will only comment out a single line. While you could write a multi-line comment, starting each line with __, that can be a pain. Instead, for multi-line comments, you can include the whole block in a set of ____ _____ marks: """Sipping from your cup 'til it runneth over, Holy Grail. """ #, #, triple quotation - The __ sign will only comment out a single line. While you could write a multi-line comment, starting each line with __, that can be a pain. Instead, for multi-line comments, you can include the whole block in a set of ____ _____ marks: """Sipping from your cup 'til it runneth over, Holy Grail. """ *, ** (2*3 = 6, 2**3 = 8) - in python, we use __ to indicate multiplication and __ to indicate exponents. *, ** (2*3 = 6, 2**3 = 8) - in python, we use __ to indicate multiplication and __ to indicate exponents. modulo (both) - Our final operator is ____. ____ returns the remainder from a division. So, if you type 3 % 2, it will return 1, because 2 goes into 3 evenly once, with 1 left over.


Document information

Uploaded on
June 23, 2023
Number of pages
22
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers
$12.89

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.
TeeGrades
3.5
(53)
Sold
206
Followers
125
Items
5367
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

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