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