wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C# part1 en

Total questions: 7

Worksheet time: 5mins

Name
Class
Date
1.

Which one of these data types in C# accepts any number, but only full numbers?

a)

int

b)

float

c)

string

d)

char

e)

bool

2.

Which one of these data types in C# accepts only one, but any kind of symbols?

a)

float

b)

bool

c)

char

d)

string

3.

Which one of these data types in C# accepts any kind and number of symbols?

a)

bool

b)

string

c)

float

d)

int

4.

Which one of these data types in C# accepts full or fractional numbers?

a)

char

b)

bool

c)

int

d)

float

5.

Which one of these data types in C# accepts only "True / False"?

a)

bool

b)

string

c)

char

d)

int

6.

What does this command will do?

a)

It will wait for user to text "Hello World!"

b)

It will write on console - Hello World!

c)

It will write on your desktop - Hello world!

7.

What will this command do?

a)

It will wait to user to write something

b)

It will ask to user to write something

c)

It will write on desktop " "