Command interpreters in different environments: Windows, macOS, Linux. Navigation among units and folders. The concepts current folder, absolute and relative path. Differences in accessibility between local units and remote units. File types and file extensions How one creates, edits and saves a text files. How one starts and stops a programs. Redirecting output from a program to a file.
Variables and the data types of variables (integer, floating point, references). The difference between static and dynamic typed variables. Expressions that calculate a value and variable assignment. Representation of characters and text. The default units for input and output. The concepts sequence, selection and iteration.
II1308 Introduction to Programming 1.5 credits

The course introduces the use of computers in the KTH IT environment and basic concepts in programming. You learn how to use the command line and to write simple computer programs.
Information per course offering
Choose semester and course offering to see current information and more about the course, such as course syllabus, study period, and application information.
Course syllabus as PDF
Please note: all information from the Course syllabus is available on this page in an accessible format.
Course syllabus II1308 (Autumn 2024–)Content and learning outcomes
Course contents
Intended learning outcomes
After passing the course, the student should be able to:
- use the command-line interpreter of the computer to solve simple assignments containing storing units, folders, and files
- explain and use basic programming concepts such as variables, data types, expressions, input and output, and constructs for sequence, selection, and iteration
- write and execute simple programs
in order to
- be able to work in the computer environment at KTH Royal Institute of Technology
- be prepared for courses where programming is included.
Literature and preparations
Specific prerequisites
Literature
Examination and completion
Grading scale
Examination
- LAB1 - Lab assignments, 1.5 credits, grading scale: P, F
Based on recommendation from KTH’s coordinator for disabilities, the examiner will decide how to adapt an examination for students with documented disability.
The examiner may apply another examination format when re-examining individual students.
If the course is discontinued, students may request to be examined during the following two academic years.
Examiner
Ethical approach
- All members of a group are responsible for the group's work.
- In any assessment, every student shall honestly disclose any help received and sources used.
- In an oral assessment, every student shall be able to present and answer questions about the entire assignment and solution.
Further information
Course room in Canvas
Offered by
Main field of study
Education cycle
Supplementary information
Partially overlaps with DD1301, DD1310-DD1319, DD1331, DD1337, DD100N.