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

INF1511 Exam Pack 2025

Rating
-
Sold
-
Pages
195
Grade
A+
Uploaded on
20-09-2025
Written in
2025/2026

INF1511 Exam Pack 2025 Comprehensive, well-structured notes covering all key concepts and examples from the course , perfect for exams, assignments, and quick revision









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

Document information

Uploaded on
September 20, 2025
Number of pages
195
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Content preview

,Question 1

The command line is used to execute Python code ____ .
✅ Answer: b. one line at a time
✔️The Python command line (interactive shell) executes one instruction at a time.



Question 2

If the data type of a value in a variable does not match the format code, then ____
will occur.
✅ Answer: a. an exception
✔️A type mismatch raises an exception (error) in Python.



Question 3

Input:

a = 300
b = 900
thetotal = a // b → 300 // 900 = 0
theremain = a % b → 300 % 900 = 300

Output:

Each learner receives : 0
The remainder is : 300

✅ Answer: a



Question 4

Which print() suppresses the newline?
Correct syntax is:

print("Good luck", end=" ")

✅ Answer: b. print (‘Good luck’, end = ‘ ’ )

,Question 5
myMoney = 1200.50
yourMoney = 23000.78
thetotal = 24201.28

Output:

The value money is : 24201.28

✅ Answer: a



Question 6
thetotal = a // b # integer division (floor division)
theremain = a % b # modulus (remainder)

✅ Answer: c. integer division



Question 7
a=3
b=7
thepower = a ** b = 3**7 = 2187

✅ Answer: b. 2187



Question 8

Input:

a = 400
b = 55
thetotal = 400 // 55 = 7
theremain = 400 % 55 = 15

Output:

The value is: 7
The remainder is: 15

, ✅ Answer: b

Question 9

Code:

number1=345
number2=123
number3=100
total=number1+number2+number3
#print('The numbers that were added ', Number1, Number2, Number3)
print('The total of the addition :', Total)

⚠️Error: Total is undefined (Python is case-sensitive).
✅ Answer: b. NameError: name 'Total' is not defined



Question 10
a = 21.8 → float
b = 'Jack' → str (but commented out)
c = 23456 → int (commented out)

Only type(a) is printed:

<class 'float'>

✅ Answer: a. class 'float'

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.
AcademicGeniusHub Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
82
Member since
6 months
Number of followers
0
Documents
247
Last sold
2 months ago
AcademicGenius

AcademicGenius provides high-quality, easy-to-understand study guides, notes, and assignment help to support student success. All materials are well-structured, accurate, and aligned with academic standards—perfect for exam prep, coursework, and revision.

4,0

13 reviews

5
7
4
2
3
2
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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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