Q.1.
To print out 'a' as an integer and 'b' as a decimal, which of the following printf() statement will you use?
Q.2.
Which of the following will be the correct output for the C#.NET code snippet given below?String s1 = "Nagpur"; String ss2 = s1.Insert("Mumbai");Console.WriteLine(s2);
Q.3.
Usecase: A system needs to be implemented to create a mobile shop, consisting of Apple IPhone, OnePlus, Google Nexus. At run time, the end-user will provide the phone required and the system should be able to create an instance of the correct mobile phone object from his existing factory / godown / repository. Which design pattern fits this usecase?
Q.4.
In a class the virtual function ____________
Q.5.
An abstract class must have __________
Q.6.
_________ is an access modifier
Q.7.
Objects cannot be created for _________ class.
Q.8.
Static class can have _________ members.
Q.9.
To inherit a class, the _______ notation is used in C#