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

INF1511 EXAM PACK 2025

Rating
5,0
(2)
Sold
5
Pages
352
Grade
A+
Uploaded on
02-11-2025
Written in
2025/2026

INF1511 EXAM PACK 2025 GOOD LUCK WITH YOUR PREPARATION!









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

Document information

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

Content preview

INF1511

EXAM
PACK

2025

, lOMoARcPSD|58918787




Visual Programming INF 1511

Unit 1- Python Environment & Data Operati ons

Describe the programming concepts for computi ng including performing arithmeti c
operati ons?
Outcomes:

1. Python and its features are explained.
2. Python is installed on different platforms.
3. Python is interacted with through Command Line Mode
4. A program is written in Python.
5. Comments, continuation lines and printing messages are written.
6. Arithmetic operations are performed.

Python:

 Object orientated programming language
 Implemented in C (Relies on portable C libraries)
 Cross-platform language
 Has a rich set of supporting libraries
 Supports scripting - Suitable for rapid application development

Python Implementation:

 Currently has 3 implementations:
o CPython
 Most up to date and complete implementation.
 Implemented in C.
 Cross-platform.
o Jython
 Java Virtual Machine (JVM) compliant.
 Use all Java libraries and frameworks.
o IronPython
 Implementation for Microsoft designed Common Language Runtime (CLR) known as .NET
 Use all CLR libraries and frameworks.

Python Features:

 Easy to learn.
 Easier to read syntax.
o Avoids the use of punctuation characters like { } $ / and \.
 Uses white space to indent lines.
 Python is free.
o Developed under open-source model.
 Large number of libraries included.
 Can be integrated with other languages.
o C, C++ and Java.
 Interpreted language.
o Supports a complete debugging and diagnostic environment.
 Good choice for web development, networking, games, data processing and business applications.
 Uses garbage collection for efficient memory management.
o Python run-time environment handles garbage collection.
o Reference counter ensures that no live objects are removed.
 Python supports exception handling.
o Errors are raised as exceptions.

Interacting with Python:




Downloaded by Jonah Njenga ()

, lOMoARcPSD|58918787




Two ways to work with Python:

 Command line mode.
 IDLE IDE (Integrated development environment).

Command Line Mode

 Type python instructions ONE LINE at a time.
 OR import from other files or modules.
 Accessed through the Python (Command Line) in the group.
o Alternatively - Open from the command prompt
 Type python.
 Press ENTER
 ON OPENING of the Python (Command Line) menu item - Python command line window displays the Python
Prompt (>>>) where you can issue commands.
 History of the commands given is maintained

IDLE (Integrated Development Environment)

 Simple IDE.
 Comes standard with Python distribution.
 Combines an interactive interpreter with: #know this
o Code editing.
o Debugging tools.
o Several specialised browsers/viewers built into it.
 Automatic indentation and colours to code based on Python syntax.
 Complete Python keywords / user-defined values by pressing Alt + /

To Start IDLE:

 IDLE (Python GUI) from group of applications.
 Python shell will open.

Other methods to execute Python commands:

 Write and edit Python programs in ANY editor, then execute through IDLE (Example - Notepad)
 IDLE's built in editor

NOTE - Program will be saved as .py (extension shows that it is a Python program).

Writing Your First Program:

#This programme calculates the area of a rectangle.
#Input
l=8
b=5
a=l*b
#Processor
print("Area of rectangle",a)
#output
Area of Triangle 40


 Notes:

#Program consists of two variables, l and b, initialized to
values 8 and 5
#Variables, l and b, represents the length and breadth of a
rectangle
#l and b are multiplied - Result stored in a
#to run the module - press f5




Downloaded by Jonah Njenga ()

, lOMoARcPSD|58918787




Data Types in Python:

 Operations applicable on an object depend on its data type.
o INTEGERS
 32 bits long
 Range from -2³² to 2³²-1
 Example: 10
o LONG INTEGERS
 Unlimited precision.
 Subject to the memory limitations of the computer
o FLOAT
 Known as double precision values
 64 bits long
 Example : 10.0
o BOOLEAN
 Can hold only one of two possible values
 TRUE or FALSE
o COMPLEX NUMBER
 3rd variable, a Real and imaginary component, both represented by float types
 IMAGINARY NUMBER ( j ) - Multiple of the square route of minus one
 Example:

2 + 3j -> 3 is the imaginary component equal to3 x −1.
o STRINGS
 Sequence of UNICODE characters
 Unicode - standard that uses 16-bit characters
 Enclosed in " " or ' ' - quotes
 Immutable
 Example :
a='hello world'
o LISTS
 Ordered sequence of values
 Enclosed in [ ] – bracket.
 Mutable
 Example :
a=['Kate','Mary','John',10]
o TUPLES
 Ordered, immutable sequence of values
 Enclosed in ( ) - parenthesis
 Example :
a=('Kate','Mary','John',10)
o SETS
 Unordered collections of values
 Enclosed in { } - curly brackets
 Example :
s1={10,11,20,63,100}
o DICTIONARIES
 Unordered collections of key/value pairs.
 Enclosed in { } - curly brackets, key/value separation : - colon, item separation , - comma
 Example :
s1={'John':80,'Kate':75}




Downloaded by Jonah Njenga ()

Reviews from verified buyers

Showing all 2 reviews
2 months ago

2 months ago

5,0

2 reviews

5
2
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

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.
FocusZone University of South Africa (Unisa)
View profile
Follow You need to be logged in order to follow users or courses
Sold
387
Member since
7 months
Number of followers
2
Documents
506
Last sold
1 day ago
Focus Zone

On this page you will find Uploads and Package Deals by the seller FOCUS ZONE.

4,2

58 reviews

5
33
4
11
3
11
2
0
1
3

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