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

Python Exam 1-Questions With 100% Verified Answers.

Rating
-
Sold
-
Pages
23
Grade
A+
Uploaded on
30-04-2025
Written in
2024/2025

Python Exam 1-Questions With 100% Verified Answers.

Institution
Python
Course
Python










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

Written for

Institution
Python
Course
Python

Document information

Uploaded on
April 30, 2025
Number of pages
23
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Python Exam 1-Questions With 100% Verified
Answers.
What is the output of: 11.0//2 - ✔✔5.0
Floor division to the nearest whole number
Returns a float


What is the output of: 11//2 - ✔✔5
Return an int


What is the output of: 11/2 - ✔✔5.5
Returns a float


What is the output of: 11/2.0 - ✔✔5.0



What is the output of: 20%2 - ✔✔0



What is the output of: 21%2 - ✔✔1



What is the output of: 11%3 - ✔✔2


x = 'Texas A&M University'

x [-3] = ? - ✔✔i


x = 'Texas A&M University'

x [3] = ? - ✔✔a


x = 'Texas A&M University'

,len(x) = ? - ✔✔20


x = 'Texas A&M University'

x [0:5:2] = ? - ✔✔Txs
It starts at 0 and ends at 5, incremented by 2


x = 'Texas A&M University'

x [4:] = ? - ✔✔s A&M University


x = 'Texas A&M University'

x [:4] = ? - ✔✔Texa


x = 'Texas A&M University'

'A' in x = ? - ✔✔True
Acts as a Boolean, determines if it is in the string


x = 'Texas A&M University'

't' in x = ? - ✔✔True


x = 'Texas A&M University'

'A&M' in x = ? - ✔✔True


x = 'Texas A&M University'

' ' in x = ? - ✔✔True


x = 'Texas A&M University'

' ' in x = ? - ✔✔False

, 2**1+1 - ✔✔3



3* 1**3 - ✔✔3



2*(3+1) - ✔✔4



6+4/2 - ✔✔8.0
Returns a float due to the division


len('Hello world') = ? - ✔✔11
Be sure to count the spaces as values


int(-2.3) = ? - ✔✔-2



float(32) = ? - ✔✔32.0



str(3.14159) = ? - ✔✔3.14159



[0] * 4 = ? - ✔✔[0, 0, 0, 0]



[1, 2, 3] * 3 = ? - ✔✔[ 1, 2, 3, 1, 2, 3, 1, 2, 3]


x=1
y=0

x >= 2 and (x/y) >2 = ? - ✔✔False

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.
KenAli West Virginia University
View profile
Follow You need to be logged in order to follow users or courses
Sold
84
Member since
1 year
Number of followers
5
Documents
17177
Last sold
1 week ago

2.9

19 reviews

5
4
4
4
3
4
2
0
1
7

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