Search Header Logo

C# 1ST EXAM

Authored by أشرف شهاب

Computers

University

Used 3+ times

C# 1ST EXAM
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

int type in C# take a size from memory equal to___?

8

16

32

64

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

when assign value from int variable to float variable this conversion called

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

int i = 4, k = 2, c = 2;

c += c + k++ + (++i - ++c) * i++;

Console.WriteLine(c);

16

18

17

15

4.

MULTIPLE SELECT QUESTION

1 min • 2 pts

اكبر نوعين من الانواع المبينه هما

long

int

short

byte

5.

FILL IN THE BLANK QUESTION

3 mins • 1 pt

Media Image

int A = 1;

for (int i = 1; i <= 4; i++)

A += i;

Console.WriteLine(A);

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

string st = "MY NAME IS ABU SALEEM";

string newst = st.Substring(8, 6);

Console.WriteLine(newst);

NAME IS

SALEEM

BU SAL

IS ABU

7.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Media Image

int A, B = 89;

A = (B < 90) ? 90 : B;

Console.WriteLine(A);

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?