
Hands-on Quiz
Authored by Asha Jyothi
Professional Development
University
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
1.Can you complete the below C# program to find the factorial of a given number?
using System;
class Factorial {
static void Main() {
int num = 5;
int factorial = 1;
Console.WriteLine("Factorial of {0} is {1}", num, factorial);
}
}
for (int i = 1; i <= num; i++) { i = factorial * i; }
factorial = factorial * i;
for (int i = 1; i <= num; i++) { factorial = i * num; }
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
2. What will be the result of the following code?
int x = 5;
int y = 3;
Console.WriteLine(x + y);
A) 8
B) 15
C) 53
D) None of the above
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
3. How would you make this program more fun by printing "Hello, [Your Name]!" instead of "Hello, world!"?
using System;
class HelloWorld {
static void Main() {
Console.WriteLine("Hello, world!");
}
}
A) Replace "world" with your name in the WriteLine statement
B) Add a new line with Console.WriteLine ("Hello, [Your Name]!");
C) Modify the Main method to accept a string argument for the name and print it
D) None of the above
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
4.Can you complete the following C# program to determine if a given number is even or odd?
using System;
class EvenOdd {
static void Main() {
int num = 6;
{
Console.WriteLine("{0} is even", num);
}
else
{
Console.WriteLine("{0} is odd", num);
}
}
}
if (num % 10 == 0)
num % 2 == 0
if (num % 2 != 0)
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
5.What will be the value of x after the following code is executed?
int x = 5;
x ++;
D) None of the above
6.
MULTIPLE SELECT QUESTION
10 mins • 2 pts
6.Complete the below C# program to Generate Fibonacci Series.
using System;
class Fibonacci {
static void Main() {
int n = 10;
int first = 0, second = 1;
Console.WriteLine("Fibonacci Series:");
for (int i = 0; i < n; i++) {
Console.Write(first + " ");
second = temp;
}
}
}
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
Motivações Empreendedoras
Quiz
•
University
10 questions
Quiz on Perceptual-Motor Skills
Quiz
•
12th Grade - University
11 questions
Chapter1 - Activity (Formal vs. Informal)
Quiz
•
University
10 questions
11 Good Study Habits for Students
Quiz
•
University
10 questions
QUIZ ON CODE OF CONDUCT
Quiz
•
University
10 questions
Lock Down Quiz
Quiz
•
KG - Professional Dev...
10 questions
Arreglos
Quiz
•
7th Grade - Professio...
10 questions
LEARNING STRATEGIES REVIEW FOR ENGLISH EXAM MODULE 1
Quiz
•
8th Grade - Professio...
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Professional Development
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University