Search Header Logo

C# Basic

Authored by PRG TRAINER GLID

Computers

Professional Development

Used 5+ times

C# Basic
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To print "Foo Bar" on the console, we could use this command:

print("Foo Bar")

cout << "Foo Bar"

echo "Foo Bar"

System.out.println("Foo Bar")

Console.WriteLine("Foo Bar")

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

C# is an extension of ...

C

C++

Java

Objective-C

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is the comment in C#?

// This is a comment

/* This is a comment

# This is a comment

:: This is a comment

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A line of characters in C# ...

string

str

String

chars

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is correct?

x = 13;

num x = 13;

double x = 13;

int x = 13;

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is correct?

int pi = 3.14D;

int pi = 3.14;

float pi = 3.14;

double pi = 3.14D;

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

To get the length of a string object called line

int n = line.Length;

int n = line.length();

int n = line.len();

int n = string.getLength(line);

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?