Вы находитесь на странице: 1из 12

HTML

1. What is the difference between XML and HTML?

A. HTML is used for exchanging data, XML is not. B. XML is used for exchanging data, HTML is not

C. HTML can have user defined tags, XML cannot

2. Opening Tag of HTML Tag is called as ________.

A. Closed Tag B. Starting Tag

C. Forward Tag D. Enging Tag

3. HTML stands for ________.

A. Hyper Text Markup Language B. Hyper Text Makeup Language

C. None of these D. Hyper Tech Markup Language

4. HTML program is saved using _________ extension.

A. .htl B. .html

C. .hml D. .htlm

5. HTML Code written in MAC can be browsed in a PC with Window 7 installed , User will be able to see same design that
was designed on the MAC Pc.

A. True B. False

6. Who was the primary author of HTML?

A. Brendan Eich B. Sabeer Bhatiya

C. Google Inc. D. Tim Berners-Lee

7. Which of the following attributes comes in handy when borders have to be put between groups
of columns instead of every column?
A. Col

B. Colgroup

C. Rowspan

D. Row

8. Which of the following is valid colour code ?


A. #000000;

B. #0000000;

C. #00000000;

D. #000000000;

E. #000;
9. Caption Tag in HTML ?
A. Is used to display the Title for table at the top

B. Is used to display the Title for table at the bottom

C. Both

D. None

10. Which of the following is used increase the row height?


A. Cellspacing

B. Cellpadding

C. Row span

D. Col span

11. Which of the following is used increase the col width?


A. Cellspacing

B. Cellpadding

C. Row span

D. Col span

12. DOM stands for


A. Document object model

B. Data object model

C. Document Oriented model

D. Data oriented model

13. What is mean by DTD ?


A. Document type data

B. Data type definition

C. Document type definition

D. Definition type document


14. Text/Html is called the __________ of the page
A. Content type

B. MIME type

C. Content type/MIME type

D. None of these
15. The href attribute in the link tag specifies the:
A. Destination of a link.

B. Link

C. Hypertext

D. None of the above

16. Is width=”100” and width=”100%” the same?


A. No

B. Yes

17. What are <div> tags used for?


A. To replace paragraphs. i.e. p tags

B. To logically divide the paragraphs

C. To logically divide the document

D. To provide space between tables

18. How can we resize the image?


A. Using resize attribute

B. Using height and width

C. Using size attribute

D. Using rs attribute
19. When creating a Web document, what format is used to express an image's height and width?
A. Pixels

B. Centimeters

C. Dots per inch

D. Inches
20. What are meta tags used for?
A. To store information usually relevant to browsers and search engines

B. To only store information usually relevant to browsers

C. To only store information about search engines

D. To store information about external links

21. For frames in HTML, how do you specify the rest of the screen?
A. Using &

B. Using $

C. Using *

D. Using #

22. ASCII stands for______


A. American Standard Code for Informal Interchange

B. American Standard Code for Interchanging Information

C. American Standard Code for Information Interchange

D. American Standard Code for Information Interval

23. While searching on the Internet, you decide to check in more than one search engine because?
A. all web users prefer this technique

B. they will avoid repetition of information

C. each engine produces different results

D. they will avoid false information


24. <meta> tag cannot be defined in the <head> tag.
A. False

B. True
25. Can I play audios in HTML?
A. No

B. Yes

26. 93. The default font-size of HTML document is?


A. 6

B. 4

C. 3

D. 8

E. None

27. HTML documents are saved in?


A. ASCII text

B. Machine language codes

C. Special Binary format

D. None of these

28. What does an HTML tag do?


A. It determines the organizational structure of your Web site.

B. It connects your web site to an operating environment.

C. It hides programming instructions from view.

D. It specifies formatting and layout instructions for your web page.

29. Caption Tag in HTML ?


A. Is used to display the Title for table at the top

B. Is used to display the Title for table at the bottom

C. Both

D. None
30. Which of the following are attributes of Font Tag ?
A. Face

B. Size

C. Color

D. All of above

===========================================================================================
===========================================================================================
PHP QUESTION:-

1. Which of the following is used to declare a constant


A. const

B. constant

C. define

D. #pragma

E. def

2. What gets printed?


$var = 'false';

if ($var) {
echo 'true';
} else {
echo 'false';
}

A. true

B. false

3. Which of the following is the way to create comments in PHP?


