Course

Introduction to Programming (DAT120)

The student learns how to write and run software programs using the Python programming language. The student learns the basic functioning of a computer. In addition, the students should learn fundamental ICT security.


Dette er emnebeskrivelsen for studieåret 2024-2025. Merk at det kan komme endringer.

See course description and exam/assesment information for this semester (2024-2025)

Semesters

Fakta

Emnekode

DAT120

Vekting (stp)

10

Semester undervisningsstart

Autumn

Undervisningsspråk

Norwegian

Antall semestre

1

Vurderingssemester

Autumn

Content

The course 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 should 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 basics of how computers work and the basics of information security.

Learning outcome

Knowledge

  • Have a general understanding for how computers 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 structures, 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
  • The students should know basic use of version control systems

General competencies

  • The students should be able to plan and code runnable software programs

Forkunnskapskrav

Ingen

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 25.11.2024 09.12.2024

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

Mandatory assignments
There will be 10 assignments in this course. The first two are voluntary. The remaining eight are mandatory and have to be approved in order to take the exam.

Fagperson(er)

Coordinator laboratory exercises:

Per Jotun

Head of Department:

Tom Ryen

Course coordinator:

Erlend Tøssebro

Method of work

This course will have four lecture hours per week. All students can get help for the exercises at a room reserved for the purpose between four and eight hours a week.

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 the students being barred 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) 5

Åpent for

Pre-School Teacher - Bachelor's Degree Programme Pre-School Teacher - Bachelor's Degree Programme Bachelor in child protection and child welfare Battery and Energy Engineering - Bachelor in Engineering Biological Chemistry - Biotechnology - Bachelor's Degree Programme Civil Engineering - Bachelor in Engineering Urban Planning and Societal Safety - Bachelor's Degree Programme Computer Science - Bachelor in Engineering Computer Science - Bachelor in Engineering, Part-Time Digital Service Management - Bachelor's Degree Programme Electrical Engineering, Vocational Path - Bachelor's Degree Programme Electrical Engineering - Bachelor's Degree Programme, part-time Electrical Engineering - Bachelor's Degree Programme Energy and Petroleum Engineering, Vocational Path - Bachelor in Engineering Energy and Petroleum Engineering - Bachelor in Engineering English Language and Literature - Bachelor's Degree Programme Film and TV Production - Bachelor's Degree Programme Geosciences and Energy Resources - Bachelor in Engineering History - Bachelor's Degree Programme Hotel Management - Bachelor's Degree Programme Sports Science- Bachelor's Programme Journalism - Bachelor's Degree Programme Environmental Engineering - Bachelor in Engineering Mechanical Engineering - Vocational Path, Bachelor in Engineering Mechanical Engineering - Bachelor in Engineering Medical technology - Bachelor in Engineering Medical Technology - Bachelor in Engineering - part time Geosciences Engineering - Bachelor in Engineering Petroleum Technology - Bachelor in Engineering
Admission to Single Courses at the Faculty of Science and Technology
Primary and Lower Secondary Teacher Education for Years 1 - 7, Master Primary and Lower Secondary Teacher Education for Years 1 - 7, Master, Part-Time Primary and Lower Secondary Teacher Education for Years 5 - 10, Master Advanced teacher education for levels 8-13 Advanced teacher education for level 8-13 in science Mathematics and Physics - Five Year Integrated Master's Degree Programme Half Year Intermediate Program in English Half Year Intermediate Program in History Christianity/Religion - Half Year Intermediate Programme Half Year Intermediate Program in Nordic Languages and Literature Educational Theory and Practice Educational Theory and Practice Educational Theory and Practice in Performing and Creative Arts Educational Theory and Practice in Performing and Creative Arts Drama and Theatre Communication- One-year programme English - One-year programme Outdoor Education Offshore Wind Energy - One-Year Study Program History - One-year programme Sports Science- One-year programme Communication - One Year Study Programme Religious Studies - One-year programme Arts and Crafts - One-year programme Learning and Psychology, a one-year course Mathematics - One-Year Programme Primary and Secondary School Music Education Nordic Languages and Literature - One-year programme Psychology - One-year programme Science and Technology - one-year programme Tourism in change - One - year Programme Sociology - One-year programme Political Science - One - year Programme One year study programme - Music Performance

Emneevaluering

There must be an early dialogue between the course supervisor, the student union representative and the students. The purpose is feedback from the students for changes and adjustments in the course for the current semester.In addition, a digital subject evaluation must be carried out at least every three years. Its purpose is to gather the students experiences with the course.

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 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. I tillegg er det listet opp ei lærebok i datasikkerhet for de som ønsker å lese mer om dette temaet enn det som er pensum i dette faget. 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 Gaddis, Tony, Harlow, Pearson, 892 sider, [2022]; © 2022, isbn:9781292408637; 1292408634, 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, 600 sider, 2023, isbn:9788245046052, Dette er en Python lærebok på Norsk. Den har mange gode eksempler på bruk av Python i andre ingeniør-disipliner enn data. Merk at bare første halvpart av denne boka (fram til og med kapittel 13) vil være pensum i DAT120, og dette dekker mesteparten av pensum i DAT120. De seinere kapitlene kan være nyttige for bruk av Python i andre fag seinere i studiet. Book Datasikkerhet ikke bli svindlerens neste offer Nätt, Tom Heine, Heide, Christian F., Oslo, Gyldendal, 415 s., [2021], isbn:9788205539068, Dette er ei bok for de som enten ønsker ei lærebok som dekker IKT-sikkerhet modulen og/eller ønsker å lese mer om dette temaet enn det som er i IKT sikkerhet modulen.
The course description is retrieved from FS (Felles studentsystem). Version 1