Session 2A

Session 2A

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Análisis Código Básico

Análisis Código Básico

12th Grade

5 Qs

AP Computer Science A

AP Computer Science A

12th Grade

10 Qs

Methods in Java

Methods in Java

11th - 12th Grade

10 Qs

CuestionarioJava_1

CuestionarioJava_1

9th - 12th Grade

8 Qs

T4 Sains Komputer - 1.3

T4 Sains Komputer - 1.3

10th Grade

10 Qs

Simulasi 4

Simulasi 4

10th Grade

10 Qs

Comprog-October 11, 2022

Comprog-October 11, 2022

11th - 12th Grade

10 Qs

Sains Komputer Tingkatan 4 - 1.2.6 Terjemahan Algoritma..

Sains Komputer Tingkatan 4 - 1.2.6 Terjemahan Algoritma..

10th - 12th Grade

4 Qs

Session 2A

Session 2A

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Mohammad Saleem

Used 1+ times

FREE Resource

AI

Enhance your content

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