Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

INFO132 høsten 2022-UiB Questions and Answers, Exams of Information Technology

INFO132 høsten 2022-UiB Questions and Answers What are Python module? ANSWER✓✓ Simply, is a file consisting of Python code. it can define functions, classes and variables and can also include runnable code. What are some of the conceptual Patterns to construct a program? ANSWER✓✓ Input: Get data from the "outside world". This might be reading data from a file, or even some kind of sensor like a microphone or GPS. In our initial programs, our input will come from the user typing data on the keyboard. Output: Display the results of the program on a screen or store them in a file or perhaps write them to a device like a speaker to play music or speak text. Sequential execution: Perform statements one after another in the order they are encountered in the script. Conditional execution Check for certain conditions and then execute or skip a sequence of statements. Repeated execution Perform some set of statements repeatedly, usually with some variation.

Typology: Exams

2024/2025

Available from 02/23/2025

school-inspector
school-inspector 🇺🇸

2

(1)

4.5K documents

1 / 22

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Partial preview of the text

Download INFO132 høsten 2022-UiB Questions and Answers and more Exams Information Technology in PDF only on Docsity!

INFO132 hesten 2022-UiB Questions and Answers What are Python module? ANSWERY ¥ Simply, is a file consisting of Python code. it can define functions, classes and variables and can also include runnable code. What are some of the conceptual Patterns to construct a program? ANSWERV V Input: Get data from the "outside world". This might be reading data from a file, or even some kind of sensor like a microphone or GPS. In our initial programs, our input will come from the user typing data on the keyboard. Output: Display the results of the program on a screen or store them in a file or perhaps write them to a device like a speaker to play music or speak text. Sequential execution: Perform statements one aficr another in the order they are encountered in the script. Conditional execution Check for certain conditions and then execute or skip a sequence of statements. Repeated execution Perform some set of statements repeatedly, usually with some variation. Reuse Write a set of instructions once and give them a name and then reuse those instructions as needed throughout your program. What 3 general errors will you encounter in Python? ANSWERY ¥ Syntax errors: These are the first errors you will make and the easiest to fix. A syntax error means that you have