Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

ENGR 102 Exam 1 QUESTIONS AND WELL ELABORATED SOLUTIONS.

Rating
-
Sold
-
Pages
19
Grade
A+
Uploaded on
09-06-2025
Written in
2024/2025

ENGR 102 Exam 1 QUESTIONS AND WELL ELABORATED SOLUTIONS. Which of the following are NOT valid variable names? Please select all that apply. _variable 12th_man x_0 area_of_the_circle My_Number ENGR-102-is-tons-of-fun - ANSWER 12th_man ENGR-102-is-tons-of-fun Which of the following results in a Boolean value of False for variable x? Please select all that apply. x = bool('False') a = 50 x = a % 2 == 1 a = 5 b = 10 x = b a a = False b = True c = False x = (a and b) or (c and not a) and (b or not c) - ANSWER a = 50 x = a % 2 == 1 a = False b = True c = False x = (a and b) or (c and not a) and (b or not c) Select the correct order of operation for the relational and Boolean operators shown below. 1 is the first and 4 is the last. r o ot n d n a = - = ANSWER ot n d n a r o a = 4 b = 3 if b a: print("One") elif a + b 1 0: print("Two") elif a % b == 1: print("Three ") 1 : elif a // b == print("Four") if a 4 and b 3: print("Five") els e: print("Six")print("Seven") - ANSWER Thre e Six Seven How many iterations will the following loop execute? x = 1 while x = 10: print(x) x += 3 - ANSWER 4 x = 2 y = 'A' for i in range(10): print( ( (3 ** 3) + 2 * 3) * (sqrt(25) // 3) + (22 % 4) ) - ANSWER 35 Starting with the following code, write one line of code that prints the value of (square root of 2) to the screen. This problem is manually graded. - ANSWER print(sqrt(2)) Which of the following are valid variable names in python? Mark all that apply. shear stress Distance 1st division _mass - ANSWER Distance _mass

Show more Read less
Institution
ENGR 102
Course
ENGR 102

Content preview

ENGR 102 Exam 1 QUESTIONS AND
WELL ELABORATED
SOLUTIONS.



Which of the following are NOT valid variable names? Please select all that apply.
_variable 12th_man x_0 area_of_the_circle
My_Number
ENGR-102-is-tons-of-fun - ANSWER 12th_man
ENGR-102-is-tons-of-fun

Which of the following results in a Boolean value of False for variable x? Please select all that
apply.

x = bool('False')

a = 50
x = a % 2 == 1

a=5b
= 10
x=b>a

a = False
b = True
c = False

,x = (a and b) or (c and not a) and (b or not c) - ANSWER a = 50 x
= a % 2 == 1

a = False
b = True
c = False
x = (a and b) or (c and not a) and (b or not c)

Select the correct order of operation for the relational and Boolean operators shown below. 1 is
the first and 4 is the last.

or
not
and
>= - ANSWER > =
not
and
or

a=4
b=3
if b > a:
print("One")
elif a + b > 10:
print("Two")
elif a % b == 1:
print("Three")
elif a // b == 1:
print("Four")
if a > 4 and b < 3:
print("Five")
else: print("Six")print("Seven") - ANSWER Thre e
Six
Seven

, How many iterations will the following loop execute?
x=1
while x <= 10:
print(x)
x += 3 - ANSWER 4

x=2
y = 'A'
for i in range(10):
x *= 2
y += y
if x > 6:
break
print(f"{x}{y}") - ANSWER 8AAAA

x=4
y=4
z=x*y
z -= 2
print(z) - ANSWER 1 4

print( ( (3 ** 3) + 2 * 3) * (sqrt(25) // 3) + (22 % 4) ) - ANSWER 35

Starting with the following code, write one line of code that prints the value of (square root of 2)
to the screen. This problem is manually graded. - ANSWER print(sqrt(2))

Which of the following are valid variable names in python? Mark all that apply.
shear-
stress
Distance
1st division
_mass - ANSWER Distance
_mass

Written for

Institution
ENGR 102
Course
ENGR 102

Document information

Uploaded on
June 9, 2025
Number of pages
19
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$13.99
Get access to the full document:

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

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.
TopGradeGuru Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
15
Member since
1 year
Number of followers
0
Documents
2395
Last sold
2 months ago
GRADEHUB

We provide access to a wide range of professionally curated exams for students and educators. It offers high-quality, up-to-date assessment materials tailored to various subjects and academic levels. With instant downloads and affordable pricing, it\'s the go-to resource for exam preparation and academic success.

1.5

2 reviews

5
0
4
0
3
0
2
1
1
1

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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions