Success Forge C# Assignment 1

Success Forge C# Assignment 1

Professional Development

17 Qs

quiz-placeholder

Similar activities

LPC 16 - AIO

LPC 16 - AIO

Professional Development

20 Qs

U.T. 7: Configuración de Routers y Encaminamiento

U.T. 7: Configuración de Routers y Encaminamiento

Professional Development

20 Qs

MS OFFICE QUIZ 01

MS OFFICE QUIZ 01

Professional Development

20 Qs

command prompt

command prompt

4th Grade - Professional Development

15 Qs

Ports

Ports

Professional Development

20 Qs

NM-BIG DATA Course

NM-BIG DATA Course

Professional Development

20 Qs

3D Objects - Terms & Transfomations

3D Objects - Terms & Transfomations

6th Grade - Professional Development

20 Qs

Digital Technology Office 365 - 29May2020

Digital Technology Office 365 - 29May2020

University - Professional Development

13 Qs

Success Forge C# Assignment 1

Success Forge C# Assignment 1

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Aniket Molke

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct syntax for an if statement in C#?

if condition { ... }

if (condition) { ... }

if [condition] { ... }

if {condition} [ ... ]

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is NOT an arithmetic operator in C#?

+

*

--

&&

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of this code?
int a = 10, b = 20;
if (a < b) { Console.WriteLine("a is less than b"); }

a is less than b

No output

Compilation error

b is less than a

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which loop guarantees execution at least once?

for

while

do-while

foreach

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of this code?
int a = 5, b = 3;
Console.WriteLine(a % b);

1

2

0

3

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct way to increment a variable by 1?

x++;

x =+ 1;

x += 1;

Both A and C

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this code?

0 1 2

1 2 3

0 1 2 3

Infinite loop

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?