0% found this document useful (0 votes)
469 views

CS202 Mid-Term MCQs file by Talha Sajid

Uploaded by

Talha Sajid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
469 views

CS202 Mid-Term MCQs file by Talha Sajid

Uploaded by

Talha Sajid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Mid-Term CS202(Fundamentals of Front End Development) Page 1 of 9

Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 2 of 9

1.. How can you open a link in a new tab/browser window?


a) <a href="url" target="new">
b) <a href="url" new>
c) <a href="url" target="_blank">

2. n JavaScript, = sign is used to___________


a) Compare numbers
b) Increment values of variables
c) Decrement values of variables
d) Assign values to variables

3. What does HTML stand for?


a) Hyper Text Markup Language
b) Hyperlinks and Text Markup Language
c) Home Tool Markup Language

4. Which of these elements are all <table> elements?


a) <table><tr><tt>
b) <thead><body><tr>
c) <table><tr><td>
d) <table><head><tfoot>

5. How can you make a numbered list?

Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 3 of 9

a) <list>
b) <dl>
c) <ol>
d) <ul>

6. How can you make a bulleted list?


a) <ol>
b) <dl>
c) <ul>
d) <list>

7. What is the correct HTML for making a checkbox?


a) <input type="checkbox">
b) <check>
c) <input type="check">
d) <checkbox>

8. What is the correct HTML for making a text input field?


a) <textfield>
b) <input type="textfield">
c) <input type="text">
d) <textinput type="text">

9. What is the correct HTML for making a drop-down list?


a) <input type="list">
b) <list>
c) <select>
d) <input type="dropdown">

10. What is the correct HTML for making a text area?

Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 4 of 9

a) <input type="textarea">
b) <textarea>
c) <input type="textbox">

11. What is the correct HTML for inserting an image?


a) <img src="image.gif" alt="MyImage">
b) <image src="image.gif" alt="MyImage">
c) <img alt="MyImage">image.gif</img>
d) <img href="image.gif" alt="MyImage">

12. What is the correct HTML for inserting a background image?


a) <body style="background-image:url(background.gif)">
b) <body bg="background.gif">
c) <background img="background.gif">

13. Which HTML element defines the title of a document?


a) <head>
b) <title>
c) <meta>

14. Which HTML attribute specifies an alternate text for an image, if the image cannot be
displayed?
a) longdesc
b) title
c) src
d) alt

15. Which doctype is correct for HTML5?


a) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN"

Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 5 of 9

b) "http://www.w3.org/TR/html5/strict.dtd">
c) <!DOCTYPE html>
d) <!DOCTYPE HTML5>

16. In HTML, onblur and onfocus are:


a) Event attributes
b) HTML elements
c) Style attributes

17. The HTML global attribute, "contenteditable" is used to:


a) Specify whether the content of an element should be editable or not
b) Return the position of the first found occurrence of content inside a string
c) Specifies a context menu for an element. The menu appears when a user right-clicks on the
element
d) Update content from the server

18. What is the correct HTML element for playing audio files?
a) <audio>
b) <sound>
c) <mp3>

19. What is the correct HTML element for playing video files?
a) <movie>
b) <media>
c) <video>

20. Which HTML element is used to specify a footer for a document or section?
a) <section>
b) <bottom>

Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 6 of 9

c) <footer>

21. How can you open a link in a new tab/browser window?


a) <a href="url" target="new">
b) <a href="url" new>
c) <a href="url" target="_blank">

22. Which character is used to indicate an end tag?


a) ^
b) /
c) <
d) *

23. Choose the correct HTML element to define emphasized text


a) <i>
b) <em>
c) <italic>

24. Choose the correct HTML element to define important text


a) <strong>
b) <important>
c) <b>
d) <i>

25. Which of the following function is used to remove last element of the array?
a) Push()
b) Delete()
c) Pop()
d) Shift()

Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 7 of 9

26. In JavaScript, identifiers are _______, used to identify variables.


a) Unique number
b) Unique name
c) Strings
d) Numbers

27. Associative arrays are also called __________.


a) hashes
b) smashes.
c) slashes
d) Mashes

28. What value will be returned by the following JavaScript function? Math.min(2.2, 3.2,
4.2, -5.2);
a) 2.2
b) 3.2
c) 4.2
d) -5.2

29. What value will be returned by the following JavaScript function? Math.ceil(7.4);
a) 4
b) 7
c) 8
d) 7.4

30. What value will be returned by the following JavaScript function?


parseInt("30 40 50");
a) 30

Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 8 of 9

b) 40
c) 50
d) NaN

31. What is the default position of the elements in HTML.


a) Fixed
b) Static
c) Absolute
d) Relative

32. Which of the following value will JavaScript return if we calculate a number outside the
largest possible number?
a) Infinity
b) Invalid
c) Exceeded
d) Outofrange

33. What will be the value in variable x after executing following JavaScript code statement?
var x = "Hello" + 5;
a) It will give error.
b) 5 Hello
c) None of the above.
d) Hello5

34. Who is making the Web standards?


a) Microsoft
b) The World Wide Web Consortium
c) Google
d) Mozilla

Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 9 of 9

35. Choose the correct HTML element for the largest heading:
a) <h1>
b) <h6>
c) <head>
d) <heading>

36. What is the correct HTML element for inserting a line break?
a) <lb>
b) <br>
c) <break>

Best of Luck

For Free help, more Mid/Final term Files and for Exam Preparation :You Can
Join:

Whatsapp 0328-4090195

You might also like