Q. Which of the following languages are used to write server side scripting in ASP.NET?

  • (A) C-Sharp
  • (B) VB
  • (C) Both C-Sharp and VB
  • (D) C++
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both C-Sharp and VB

Q. By default, ASP.NET store SessionIDs in _________.

  • (A) Cookies
  • (B) Cache
  • (C) Database
  • (D) Global Variable
πŸ’¬ Discuss
βœ… Correct Answer: (A) Cookies

Q. Which of the following is not an ASP.NET page event?

  • (A) Init
  • (B) Load
  • (C) Import
  • (D) Disposed
πŸ’¬ Discuss
βœ… Correct Answer: (C) Import

Q. What class does the ASP.NET web form class inherit from by default?

  • (A) System.Web.UI.Page
  • (B) System.Web.UI.Form
  • (C) System.Web.GUI.Page
  • (D) System.Web.Form
πŸ’¬ Discuss
βœ… Correct Answer: (A) System.Web.UI.Page

Q. Master pages are used to provide the code and appearance that are the same for a series of __________.

  • (A) Content Pages
  • (B) Base pages
  • (C) Both A and B
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) Content Pages

Q. Menus, TreeView and SiteMapPath controls cannot be styled with CSS

  • (A) True
  • (B) False
  • (C) none
  • (D) all
πŸ’¬ Discuss
βœ… Correct Answer: (B) False

Q. Every Server control must have an Id

  • (A) True
  • (B) False
  • (C) none
  • (D) all
πŸ’¬ Discuss
βœ… Correct Answer: (A) True

Q. Application_Start event is available in ___________.

  • (A) Web.config
  • (B) Local.asax
  • (C) Global.asax
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) Global.asax

Q. Properties and Indexer are used to access which type of data members?

  • (A) Private
  • (B) Publi
  • (C) C Protecte
  • (D) D Internal
πŸ’¬ Discuss
βœ… Correct Answer: (A) Private

Q. Which of the following statements is correct about a namespace in C#.NET?

  • (A) Namespaces help us to control the visibility of the elements present in it.
  • (B) A namespace can contain a class but not another namespace.
  • (C) If not mentioned, then the name 'root' gets assigned to the namespace.
  • (D) It is necessary to use the using statement to be able to use an element of a namespace.
πŸ’¬ Discuss
βœ… Correct Answer: (A) Namespaces help us to control the visibility of the elements present in it.

Jump to