wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C Wrapup Quiz Deutsch

Total questions: 12

Worksheet time: 8mins

Name
Class
Date
1.

Mit welcher Funktion muss jedes C/C++ Programm starten?

a)

start()

b)

system()

c)

main()

d)

program()

2.

Wie nennt man die Handlung, die eine Variable anlegt ohne sie zu belegen?

a)

declaration

(Deklaration)

b)

naming

(Benennung)

c)

instantiation

(Instantiierung)

d)

assignment

(Zuweisung)

3.

Wie markiert man den Anfang und das Ende eines Codeblocks?

a)

{ }

b)

-> <-

c)

BEGIN END

d)

( )

4.

Welches der untenstehenden ist KEIN Vergleichsoperator in C/C++ ?

a)

>

b)

<=

c)

=

d)

==

5.

Liefert der untenstehende Ausdruck True oder False

5 >= (1+6)-4

a)

True

b)

False

6.

Was gibt der Rechner im folgenden Code aus?

int x=5, y=10;

if (x>y){ cout << "ok";}

else {cout << "not ok";}

a)

ok

b)

not ok

c)

x>y

d)

no output at all

7.

Assume the following code:

int x=5, y=10;

if (x>y){ cout << "ok";}

cout << "not ok";

What is the output?

a)

not ok

b)

ok

c)

ok

not ok

8.

int sum=10;

for (int i=0;i<10;i++) {

sum+=i;}

Was ist der Wert von sum nach Durchlaufen der Schleife?

(a)  

9.

Welche der folgenden ist die korrekte Schreibweise für eine "for" Schleife?

a)

for(int i = 0; i < 10; i++);

b)

for[int i = 0; i < 10; i++];

c)

for(int i = 0; i < 10; i++)

d)

for[int i = 0; i < 10; i++]

10.

Der Standardmechanismus um Parameter an eine Funktion zu übergeben heißt in C?

a)

Call by value

b)

Call by reference

c)

call by result

d)

call by variable

11.

Wieviele Werte kann eine C Funktion maximal zurückgeben?

a)

1

b)

Beliebig

c)

Keinen

d)

Maximal 3

12.

int show();

void main()

{

int a;

a=show();

printf("%d", a);

}

int show()

{

return 15.5;

return 35;

}

Was kommt hier heraus?

a)

35

b)

15.5

c)

15

d)

None