Course
Introduction to Programming (DAT120)
The student learns the basic functioning of a computer. The student learns how to write and run software programs using the Python programming language. In addition fundamental ICT security.
Dette er emnebeskrivelsen for studieåret 2021-2022. Merk at det kan komme endringer.
Semesters
Fakta
Emnekode
DAT120
Vekting (stp)
10
Semester undervisningsstart
Autumn
Undervisningsspråk
Norwegian
Antall semestre
1
Vurderingssemester
Autumn
Content
The couse is about learning programming in the Python programming language. The students should get a basic understanding of structured and object-oriented programming. The students should be able to write and run their own programs. An important concept is dividing the task the student is solving into modules and programming each module independently. These modules may be functions or classes. The student should learn basic testing of these modules. The student should learn how their programs can get input from the user. The students shoudl learn how their program can store and retrieve data from files on the computer. The student should learn basic use of the Python data structures list, tuple, set and dictionary.
The student should also learn the basocs of how computers work and the basics of information security.
Learning outcome
Knowledge
- Have a general understanding for how coputers work
- Have a general understanding of structured programming
- Have a general understanding of object-oriented programming
- Know basic terms such as variables, data types, control structures, lists, functions, classes and objects
- Have a basic understanding of information security
Skills
- The students should be able to solve programming tasks using the Python programming language
- The students should be able to write and run their own programs using control strukctures, functions, tables, classes and objects
- The students should be able to use methods from already existing classes, define their own classes and objects, and be able to establish communication between objects
General competencies
- The students should be able to plan and code runnable software programs
- The students shoudl know basic use of version control systems
Forkunnskapskrav
Exam
Form of assessment | Weight | Duration | Marks | Aid | Exam system | Withdrawal deadline | Exam date |
---|---|---|---|---|---|---|---|
Written exam | 1/1 | 4 Hours | Letter grades | Own handwritten or printed notes 1), Valid calculator, Textbook 2) | Inspera assessment | 03.12.2021 | 17.12.2021 |
1) You can bring two A4 sheets with your own notes to the exam. The sheets can be handwritten or computer-written. You are allowed to write on both sides.
2) You are allowed to use one of the two books recommended for the subject during the exam.
This course has a digital exam.
Vilkår for å gå opp til eksamen/vurdering
Fagperson(er)
Coordinator laboratory exercises:
Per JotunHead of Department:
Tom RyenCourse coordinator:
Erlend TøssebroMethod of work
This course will not have regular lectures, but a series of video lectures.
All students can get help for the exercises at a room reserved for the purpose four hours a week. The exercises are approved by presenting them to the teacher or a student assistant during these four hours.
Completion of mandatory exercises are to be made at the times and in the groups that are assigned and published. Absence due to illness or for other reasons must be communicated as soon as possible to the laboratory personnel. One cannot expect that provisions for completion of the exercises at other times are made unless prior arrangements with the laboratory personnel have been agreed upon.
Failure to complete the assigned exercises on time or not having them approved will result in barring from taking the exam of the course.
Overlapping
Emne | Reduksjon (SP) |
---|---|
Introduction to Programming (DAT110_1) , Introduction to Programming (DAT120_1) | 7 |
Object-oriented Programming (DAT100_1) , Introduction to Programming (DAT120_1) | 3 |
Åpent for
Litteratur
Other
Pensum Det finnes mange gode on-line ressurser for å lære Python. For eksempel vil W3Schools sin Python tutorial (https://www.w3schools.com/python/default.asp) bli brukt. Faglærer sin erfaring fra det tidligere programmeringsfaget DAT110 er at mange studenter ikke bruker eller trenger noen fysisk lærebok i dette faget. Dette faget har derfor ikke en definert lærebok. For de som likevel ønsker en fysisk lærebok er det listet opp to alternativer under anbefalt litteratur. Temaene som er pensum vil bli postet på Canvas tidlig i faget. Forelesningsvideoene, eksempel-programmene, øvingene og løsningsforslagene som blir postet på Canvas i løpet av semesteret definerer pensum.
Book
Starting out with Python Tony Gaddis, Pearson, 2021, isbn:9781292408637, Faget vil stort sett følge denne boka. Mesteparten, men ikke alt, er pensum. Hva som er pensum vil bli postet på Canvas i løpet av faget.
Book
Python for realfag Haugen, Finn, Lysaker, Marius, Bergen, Fagbokforlaget, 577 sider, 2020, isbn:9788245033809, Dette er en Python lærebok på Norsk. Den har mange gode eksempler på bruk av Python i andre ingeniør-disipliner enn data. Den dekker imidlertid et litt annet pensum enn DAT120. Bare første halvpart av denne boka vil være pensum i DAT120, og dette dekker rundt 2/3 av pensum i DAT120.