Grunnleggende forkunnskaper Flashcards

1
Q

Nevn en nivådeling innen programmeringsspråk.

A

Maskinkode, Assemblerkode, Høynivå programmeringsspråk.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Hva er maskinkode?

A

Maskinkode er instruksjoner lagret i binært format som kan utføres direkte av en prosessor (CPU) uten oversetting.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Hva er assemblerkode?

A

Assemblerkode brukes for å gjøre det enklere å skrive og lese maskinkode. Det er ofte et en-til-en forhold mellom assemblerkoden og maskinkoden.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

C++ er en videreutvikling av …

A

programmeringsspråket C.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Hvem utviklet, og når ble C++ utviklet?

A

C++ ble utviklet av Bjarne Stroustrup (AT&T Bell Labs) på 1980-tallet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Hva er noen av svakhetene ved C, som gjorde at C++ ble utviklet?

A
  1. Not as easy to understand as other languages

2. Does not have as many automatic checks as some other high-level languages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Kort fortalt, hva er objektorientert programmering?

A

Object-oriented programming is a currently popular and powerful programming technique.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the main characteristics of OOP?

A
  1. Encapsulation
  2. Inheritance
  3. Polymorphism
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A main characteristic of OOP is encapsulation. Define roughly.

A

Encapsulation is a form of information hiding or abstraction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A main characteristic of OOP is inheritance. Define roughly.

A

Inheritance has to do with writing reusable code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A main characteristic of OOP is polymorphism. Define roughly.

A

Polymorphism refers to a way that a single name can have multiple meanings in the context of inheritance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What should NEVER be included?

A

.cpp files. This WILL cause link errors. (i.e. two “main” symbols)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly