CS202 Mid-Term MCQs file by Talha Sajid
CS202 Mid-Term MCQs file by Talha Sajid
Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 2 of 9
Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 3 of 9
a) <list>
b) <dl>
c) <ol>
d) <ul>
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">
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
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>
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>
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
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
Whatsapp 0328-4090195
Mid-Term CS202(Fundamentals of Front End Development) Page 8 of 9
b) 40
c) 50
d) NaN
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
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