Live Education Quiz
Guest practice Unit 3: Programming Fundamentals
All quizzes

Guest practice

Unit 3: Programming Fundamentals

Questions
25
Answered
0
Time left
--:--
Guest mode: this attempt shows an instant score but is not saved. Sign up or log in before playing to store results.
Quiz progress 0% complete
1

What is the main purpose of CSS?

2

Where in an HTML document is the correct place to refer to an external style sheet?

3

What does HTML stand for?

4

What does HTML stand for?

5

Which CSS property changes font size?

6

Which property is used in CSS to change the background color of an element?

7

Oliver is debugging his JavaScript code. He has a function that should return true if a number is positive, but it returns false for positive numbers. He suspects the condition is wrong. Which condition is correct for checking if a number is positive?

8

Sam is writing JavaScript. He wants to display the current date and time on the webpage. Which built-in JavaScript object should he use?

9

Rania is debugging her CSS. She applied a style to a class, but it is not showing up on the webpage. She checks and finds another rule with higher specificity is overriding it. Which rule has higher specificity: an id selector or a class selector?

10

Leo is writing JavaScript. He needs to check if a user's age is 18 or older. He writes an if statement. Which condition should Leo use inside the parentheses?

11

Samir is designing a webpage. He wants to add a footer at the bottom with copyright information. Which HTML5 semantic tag should he use?

12

Which of the following is primarily a client-side scripting language used to make web pages interactive?

13

Lara is learning about CSS box model. She wants to know the space between the element and other elements. Which part of the box model is that?

14

Bilal is creating a CSS file for his website. He wants all paragraphs on the site to have a font size of 16px and color blue. He writes a CSS rule. Which CSS selector should Bilal use to apply these styles to all paragraph elements?

15

Aisha is creating a link that opens in a new tab. She knows she needs to add an attribute to the <a> tag. Which attribute should she use?

16

Wasiq is writing a CSS rule. He wants to apply a style to an element when the user clicks on it. Which pseudo-class should he use?

17

Which JavaScript operator is used for addition?

18

Which tag is used to display an image in HTML?

19

What type of error occurs when a program runs without crashing but does not produce the expected or correct result?

20

Which part of a website controls design?

21

Yusuf is creating a website. He wants to define a style that applies to all paragraphs with class 'highlight'. Which CSS selector should he use?

22

Carlos is styling a webpage. He wants to give a div a solid black border that is 2 pixels wide. Which CSS rule is correct?

23

Vera is creating a website. She wants to add a paragraph and then a horizontal line to separate sections. Which HTML tag should she use for the horizontal line?

24

Which part of a website controls behavior?

25

Waleed is writing CSS. He wants to make all text in a div italic. Which CSS property should he use?

Exit quiz