Tag: programming languages

Questions Related to programming languages

  1. The event registration

  2. A protected class member for the control

  3. A default event handler for the click event

  4. A default class that inherits from the control’s base class


Correct Option: C

What HTML element is the asp:Label control rendered as when the target is Internet Explorer ?


Correct Option: B

What is the file extension used for ASP.NET files ?

  1. .ASP

  2. .ASPX

  3. .Web

  4. None of the above


Correct Option: B

A simple macro to double a number was written as follows #define double(X) X*X #include using namespace std; int main() { std::cout<

  1. 12

  2. 15

  3. 10

  4. 9

  5. Compilation error

  6. 24


Correct Option: B

consider the following C code int main() { printf("Hello world"); } Will this code compile?

  1. Sure , Why not?

  2. No This will not compile , Since the header file stdio.h is not included

  3. The code will compile but will fail to link.

  4. I dont Know :)


Correct Option: A
  1. Static variables are global variables

  2. static variales have local to the file/Scope they are declared , but exist throught the program life time

  3. static variables are scoped, Meanaing that they will be destroyed once out of scope

  4. Oh come on , Static variales are only in Java , Do not exist in C

  5. static variales have local to the file they are declared , and they will be destroyed once out of scope


Correct Option: B