syntaxclassificatie Flashcards

1
Q

Color

A

Type

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

bool

A

Type

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

Pen []

A

Type

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

TextBox

A

Type

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

long

A

Type

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

double

A

Type

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

Button

A

Type

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

int//k

A

Type

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

Brush

A

Type

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

Int

A

Type

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

string

A

Type

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

DateTime

A

Type

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

TimeSpan

A

Type

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

“\” + 2

A

Expressie

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

new Font (“Color.Red)

A

Expressie

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

true==false

A

Expressie

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

Color.FromArgb(0,0,0)

A

Expressie

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

new int [5]

A

Expressie

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

(int)3

A

Expressie

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

314140

A

Expressie

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

false! = false

A

Expressie

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

1//2*3

A

Expressie

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

new TextBox ()

A

Expressie

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

this

A

Expressie

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

Brushes.Blue

A

Expressie

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

(double) x*x

A

Expressie

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

Ox2a

A

Expressie

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

new Button (“”)

A

Expressie

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

(bool) true

A

Expressie

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

t==t+1

A

Expressie

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

new Size (x, y)

A

Expressie

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

3.0e-05

A

Expressie

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

(((3)))

A

Expressie

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

x==5

A

Expressie

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

(int)3.5

A

Expressie

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

from p in punten select p.X

A

Expressie

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

DateTime.Now

A

Expressie

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

Console.ReadLine()

A

Expressie

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

-1010

A

Expressie

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

{ }

A

Opdracht

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

while(x>0) x-=1;

A

Opdracht

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

return Color.Red;

A

Opdracht

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

b = new Button ();

A

Opdracht

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

For (;;);

A

Opdracht

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

F = 3F;

A

Opdracht

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

return “ ”;

A

Opdracht

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

Console.Write(“<”+”>”);

A

Opdracht

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

x = 1%2;

A

Opdracht

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

a% = x;

A

Opdracht

50
Q

y=x! =x;

A

Opdracht

51
Q

This.add (b);

A

Opdracht

52
Q

b.Text = “ok”;

A

Opdracht

53
Q

while(true) t=1;

A

Opdracht

54
Q

t = t+1;

A

Opdracht

55
Q

this.Size = this.ClientSize;

A

Opdracht

56
Q

return 3==5;

A

Opdracht

57
Q

while (true) t=1;

A

Opdracht

58
Q

while(false);

A

Opdracht

59
Q

x=x;

A

Opdracht

60
Q

x=5;

A

Opdracht

61
Q

return x==x;

A

Opdracht

62
Q

{int n;}

A

Opdracht

63
Q

b=true&&false;

A

Opdracht

64
Q

const bool b=1==0;

A

Declaraties

65
Q

Color c;

A

Declaraties

66
Q

String s = “\””;

A

Declaraties

67
Q

P p;

A

Declaraties

68
Q

bool b, c;

A

Declaraties

69
Q

double E = 3E3;

A

Declaraties

70
Q

double x;

A

Declaraties

71
Q

Button b = ok;

A

Declaraties

72
Q

Button b;

A

Declaraties

73
Q

int t =1;

A

Declaraties

74
Q

String s = “\”;

A

Declaraties

75
Q

int a, b = 5;

A

Declaraties

76
Q

DateTime now;

A

Declaraties

77
Q

bool b=!(1!=1);

A

Declaraties

78
Q

short c1=0xC1;

A

Declaraties

79
Q

int a (Color c)

A

Functie-header

80
Q

bool b (bool c)

A

Functie-header

81
Q

Pen p (Pen p)

A

Functie-header

82
Q

TextBox t ( )

A

Functie-header

83
Q

int ij (int i, int j)

A

Functie-header

84
Q

void x ( )

A

Functie-header

85
Q

string ok (Button b)

A

Functie-header

86
Q

int t ( )

A

Functie-header

87
Q

Size s (Size t)

A

Functie-header

88
Q

void p (int x)

A

Functie-header

89
Q

Font f (Color c)

A

Functie-header

90
Q

bool b( )

A

Functie-header

91
Q

Point p(int x, int y)

A

Functie-header

92
Q

void bool ()

A

X - Een functie kan niet void en bool tegelijk zijn. void geeft aan dat er geen teruggegeven waarde is, terwijl bool aangeeft dat de functie een boolean waarde zou moeten retourneren.

93
Q

For(x=0; x++) t=0;

