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

Egr102 Uky Exam 1 Practice Problems | Questions And Answers | Engineering Exam Prep And Study Guide

Document preview thumbnail
Preview 3 out of 28 pages

EGR102 UKY Exam 1 Practice Problems is an engineering-focused study resource designed to support preparation for the first EGR102 examination. It provides practice problems and questions that can help students work through course concepts, strengthen problem-solving skills, review key material, and check their understanding. Useful for independent study, coursework review, quizzes, practice tests, and structured exam preparation, this resource supports active learning and focused EGR102 exam practice.

Content preview

EGR 102
EXAM 1 — PRACTICE PROBLEMS

University of Kentucky
Python · Circuits · Electricity · Multiple Choice


Exam-style questions with step-by-step solutions
Variables · Data Types · Operators · Voltage / Current / Resistance
Circuit Symbols · Ohm’s Law Concepts

,EGR 102 | UNIVERSITY OF KENTUCKY | EXAM 1 PRACTICE Updated Edition




SET 1 — Variables & Naming Rules

1. What does a variable do in a program?
a. Executes a loop automatically
b. Stores a value, object, or other data for later use
c. Deletes memory permanently
d. Compiles the entire program
Answer: b
Explanation:
A variable is a named storage location that holds a value (or object) so the program can use it later.

2. Which of the following is a valid Python variable name?
a. 36_array
b. initial.position
c. maclauren_sum
d. Big chonk
Answer: c
Explanation:
Rules: cannot start with a number, no spaces, no periods, avoid keywords. maclauren_sum follows all rules.

3. Why is the name var considered a bad variable name?
a. It is too long
b. It starts with a number
c. It is a keyword / reserved word risk and is non-descriptive
d. It contains a period
Answer: c
Explanation:
var is treated as problematic (keyword-like / non-descriptive). Prefer clear names like count or total.

4. Which name is invalid because it starts with a number?
a. sum_total
b. 36_array
c. student_count
d. maclauren_sum
Answer: b
Explanation:
Python identifiers cannot begin with a digit. 36_array is illegal.

5. Which name is invalid because of a period?
a. initial_position
b. initial.position
c. initialPosition
d. initial_pos
Answer: b
Explanation:
Periods are not allowed in variable names (attribute access uses dots). Use underscore or camelCase instead.




Page 2

, EGR 102 | UNIVERSITY OF KENTUCKY | EXAM 1 PRACTICE Updated Edition




SET 2 — Operators, Assignment & Output

6. What is the output of the following code?
a = 21
b = (a + 4) // 7
c = a % 5
print(b)
print(c)
a. 3 then 1
b. 3.57 then 1
c. 25 then 4
d. 3 then 0
Answer: a
Explanation:
1. a + 4 = 25; 25 // 7 = 3 (integer division, no remainder).
2. 21 % 5 = 1 (remainder when 21 is divided by 5).
3. Output: 3 then 1.

7. What does the // operator do?
a. Regular division returning a float
b. Division with no remainder (floor / integer division)
c. Exponentiation
d. Modulus only
Answer: b
Explanation:
// performs floor division — quotient without the fractional part.

8. What does the % operator do?
a. Percentage calculation
b. Floor division
c. Gives the remainder after division
d. String formatting only
Answer: c
Explanation:
% is the modulus operator — remainder of integer division.

9. What is printed?
x = 3
y = x
x = 4
print(y)
a. 4
b. 3
c. Error
d. None
Answer: b
Explanation:
y = x copies the value 3 into y. Changing x later does not change y. print(y) → 3.

10. After the code below, what is the value of a?
a = 10
b = 3
a = a + b * 2
a. 16




Page 3

Document information

Uploaded on
September 24, 2026
Number of pages
28
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$15.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.
DrExamVault
4.5
(13)
Sold
73
Followers
1
Items
4141
Last sold
2 hours 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