Lecture 1 Flashcards

1
Q

Binary code?

A

0101010101000011

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

Machine code?

A

9E 67 8F A4 4F BA

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

Assembly?

A

mov eax, 4
mov ebx, 1
add eax, ebx
call printf

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

High-level programming languages?

A

C, C++, C#, Java, Python, PHP, Go

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

What is interpreting?

A

Translating one line of higher language code into machine code and executing it

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

What is compiling?

A

Translating an entire program written in a higher level language into machine cod, so that it can be executed

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

Which high-level programming languages are compiled for a certain platform?

A

C, C++, Haskell, Go

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

What high-level programming languages are compiled into an intermediate format?

A

Java, C#, Scala

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

Which high-level programming languages are interpreted?

A

Python, Ruby, PHP

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

How is the intermediate format of Java called?

A

bytecode

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

How are bytecode files executed?

A

by a virtual machine, the JVM

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

What are the three different types of high-level programming languages?

A
  • Compiled for a specific platform
  • Compiled into an intermediate format, so that they can be executed on any platform
  • Interpreted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What data types, do the java primitive data types cover?

A

Booleans,
integers,
floating-point numbers,
characters

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

What are the two types of data in Java

A

Primitive and reference

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

What binary number representation does java use for integers?

A

Two’s complement

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

How are 32-bit real numbers stored?

How many bits are used for which values?

A
Floating-point. 
1 bit for sign,
8 for exponent,
23 for mantissa
sign X mantissa x 2^exponent
17
Q

How many primitive data types does java have?

18
Q

What primitive data types does java have?

A

boolean, byte, short, int, long, float, double, char

19
Q

How many bits is a boolean and what can this represent?

A

1, true/false

20
Q

how many bits is a byte and what can it represent

A

8, integers

21
Q

how many bits is a short and what can it represent

A

16, integers

22
Q

how many bits is an int and what can it represent?

A

32, integers

23
Q

how many bits is a long and what can it represent?

A

64, integers

24
Q

how many bits is a float and what can it represent?

A

32, real numbers

25
How many bits is a double and what can it represent?
64, real numbers
26
What is the standard java type for real numbers?
double
27
What is the standard java data type for integers?
int
28
How many bits is a char?
16 (ASCII VALUE?)