
Session 2A
Authored by Mohammad Saleem
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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){
________
}
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
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 code3.
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
static void MyMethod(string txt) {
Console.WriteLine(txt[1]);
}
static void Main(string[] args){
MyMethod("Programming");
}
Write down the output of this code4.
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?
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?
static void MyMethod(int number) {
number++;
}
static void Main(string[] args){
Consol.WriteLine(MyMethod(3));
}
what is the output?error
5
4
3
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
J277 - 2.2 - Understanding Data Types in Programming
Quiz
•
10th Grade - University
10 questions
Structs em C
Quiz
•
9th - 12th Grade
10 questions
Difference between Algorithm, Pseudocode and Program
Quiz
•
9th Grade
10 questions
Kuis library JMF
Quiz
•
9th - 12th Grade
10 questions
Python- Operators
Quiz
•
12th Grade
10 questions
Parcial-Dibujo
Quiz
•
12th Grade
10 questions
Tipe Data dalam Pemrograman
Quiz
•
11th Grade
10 questions
Unit 4 Advanced AP CSP
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade