0% found this document useful (0 votes)
47 views7 pages

HCI Lab MCQ Questions

Uploaded by

Mirna Attallah
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)
47 views7 pages

HCI Lab MCQ Questions

Uploaded by

Mirna Attallah
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/ 7

HCI Lab MCQ

Questions

1.Which of the following tag is used to embed css in html page?


a) <css>
b) <!DOCTYPE html>
c) <script>
d) <style>

2.Which of the following CSS framework is used to create a responsive design?


a) django
b) rails
c) larawell
d) bootstrap

3.How to insert an image in HTML?


a. <img href = "photo.jpg" />
b. <img scr = "photo.jpg" />
c. <img link = "photo.jpg"
/>
d. <img src = "photo.jpg"
/>

4.Which tag is used to create a numbered list in HTML?


a. <ul>
b. <nl>
c. <li>
d. None of the above

5.Which of the following function defines a linear gradient as a CSS image?


a) gradient()
b) linear-gradient()
c) grayscale()
d) image()

6.What will be the output of the following CSS code snippet?


span {
border: 1px solid red;
outline: green dotted thick;
}
a) All span elements will have a green thick border and a red outline
b) All span elements will have a red border and a green dotted outline
c) All span elements will have a outer green dotted border and an inner red border
d) All span elements will have an outer red border and inner green dotted border
7.Which of the following CSS Property sets the stacking order of positioned elements?
a) y-index
b) z-index
c) x-index
d) all of the mentioned

8.what is the purpose of the <del> tag in HTML?


a. To highlight and mark specific text
b. To make text smaller in size
c. To indicate deleted or removed text
d. None of the above

9. Which of the following CSS property defines the space between cells in a table?
a) border-spacing
b) border-style
c) border
d) none of the mentioned

10. How do you apply a background image to an element in CSS?


A. image: url(‘background.jpg’);
B. background-image: url(‘background.jpg’);
C. img: url(‘background.jpg’);
D. image-source: url(‘background.jpg’);

11.The value for the "margin" property “auto ” is used to center an element
verticallywithin its parent container?
a)True b) False

12.Which of the following type of HTML tag is used to define an internal style sheet?
a) <script>
b) <link>
c) <class
>d)
<style>

13.Which of the following is the correct syntax to link an external style sheet in the HTML file?
a) <link rel=”stylesheet” src=”style.css” />
b) <style rel=”stylesheet” src=”style.css” />
c) <style rel=”stylesheet” link=”style.css”
/> d) <link rel=”stylesheet”
href=”style.css” />
14. Which of the following elements was introduced in HTML3 to support text alignment?
a) <div>
b) <center>
c) <align>
d) <justify>

15.how was the <form> element enhanced to support file uploads?


a) Adding the method="file"
b) Adding the enctype="multipart/form-data"
c) Adding the input type="file"
d) Adding the input type="upload"

16.Which CSS3 feature allows for the creation of complex animations?


A) @font-face
b) @media
c) @keyframes
d) @supports

17.What does the flex property do in CSS3?


a) Defines a flex container
b) Defines the ability of a flex item to grow or shrink
c) Defines the spacing between flex items
d) Defines the alignment of flex items

18.Which CSS3 property is used to control the opacity of an element?


a) visibility
b) opacity
c) transparency
d) filter

19.Which CSS3 property can be used to apply a 3D transformation to an element?


a) transform3d
b) perspective
c) 3d-transform
d) matrix3d
20.What is the correct syntax of doctype in HTML5?
a) </doctype html>
b) <doctype html>
c) <doctype html!>
d) <!doctype html>

21.Which of the following is used to read an HTML page and render it?
a) Web server
b) Web network
c) Web browser
d) Web matrix

22. In which part of the HTML metadata is contained?


a) head tag
b) title tag
c) html tag
d) body tag

23.Which of the following elements in HTML5 defines video or movie content?


a) <video>
b) <movie>
c) <audio>
d) <media>

24. Which element is used for or styling HTML5 layout?


a) CSS
b) jQuery
c) JavaScript
d) PHP

25. Which HTML element is used for abbreviation or acronym?


a) <abbr>
b) <blockquote>
c) <q>
d) <em>

26. Which HTML element is used for YouTube videos?


a) <samp>
b) <small>
c) <frame>
d) <iframe>

27.To Obligate the user to enter his information you have to use .............. .
a) obligated
b) no validate
c) required
d) get and post
28.which of the following tags doesn’t require a closing tag?
a. <br>
b. <hr>
c. Both a and b
d. None of the above

29. Which CSS property is used to set the margin on all four sides of an element simultaneously?
a. margan-all
b. margan
c. all-margan
d. None of the above

30. How can you apply opacity to only the background of an element, not affecting the text and other
content?
a. background-opacity: 0.5;
b. background-color: rgba(255, 0, 0, 0.5);
c. opacity: 0.5; background: no-opacity;
d. d) text-opacity: 0.5;

31.Which of the following is the correct syntax to make the background-color of all paragraph elements
toyellow?

a) p {background-color : yellow;}
b) p {background-color : #yellow;}
c) all {background-color : yellow;}
d) all p {background-color : #yellow;}

32.Which of the following syntax is correct in CSS to make each word of a sentence start with a capital letter?

a) text-style : capital;
b) transform : capitalize;
c) text-transform : capital;
d) text-transform :
capitalize;

33.The CSS property used to make the rounded borders, or rounded corners around an element is -

a) border-collapse
b) border-radius
c) border-spacing
d) None of the above
34.What is the correct syntax to write an HTML comment?
a) // Hello
b) # Hello
c) /* Hello */
d) <!--Hello->

35.CSS describes the

a) structure of a webpage
b) skeleton of a webpage
c) layout of the webpage
d) None of them

36.Which one is used for class selector in CSS?

a) .
b) $
c) #
d) *
37.p tag is a HTML tag for inline paragraph
true b) false

38. div p{ } , what does the following CSS selector select ?


a) All p elements
b) All div elements
c) All p elements inside div elements
d) All div elements inside p elements

39. What is the purpose of the opacity property in CSS?


a) It changes the transparency of an element.

b) It creates a blur effect on an element.

c) It adjusts the brightness of an element.

d) It sets the reflection of an element.

40.Which class provides a responsive fixed-width container in Bootstrap?


a) .container-fluid
b) .container
c) .container-fixed
d) .container-responsive
41.Which Bootstrap class is used to create a navigation bar?
a) .nav
b) .navbar
c) .navigation
d) .nav-bar

Which class would you use to create a button with the primary color scheme in Bootstrap?
a) .btn-main
b) .btn-primary
c) .btn-default
d) .btn-first

Bootstrap, how do you create a grid column that spans 6 out of 12 columns on medium devices?
a) .col-md-6
b) .col-sm-6
c) .col-lg-6
d) .col-xs-6

Which class is used to create a basic list group in Bootstrap?


a) .list-group
b) .group-list
c) .group-items
d) .list-items

You might also like