📝 CSE326 Unit-2 MCQ Test

⏱️
30:00

⚡ Each correct answer carries +1 mark and each wrong answer carries -0.25 negative marking.

Question 1

What does HTML stand for?

Question 2

Which CSS property is used to change the text color?

Question 3

What keyword is used to declare a variable in JavaScript?

Question 4

Which HTML tag is used to create a text input field in a form?

Question 5

In the CSS box model, which property defines the space between content and border?

Question 6

What is the purpose of the return statement in a JavaScript function?

Question 7

Which CSS feature is used to make a webpage responsive?

Question 8

How can you access the value of property age in a JavaScript object person?

Question 9

Which HTML5 element is used to define the main content of a document?

Question 10

Which CSS property is used to create a flexible container?

Question 11

What HTML tag is used to create a dropdown list?

Question 12

Which CSS selector selects all elements of a specific type?

Question 13

Which JavaScript event occurs when a user clicks an element?

Question 14

Which HTML tag is used to define a table row?

Question 15

Which CSS property controls the stacking order of elements?

Question 16

How do you add a new element at the end of an array in JavaScript?

Question 17

Which CSS property is used to set the width of an element?

Question 18

How do you change text of an element with id myElement using JavaScript?

Question 19

What is the purpose of the viewport meta tag?

Question 20

Which CSS property aligns items vertically in a flex container?

Question 21

What is the purpose of the catch method in a JavaScript Promise?

Question 22

Which HTML tag is used to set character encoding for a document?

Question 23

In CSS, which pseudo-class selects the first child element?

Question 24

What is the scope of a variable declared using let in JavaScript?

Question 25

Which CSS property specifies the duration of a transition?

Question 26

Which HTML tag is used to embed an audio file?

Question 27

In CSS Grid, which property defines column and row sizes?

Question 28

What is the purpose of let keyword in JavaScript ES6?

Question 29

Which HTML5 element is used for navigation links?

Question 30

Which CSS property specifies the animation name?

Question 31

How do you convert a JSON string into a JavaScript object?

Question 32

Which CSS selector has the highest specificity?

Question 33

What is a callback function in JavaScript?

Question 34

Which HTML tag defines the footer of a document?

Question 35

Which CSS property aligns items horizontally in a flex container?

Question 36

What is a closure in JavaScript?

Question 37

Which HTML tag is used to embed a video file?

Question 38

Which CSS property is used to scale an element?

Question 39

What does the this keyword refer to in JavaScript?

Question 40

Which CSS property hides overflow content?