
Sethu Testing C#
Authored by Thabiso Ntuli
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Which of the following is a valid variable declaration in C#? A) int 1number; B) int number1; C) number1 int; D) int number 1;
float number1;
B) int number1;
int number;
string 1number;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. What data type is used to store a true or false value in C#? A) int B) string C) bool D) char;
C) bool
object
list
float
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. How do you convert a string to an integer in C#? A) Convert.ToInt(string); B) int.Parse(string); C) string.ToInt(); D) Convert.Int(string);
int.Convert(string);
string.ToInteger();
Convert.Int32(string);
B) int.Parse(string);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. What is the scope of a variable declared inside a method? A) Global B) Local C) Static D) Constant;
B) Local
Public
Temporary
Instance
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. Which of the following is a constant in C#? A) const int x = 10; B) int x = 10; C) static int x = 10; D) var x = 10;
const float y = 10.0;
readonly int x = 10;
dynamic x = 10;
A) const int x = 10;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. What will be the output of the following code? MessageBox.Show("Hello, World!"); A) Hello, World! B) MessageBox C) Error D) Nothing;
MessageBox.Show()
Hello, Universe!
A) Hello, World!
Goodbye, World!
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. Which method would you use to find the maximum of two numbers in C#? A) Math.Max() B) Math.High() C) Math.Top() D) Math.Bigger();
Math.Compare()
Math.MaxValue()
A) Math.Max()
Math.Greater()
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
22 questions
test 2 élite
Quiz
•
KG - Professional Dev...
26 questions
Ouat Quiz
Quiz
•
5th Grade - Professio...
22 questions
Piony funkcyjne w hotelu
Quiz
•
University
21 questions
"Prohibido suicidarse en primavera" de Alejandro Casona,
Quiz
•
12th Grade - University
21 questions
ENSAYO CIENTÍFICO
Quiz
•
University
21 questions
El Canto de la Madre Agua
Quiz
•
11th Grade - University
21 questions
Examen primer parcial EFC
Quiz
•
University
21 questions
Preguntas sobre el Rey Midas
Quiz
•
12th Grade - University
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
Discover more resources for Other
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University