A

X - Dit is geen geldige for-lus vanwege de ontbrekende derde expressie in de for-statement (increment of decrement is niet volledig gespecificeerd).

94
Q

void P (int 3)

A

X - Hier is een numerieke waarde (3) gebruikt als parameternaam, wat niet toegestaan is. Parameternamen moeten identifiers zijn (zoals int x).

95
Q

while ();

A

X - Een while-lus moet een geldige conditie bevatten binnen de haakjes en een lichaam erachter, zelfs als het een lege lus is. Hier ontbreekt de conditie, dus dit is geen geldige Opdracht.

96
Q

const

A

X - const is een modifier en geen volledige instructie of declaratie op zichzelf. Een const moet gebruikt worden als deel van een declaratie, bijvoorbeeld const int x = 10;.

97
Q

Static P (int p)

A

X - Static is geen geldige keyword in C#; het zou static moeten zijn. Bovendien is P geen geldig type.

98
Q

“///\\”

A

X - Dit lijkt een niet-gesloten string met onduidelijke bedoeling. Het is geen geldige string waarde en kan niet correct geclassificeerd worden als Expressie of Opdracht.

99
Q

while (x>=0)

A

X - Dit lijkt een onvolledige while-lus, omdat er geen lichaam is. Alleen de voorwaarde staat er, zonder een statement of blok na de haakjes, waardoor het geen geldige Opdracht of Expressie is.

100
Q

return (object a)

A

X - In C# kan return geen declaratie bevatten zoals (object a).

101
Q

2Xa0

A

X - Dit lijkt op een hexadecimaal getal, maar de X is geen geldige syntax voor hexadecimale getallen. Een hexadecimaal getal begint met 0x. Dit kan dus geen geldige Expressie zijn.

102
Q

class Ok: Form

A

X - Deze regel is onvolledig. Het definieert een klasse Ok die Form uitbreidt, maar de klasse heeft geen lichaam { }, wat vereist is.

103
Q

Class A: Size

A

X - Hier is Class met een hoofdletter geschreven, wat niet correct is in C#. Het moet class zijn. Ook hier ontbreekt het lichaam van de klasse { }, waardoor dit geen geldige Class declaratie is.

104
Q

const bool true;

A

X - const en bool zijn correct, maar true is een gereserveerd woord en kan niet gebruikt worden als variabele naam. Dit is dus geen geldige declaratie.

105
Q

new Button b;

A

X - Een new expressie zonder toewijzing aan een variabele is niet toegestaan in deze vorm. new Button creëert een instantie en heeft een geldige toewijzing nodig, zoals Button b = new Button();.

106
Q

3==5

A

Expressie

107
Q

String s = “\”;

A

X - Hier ontbreekt een correcte \ escape-sequentie, en de string is niet correct afgesloten. Dit kan geen geldige Declaraties zijn.

108
Q

int a (int 3)

A

X - Dit is een ongeldige functie-header, omdat 3 geen geldige parameternaam is. Parameters moeten identifiers zijn en geen numerieke waarden bevatten.

109
Q

using System;

A

X - using-statements worden normaal gesproken bovenaan de code geplaatst, buiten functies, klassen of methodes.

110
Q

return

A

X - Dit statement is onvolledig zonder waarde of expressie om terug te geven. return moet altijd gevolgd worden door een expressie of waarde, tenzij het in een void functie staat met een expressie.

111
Q

new Size

A

X - new Size ontbreekt haakjes () en toewijzing, wat vereist is voor een new-expressie. Daarom is het geen geldige Expressie.

112
Q

void v;

A

X - void kan geen type van een variabele zijn. In C# is void alleen van toepassing als return type van een functie, niet voor variabelen of declaraties.

113
Q

Declaratie

A

Variabele of constante definitie, begint met type

114
Q

Expressie

A

Evalueert een waarde of operator, maar geen actie

115
Q

Opdracht

A

Voert een actie uit, zoals toewijzing of controleflow

116
Q

Functie-header

A

Methode-definitie zonder implementatie, begint met return type

117
Q

Ongeldig (X)

A

Syntaxfout, ontbrekende elementen, of verkeerd gebruik van woorden

118
Q

2 * (lengte + breedte)

A

Expressie

119
Q

“Hallo” + persoon

A

Expressie

120
Q

teller < exponent

A

Expressie

121
Q

byte

A

Type