gs gs108 Object Oriented Concepts - Polymorphism - Quiz No.1

gs gs108 CSharp Quiz

Online Quizzes Preparation

This quiz belongs to book/course code gs gs108 CSharp of gs organization. We have 110 quizzes available related to the book/course CSharp. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Object Oriented Concepts. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.

NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.

Question 4: Correct way to overload +operator?
Question 5: What will be the Correct statement of the following C# code?

 public class maths { public int x; public virtual void a() {  }  } public class subject : maths { new public void a() {  }  } 
Question 6: Select the sequence of execution of function f1(), f2() & f3() in C# .NET CODE?

 class base { public void f1() {} public virtual void f2() {} public virtual  void f3() {} } class derived :base { new public void f1() {} public override void f2() {} public new void f3() {} } class Program { static void Main(string[] args) { baseclass b = new derived(); b.f1 (); b.f2 (); b.f3 (); } } 
Question 7: Which of the following statements is correct?
Question 8: Correct code to be added for overloaded operator – for the following C# code?

 class csharp { int x, y, z; public csharp() {  } public csharp(int a ,int b ,int c) { x = a; y = b; z = c; } Add correct set of code here public void display() { console.writeline(x + "  " + y + "  " + z); } class program { static void Main(String[] args) { csharp s1 = new csharp(5 ,6 ,8); csharp s3 = new csharp(); s3 = - s1; s3.display(); } } } 
Question 10: Wrong statement about run time polymorphism is?


Online Quizzes of gs108 CSharp

Other LANG related online quizzes

Other categories of gs Online Quizzes

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background