You are on page 1of 5

Exam FIS1 Oct 2017

Name: Class: Mark:

Division of points:

12 12 12
Question 1 2 3 4 5 6 7 8 9 10 11 A B C Total
Max. points 10 5 6 5 7 7 10 5 5+5 6 15 6 4 4 100

 Hand in this exam paper to the invigilator;


 Explain all answers clearly and fully.
 Encircle the right answer when multiple choice answers are possible

QUESTION 1 (10 points)


Fill in the main three layers that make up a computer system. On the right side write down main
task or purpose.

Enables a
user to
Applications ‘interact’
with
computer
Controls
Operating the
system hardware
The
Hardware machine
1
FIS1 - Oct 2016

QUESTION 2 (5 points)
Write down the common memory/storage types from slow to fast:

 Hard Disk
 Solid State Disk;
 RAM;
 CPU Cache;

QUESTION 3 (6 points)
Out of 3 main paradigms, write down which paradigms are supported by C# language

All 3; Imperative, declarative and OOP paradigms are supported by C#.

QUESTION 4 (5 points)
Which of the following is true about modern multicore processors?
A. OS always uses same cores for same processes
B. OS does not use different processes in a core
C. None of the above
D. OS splits processes between cores

QUESTION 5 (7 points)
Fill in the memory type and medium on the corresponding sections, in the following model of a
computer system.

CPU
Level 1
cache
Level 2
cache

System RAM

Hard disk

2
FIS1 - Oct 2016

QUESTION 6 (7 points)
What is responsible for managing hardware & applications. What other tasks does this software
collection have? (Give at least two examples)

Operating System is a collection of system software:


 Manage hardware & applications
 Layer between hardware & applications
 Maintain system integrity & error handling

Alt: An operating system (OS) is a collection of system software that controls the hardware and
functions as a layer between applications and hardware.
The OS for example handles the memory (memory management), running multiple
applications (process management), who can access which hardware (resource
management), etc.

QUESTION 7 (10 points)


What are some of the differences between JIT compiling vs interpreted execution mode?

If code is JIT compiled the executable contains an intermediate language. This language still
needs to be translated to machine code which is done when the JIT executable is run.
The translation of the intermediate language to machine code is done by a virtual machine

Interpreted runs the source code and converts this on-the-fly (runtime) line by line into
machine code and executes this. An application is the source code itself.

QUESTION 8 (5 points)
Which of the following features are supported by VisualStudio (ie. VS2015, VS2017) when
programming in C#?
A. Source code editor and code completion
B. Build automation tools
C. Debugger
D. All of the above

3
FIS1 - Oct 2016

QUESTION 9 (5+5 points)


What is a native app. List three operating systems and the common programming languages that
are used to develop native apps respectfully.
A native application (native app) is an application program that has been developed for use on a
particular platform or device.

OSX, iOS - Objective C, Swift


Android – Java
Windows – C# (.Net)

QUESTION 10 (6 points)
Describe characteristics of low level programming languages. Which language is mostly used for
low level programming?

Low level languages are close to the hardware, it manipulates hardware directly (lacks
abstraction usually found in high level languages). It tends to be
difficult to master compared to high level languages.

When it comes to embedded programming, it’s usually done using C programming language.

QUESTION 11 (15 points)


Complete the following table by converting all numbers to the other number systems.

Binary Decimal Hexadecimal


11101110 238 EE

10101010 170 AA

00100000 32 20

1110111 119 77

01111111 127 7F

10101100 172 AC

4
FIS1 - Oct 2016

QUESTION 13 (6, 4 & 4 points)

A. Perform the following calculations and write down the results, include all carry-signs:

           11111           111   1 
          10100010           11100010
          00111110           01111010
+=========== +===========
          11100000          101011100

Taking into account that the result has to fit in one byte, answer the following questions:

B. Is the first result correct when interpreted as a signed binary number (2-complement),
include an explanation/calculation?

The first result is correct, because:


-94 + 62 = -32
and 11101000 as signed byte is -32

C. Is the second result correct when interpreted as an unsigned binary number (not 2-
complement), include an explanation/calculation?

The first result is wrong, because:


226 + 122 = 348
and 110001101* as unsigned byte is 92
*: we ignore the most left bit because it needs to fit in a byte

You might also like