wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PR EidP Quiz Seminar 3

Total questions: 6

Worksheet time: 4mins

Name
Class
Date
1.

Was ist der C-Datentyp von 3.14?

a)

float

b)

double

c)

int

d)

long double

2.

Was ist der C-Datentyp von 0.5f?

a)

float

b)

double

c)

int

d)

long double

3.

Was ist der Dezimalwert und (Standard) C-Datentyp von 0xfee?

a)

4077 und long long

b)

4078 und int

c)

4078 und double

d)

4078 und short

e)

4077 und int

4.

Um welchen C Datentyp handelt es sich und was ist das Ergebnis (Asci-Wert von 'C' ist 67)?

14.0f + 5 + 'C' == 10

a)

int und 0

b)

double und 1.0

c)

float und 20.0

d)

float und 0.0

e)

int und 20

5.

Was wird hier ausgegeben:

double wert = 0.012e3;

printf("%o", (int) wert);

(a)  

6.

Welche der folgenden Klammerausdrücke ist äquivalent zu dem gegebenen Ausdruck, wenn die Operatorpräzedenzen berücksichtigt werden:

(int) 1.0 << 0 && 1 != 0 & 3

a)

(int) 1.0 << (0 && (1 != 0) & 3)

b)

(int) 1.0 << 0 && (1 != (0 & 3))

c)

((int) 1.0 << 0) && (1 != 0) & 3

d)

(int) 1.0 << (0 && 1) != (0 & 3)