Simplified guide of MCQs for Exams, Interviews

Topic: Computer Programming

1 .  expression x.y represents as

  • A. member x of object y
  • B. member y of object x
  • C. member y of object pointed by x
  • D. All

Correct Answer:

member y of object x


2 .  Choose the correct HTML tag to make a text italic

  • A. < li >
  • B. < i >
  • C. < italic >

Correct Answer:

< i >


3 .  Choose the correct HTML tag to make a text bold?

  • A. < b >
  • B. < bold >
  • C. < bb >

Correct Answer:

< b >


4 .  What is the correct HTML for adding a background color?

  • A. < body color="yellow" >
  • B. < body bgcolor="yellow" >
  • C. < background >yellow</ background >

Correct Answer:

< body bgcolor="yellow" >


5 .  What does vlink attribute mean?

  • A. visited link
  • B. virtual link
  • C. very good link
  • D. active link

Correct Answer:

visited link


6 .  Which attribute is used to name an element uniquely?

  • A. class
  • B. id
  • C. dot
  • D. all

Correct Answer:

id


7 .  Which tag creates a check box for a form in HTML?

  • A. < checkbox >
  • B. < input type="checkbox" >
  • C. < input=checkbox >
  • D. < input checkbox >

Correct Answer:

< input type="checkbox" >


8 .  What does PHP stand for?

  • A. Hypertext Preprocessor.
  • B. Pretext Hypertext Processor
  • C. Preprocessor Home Page

Correct Answer:

Hypertext Preprocessor.


9 .  PHP files have a default file extension of

  • A. html
  • B. php
  • C. js
  • D. asp

Correct Answer:

php


10 .  A PHP script should start with ___ and end with ___

  • A. < php >
  • B. < ? php ?>
  • C. <? ?>php
  • D. < ?php ? >

Correct Answer:

< ?php ? >