Search Header Logo

C#-1: Lektion 5

Authored by Coding Giants

Education

8th Grade

Used 15+ times

C#-1: Lektion 5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welches Zeichen steht am Ende der meisten C#-Anweisungen?

Leerzeichen

Komma

Semikolon

Bindestrich

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Wie wird die Variable für den Benutzernamen richtig deklariert?

string name;

int name;

char name;

bool name;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welchen Typ verwendest Du um eine gebrochene Zahl zu speichern?

bool

int

double

char

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Mit welcher Methode wird Text von der Konsole eingelesen?

console.WriteLine();

String a = Console.WriteLine();

Console.ReadLine();

int a = Console();

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Welches Schlüsselwort wird verwendet um eine Konstante zu deklarieren?

int

public

double

const

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Welche Rolle spielt die Funktion: int.Parse () im folgenden Code:

int mark= int.Parse(Console.ReadLine());

wandelt den Float-Wert in int um

fügt den von der Konsole gelesenen Wert zur Variablen mark hinzu

parst (konvertiert) den von der Konsole gelesenen Text, um ihn als Zahl zu speichern

macht nichts, kann aus diesem Code entfernt werden

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Was kann eine als char deklarierte Variable speichern?

Zeichenkette

ein Zeichen

gebrochene Zahl

ganze Zahl

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?