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

PLTW Computer Science Semester 1 Final Exam Review Questions And Answers Graded A+

Rating
-
Sold
1
Pages
6
Grade
A+
Uploaded on
03-06-2024
Written in
2023/2024

How are variables used in programming? - Answer-They are used as a storing location associated with an identifier What is a variable? - Answer-A named memory cell where information can be stored A function is a block of code. How many built-in functions does Python have? - Answer-80 Which part of the canopy screen would you use in order to type many lines of code before execution? - Answer-Code editor Which part of the canopy screen would you use to type code and get immediate results? - AnsweriPython Session Python uses the keyword def to define a new function a. True b. False - Answer-True The lines of code in a function are indented four (4) spaces a. True b. False - Answer-True To create multi-line comments (also called a docstring) you would use ________. - Answer-''' An advantage of destroying local variables once the block is done executing is to free up space a. True b. False - Answer-TrueCode that has already been written by other people are called modules, and they can be imported from ____________ of packages that come with Canopy. - Answer-Libraries To add comments in Python, use the ___________symbol - Answer-# True or False - Answer-boolean Any characters - Answer-string Integers - Answer-int Any real number - Answer-float The following input would result in what type of variable? In [ ] : 5*3 - Answer-int The following input would result in what type of variable? In [ ] : 6*8.1 - Answer-float To assign a variable to a value you must use the ________ . - Answer-= To divide numbers you must use the _______________ symbol . - Answer-/ To multipy numbers you must use the _______________ symbol . - Answer-* To get the exponential of a number you would use the ___________ symbol. - Answer-** What is the correct way to assign the value of 12 to the variable ounces? - Answer-ounces = 12In an if-structure, what gets executed depends on whether a Boolean expression, also known as a conditional is true a. True b. False - Answer-True In a Boolean expression, which operator is used to express that 5 is greater than 3 - Answer-> Boolean expressions can also be connected conditionals. Which of the following is not used for connection expressions? a. plus b. and c. or d. not - Answer-plus What value would the following Boolean expression return (assuming a is 4), True or False? a + 3 > 5 - Answer-True What value would the following Boolean expression return (assuming a is 4), True or False? a**2>=16 and a<1 - Answer-False

Show more Read less
Institution
PLTW Computer Science
Course
PLTW Computer Science









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

Written for

Institution
PLTW Computer Science
Course
PLTW Computer Science

Document information

Uploaded on
June 3, 2024
Number of pages
6
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

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.
PatrickKaylian Delaware State University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1808
Member since
2 year
Number of followers
1043
Documents
22126
Last sold
5 hours ago

3.8

316 reviews

5
147
4
60
3
54
2
15
1
40

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