
MCQ2
Authored by Gadala Suhasini
Education
Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
class Program{
static void Main(string[] args) {
int result; int i;
for(i=-2;i<2;i++) {
result = i!=0?100/i:0;
Console.WriteLine("100/" + i + "is" + result);
Console.Read();
} } }
100/-2is-50
100/-1is-100
100/1is100
100/-2is-50
100/-1is100
100/1is100
It causes an exception
100/-2is-50
100/-1is-100
100/0is0
100/1is100
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The class Test1 inherits from class Test. An instance of Test1 is created and referenced in variable T1 using the following code: Test1 T1= new Test();
A variable called C1 of type Test is declared and T1 is a cast as type Test and assigned to C1 using the following code
Test C1 = (Test) T1
Which is the alternative syntax for the code above?
Test C1 = Test as Test1
Test C1 = T1 as Test1
Test(Test1) C1 = T1
Test C1 = (Test1 as Test) T1
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is statement is correct about constructor in C#.Net
A constructor cannot be declared as private
A constructor cannot be overloaded
A constructor can be static constructor
none of these
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when an exception object is not caught and handled properly?
The control goes to default exception handler
The compiler will not terminate the program
The compiler will terminate the program
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can an object of child type be assigned to variable of parent?
for example
card crd;
Birthday bd = new Birthday('Luci",42);
crd=bd;
No, there must be always be an exact match between the variable and object type
No, but a object of parent type can be assigned to variable of child
Yes an object can be assigned to a reference variable of parent
Yes, any object can be assigned to any reference variable
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program
1,5
0,5
1,0
3,0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output of the program
second method
20
second method
first method
second method
20
first method
second method
first method
20
second method
20
first method
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
Future Tense with "Will"
Quiz
•
4th Grade - Professio...
10 questions
Java Strings
Quiz
•
1st Grade - Professio...
11 questions
ACTFL Standards
Quiz
•
Professional Development
10 questions
How can we vary the activities that we do?
Quiz
•
Professional Development
15 questions
Konser: FSL Mobile Mekanik, 19/10/23
Quiz
•
Professional Development
10 questions
Chương trình THCS 25-26
Quiz
•
Professional Development
10 questions
Módulo 1 - Aprender a Estudiar
Quiz
•
Professional Development
10 questions
Choose the best answer.
Quiz
•
Professional Development
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Education
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...