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

ENGR 102

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
15-11-2025
Written in
2025/2026

ENGR 102 – QUESTIONS WITH COMPLETE SOLUTION

Institution
Course









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

Written for

Course

Document information

Uploaded on
November 15, 2025
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

ENGR 102 – QUESTIONS WITH COMPLETE SOLUTION
x=5

y=3

z=x*y

z=z+2

print(z) CORRECT ANSWER-17



What is the output of the following code?



print(((2 ** 3) + 3 * 5) * (sqrt(49) // 4) + (23 % 7) CORRECT ANSWER-25.0



write one line of code that prints the value of square root of 3



import math

# your code goes here CORRECT ANSWER-print(math.sqrt(3))



Which of the following are valid names in python? (choose all that apply)

a. 3rdplace

b. Length

c. kinetic-energy CORRECT ANSWER-b



What will be printed to the screen after running the following code:



x=4

y=x*2

x = y

y=6



print(x,y) CORRECT ANSWER-8 6

, floating-point numbers have a decimal point (true or false) CORRECT ANSWER-true



integers can be positive, negative, or zero (true or false) CORRECT ANSWER-true



which of the following expressions produce a floating-point for variable x? choose all that apply



a. x = 100.0 + 2

b. x = 3.5

c. x = float(True)

d. x = 8/2

e. x = '2.0'

f. x = 8 // 3 CORRECT ANSWER-a, b, c, d



which of the following results in the Boolean value True?



a. int(True)

b. bool(0)

c. bool('False')

d. bool(' ') CORRECT ANSWER-c



which of the following is a valid operation (will NOT result in an error)?



a. answer = bool("Howdy" + str(3))

b. msg = "25" * "Whoop!"

c. x = "102" - "2"

d. y = int("12.34") CORRECT ANSWER-a



fill in the missing code:
$14.49
Get access to the full document:

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

Get to know the seller
Seller avatar
Stephanon

Get to know the seller

Seller avatar
Stephanon Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
7 months
Number of followers
1
Documents
139
Last sold
-
STEPHANON

We are here to support you every step of the way in your academic journey, whether it\'s test practice, homework assistance, research guidance, data analysis, or any other form of reliable tutoring you require. Our primary goal is to provide our students with top-notch education that paves the way for excellent grades. Please don\'t hesitate to reach out with any questions, and we welcome your suggestions

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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