Session 2A

Session 2A

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Tech 101

Tech 101

7th - 9th Grade

10 Qs

Kuis Refleksi 2

Kuis Refleksi 2

9th - 12th Grade

10 Qs

TLE ICT10 D11 General Keyboard Shortcuts

TLE ICT10 D11 General Keyboard Shortcuts

12th Grade

10 Qs

ตัวแปร และชนิดตัวแปร

ตัวแปร และชนิดตัวแปร

9th - 12th Grade

10 Qs

Basic Parts of Speech EPS

Basic Parts of Speech EPS

9th - 10th Grade

10 Qs

Understanding Backend

Understanding Backend

10th Grade

10 Qs

Fundamentos PHP (Manejo de Fomularios y arreglos)

Fundamentos PHP (Manejo de Fomularios y arreglos)

9th Grade

10 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Session 2A

Session 2A

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Mohammad Saleem

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 2 pts

Create a method named MyMethod and call it inside Main().
static void MyMethod() {
  Console.WriteLine("I just got executed!");
}

static void Main(string[] args){
________
}

2.

FILL IN THE BLANK QUESTION

1 min • 2 pts

static void MyMethod(string fname, int age) {
  Console.WriteLine(fname + " is " + age);
}

static void Main(string[] args){
  MyMethod("Liam", 5);
}
Write down the output of this code

3.

FILL IN THE BLANK QUESTION

1 min • 2 pts

static void MyMethod(string txt) {
  Console.WriteLine(txt[1]);
}

static void Main(string[] args){
  MyMethod("Programming");
}
Write down the output of this code


4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

static int MyMethod(int number) {
  return number + 2;
}

static void Main(string[] args){
  Consol.WriteLine(MyMethod(3));
}
what is the output?


error

5

3

2

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

static void MyMethod(int number) {
  number++;
}

static void Main(string[] args){
  Consol.WriteLine(MyMethod(3));
}
what is the output?

error

5

4

3