Tag: programming languages

Questions Related to programming languages

Which of the following are actual uses for XML?

  1. Data storage

  2. Database retrieval

  3. Data migration

  4. N-tier development


Correct Option: A,B,C,D

You can write a Console Application or a Windows Application in C#, without using Visual Studio.

  1. True

  2. False


Correct Option: A

The Intellisense feature of Visual Studio interactively guesses, and lists all the types, methods etc. as you go on typing. How does it work?

  1. .NET Remoting Services

  2. XML

  3. Reflections

  4. Web Services


Correct Option: C

When you write using System, at the beginning of a C# Program, the meaning of System is

  1. A header file

  2. An Assembly or .dll

  3. An executable

  4. A COM Component


Correct Option: B
  1. csc /target:library file.cs

  2. csc /target:exe file.cs

  3. csc Vehicle.dll file.cs

  4. csc /r:Vehicle.dll file.cs


Correct Option: D
  1. The root class(super class) of all classes in C# is Object

  2. Constructors in C# can be static

  3. When you override <= operator, you must override >= operator

  4. If you write your own constructor in a class, C# also provides a default constructor


Correct Option: D

When you write a program in C#, it is compiled to

  1. C# Language Code

  2. Assembly Language Code

  3. Intermediate Language which CLR understands

  4. Pseudo-code


Correct Option: C

How do you make a .NET Assembly public/universally visible to all applications, so that they can share it?

  1. By registering it in Windows Registry

  2. By signing the assembly using a strong-named key and adding it to GAC

  3. By putting it in C:\Windows Folder

  4. By setting the Environment Variables


Correct Option: B

Consider 3 classes A,B,C. A's child class is B, B's child class is C. Inheritance hierarchy is A->B->C. You write in Main(), C obj = new C(); In what order are the constructors called?

  1. B, C

  2. C, B and A

  3. A, B and C

  4. Object, A, B and C


Correct Option: D