0

programming languages Online Quiz - 213

Description: programming languages Online Quiz - 213
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. virtual,override

  2. override,new

  3. new,base

  4. base,override


Correct Option: A
  1. Creates the class Test : Form

  2. Creates the class Test that inherits the class Form

  3. Creates the class form that inherits the class Test

  4. a and b


Correct Option: B

Which element of a document's source code defines how the markup processor should interpret the tags in the source?

  1. The type of tag used

  2. The version of the markup language that the source uses

  3. The document type declaration

  4. None


Correct Option: C
  1. It describes the tags in existing languages

  2. It defines new markup languages

  3. It parses the code in existing markup languages

  4. All


Correct Option: B
  1. Programming events

  2. Text appearance

  3. Relationships between data

  4. Text structure


Correct Option: B,D
  1. Data storage

  2. Database retrieval

  3. Data migration

  4. N-tier development


Correct Option: A,B,C,D

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

Which of the following is correct way to compile a C# program file.cs, and add a reference to an external assembly Vehicle.dll?

  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
  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

Given: class Scoop { static int thrower() throws Exception { return 42; } public static void main(String [] args) { try { int x = thrower(); } catch (Exception e) { X++; } finally { System.out.printIn("x = " + ++x); } } }

  1. x = 42

  2. x = 43

  3. x = 44

  4. Compilation fails


Correct Option: D
- Hide questions