• 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 2 out of 8 pages
Exam (elaborations)

Engr 102 – Questions With Complete Solution

Document preview thumbnail
Preview 2 out of 8 pages

ENGR 102 – QUESTIONS WITH COMPLETE SOLUTION

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:

Document information

Uploaded on
June 27, 2026
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

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.
EliteStudyHub
2.0
(11)
Sold
103
Followers
6
Items
10073
Last sold
1 week 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