Back to dashboard

Reading mode

Unit 3: Programming Fundamentals

Correct answer is shown on each question. Use Next to read one by one.

Question 1 of 30 0% read

1. Which HTML tag is used to create a hyperlink?

A <a>
B <link>
C <href>
D <hyperlink>

2. What is the correct HTML for referring to an external script called 'script.js'?

A <script href='script.js'>
B <script name='script.js'>
C <script src='script.js'>
D <javascript src='script.js'>

3. Which tag is used to embed JavaScript code within an HTML file?

A <javascript>
B <js>
C <scripting>
D <script>

4. In CSS, which selector is used to style a single, unique element on a page?

A Class selector (.)
B Tag selector (e.g., p)
C ID selector (#)
D Universal selector (*)

5. Which technology helps fix errors in programs?

A Styling
B Debugging
C Formatting
D Compiling

6. The process of finding and fixing errors or bugs in a program's source code is called:

A Compiling
B Interpreting
C Executing
D Debugging

7. What is programming?

A Designing pictures
B Writing instructions for a computer
C Using the internet
D Typing documents

8. Which JavaScript statement is used for decision making?

A for
B while
C if
D switch

9. CSS stands for:

A Creative Style Sheets
B Cascading Style Sheets
C Computer Style Sheets
D Colorful Style Sheets

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

A Syntax Error
B Runtime Error
C Compile-time Error
D Logical Error

11. In CSS, which of the following defines a class selector?

A A selector starting with a hash (#)
B A selector starting with a period (.)
C An HTML tag name
D A selector starting with an asterisk (*)

12. Which symbol is used to end a JavaScript statement?

A :
B .
C ;
D ,

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

A Python
B PHP
C SQL
D JavaScript

14. How do you select an HTML element with the id 'header' in CSS?

A .header
B #header
C header
D *header

15. Which HTML tag is used to create a hyperlink to another web page?

A <a>
B <link>
C <h>
D <p>

16. Which CSS property is used to change background color?

A color
B background-color
C bgcolor
D style

17. Which JavaScript operator is used for addition?

A -
B *
C +
D /

18. What is the correct HTML tag for inserting a line break?

A <br>
B <break>
C <lb>
D <newline>

19. Which HTML tag is used to link an external CSS file to an HTML document?

A <script>
B <link>
C <style>
D <css>

20. Which HTML attribute is used to define inline styles in a single element?

A style
B class
C styles
D font

21. Which language is mainly used to create web pages?

A Python
B C++
C HTML
D Java

22. In CSS, which property is used to change the text color of an element?

A font-color
B color
C text-color
D font-style

23. Which part of a website controls design?

A HTML
B CSS
C JavaScript
D Server

24. Which HTML element is a container for other elements?

A <span>
B <div>
C <img>
D <br>

25. Which part of a website controls behavior?

A HTML
B CSS
C JavaScript
D Compiler

26. Which JavaScript data type stores true or false?

A Number
B String
C Boolean
D Object

27. HTML stands for:

A High Text Markup Language
B Hyper Text Markup Language
C Hyper Tool Mark Language
D Home Text Markup Language

28. Which HTML tag is used to define the most important heading on a webpage?

A <h1>
B <h6>
C <head>
D <p>

29. Which tag is used to display an image in HTML?

A <image>
B <img>
C <pic>
D <src>

30. Which part of a website controls structure?

A CSS
B JavaScript
C HTML
D Browser

You finished reading all questions

Try practice mode to check answers without scoring, or play for a scored attempt.