A. // commented code to end of line

B. /* commented code here */

C. # commented code to end of line

D. all of the above


4. What does PHP stand for?
A. Preprocessed Hypertext Page

B. Hypertext Markup Language

C. PHP: Hypertext Preprocessor

D. Hypertext Transfer Protocol


5. What will be the value of $var?
A. 0

B. 0.5

C. 1

6. How do we access the value of 'd' later?


$a = array(
'a',
3 => 'b',
1 => 'c',
'd'
);

A. $a[0]

B. $a[1]

C. $a[2]

D. $a[3]

E. $a[4]

7. Which of the following is NOT a valid PHP comparison operator?


A. !=

B. >=

C. <=>

D. <>

E. ===
8. What gets printed?
class MyException extends Exception {}

try {
throw new MyException('Oops!');
} catch (Exception $e) {
echo "Caught Exception
";
} catch (MyException $e) {
echo "Caught MyException
";
}

A. Caught Exception

B. Caught MyException

9. Which statement about the code below is correct?


class A {}

class B {}

class C extends A, B {}

A. the code is perfectly fine

B. classes can not be empty

C. class C can not extend both A and B

D. qualifiers 'public' or 'private' are missing in class definitions

10. Which of the following is NOT a magic predefined constant?


A. __LINE__

B. __FILE__

C. __DATE__

D. __CLASS__

E. __METHOD__
11. What gets printed?
<?php

$RESULT = 11 + 011 + 0x11;

echo "$RESULT";

?>

A. 11

B. 22

C. 33

D. 37

E. 39

12. What is the strpos() function used for?


A. Find the last character of a string

B. Both b and c

C. Search for character within a string

D. Locate position of a string’s first character

13. Which of the following differences are valid between PHP 4 and PHP 5?
A. Built-in native support for SQLite

B. Both a and c

C. improved MySQL support

D. Support for inheritance

14. Can we use include (”test.php”) two times in a PHP page “test1.PHP”?
A. Yes

B. No

15. What is the difference between GET and POST method?


A. GET displays the form values entered in the URL of the address bar where as POST does not.

B. POST displays the form values entered in the URL of the address bar where as GET does not.

C. There is no difference
16. ____________ function in PHP Returns a list of response headers sent (or ready to send)
A. header()

B. headers_list()

C. header_sent()

D. header_send()

17. What is array_keys() used for?


A. Compares array keys, and returns the matches

B. Checks if the specified key exists in the array

C. Returns all the keys of an array

D. Both b and c above

18. How do I create PHP arrays in a HTML <form>?


A. < input name= MyArray[]/>

B. < input ="MyArray[]" />

C. < input name="MyArray[]" />

D. < input MyArray[] />

19. What is the difference between echo and print?


A. They both behave the same.

B. Print can take multiple parameters where as echo cannot

C. Echo can take multiple parameters where as print cannot

D. Print is a function where as echo is not.

20. What is the default size of a file set in upload_max_filesize ?


A. 1 MB

B. 2 MB

C. 2.5 MB

D. 3 MB
21. What is Joomla in PHP?
A. Set of library enriched with fucntions

B. An open source CMS

C. Framework for designing dynamic pages

D. framework and distribution system for reusable PHP components


22. What is the default execution time set in set_time_limit()?
A. 20 secs

B. 30 secs

C. 40 secs

D. 35 secs

23. Is strstr and strchr aliases?


A. Yes

B. No

24. Can I generate DLL files from PHP scripts like i can in Perl ?
A. No

B. yes

25. In which variable is the users IP address stored?


A. $DOMAIN

B. $GLOBALS

C. $_ENV

D. $REMOTE_ADDR

26. Can I run several versions of PHP at the same time?


A. Yes

B. No

27. Which function is used to Strip whitespace (or other characters) from the beginning and end of
a string?
A. trim_str

B. strip_str

C. strip

D. trim
28. What is PHP heredoc used for?
A. allows creating single line of string without using quotations

B. allows creating multiple lines of string without using quotations

C. allows creating multiple lines of string with quotations

D. allows creating single lines of string with using quotations

29. Can echo in php accept more than 1 parameter?


A. Yes

B. No

30. What is the purpose of $_SESSION[]?


A. Used to register a global variable

B. Used to initialize a session.

C. Used to store variables of the current session

D. none of the above

Вам также может понравиться