Q.1
To print out 'a' as an integer and 'b' as a decimal, which of the following printf() statement will you use?
  • printf("%f %lf", a, b)
  • printf("%f %f", a, b)
  • printf("%d %f", a, b)
  • printf("%f %d", a, b)
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);
  • NagpuMumbair
  • Nagpur Mumbai
  • Mumbai
  • NagpurMumbai
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?
  • Singleton
  • Abstract Factory
  • Adaptor
  • None
Q.4
In a class the virtual function ____________
  • Can have a default implementation in the class
  • Must only be declared but not implemented
  • Cannot exist
Q.5
An abstract class must have __________
  • Atleast one abstract method
  • Only virtual methods
  • Only static methods
Q.6
_________ is an access modifier
  • Private
  • Params
  • Override
  • Out
Q.7
Objects cannot be created for _________ class.
  • normal
  • student
  • abstract
  • struct
Q.8
Static class can have _________ members.
  • static
  • abstract
  • static and non static
  • Void
Q.9
To inherit a class, the _______ notation is used in C#
  • :
  • ;
  • =>
  • As
0 h : 0 m : 1 s