Back to dashboard

Reading mode

Unit 3: Programming Fundamentals + Unit 4: Data and Analysis

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

Question 1 of 40 0% read

1. Which JavaScript construct is used to repeat a block of code a certain number of times?

A if-else statement
B for loop
C function
D switch statement

2. What is the first stage of the data science life cycle?

A Data visualization
B Data collection
C Model deployment
D Data cleaning

3. Which step helps stakeholders understand results easily?

A Data visualization
B Data collection
C Data cleaning
D Data storage

4. Which CSS property is used to align text?

A align
B text-align
C font-align
D position

5. Which of the following is a common way to visually represent data?

A Writing a long paragraph.
B Creating a bar chart.
C Recording an audio file.
D Sending a text message.

6. Which algorithm is best for large sorted data?

A Linear search
B Binary search
C Bubble sort
D Insertion sort

7. What is the main purpose of Data Visualization?

A To store data in a database.
B To make the computer run faster.
C To represent data graphically for easy understanding.
D To write complex algorithms.

8. In JavaScript, what is used to make decisions and execute different code based on a condition?

A A loop
B A function
C A variable
D An if-else statement

9. Which tool in a web browser helps developers see errors and messages from their JavaScript code?

A The address bar
B The console
C The settings menu
D The history tab

10. Which chart is most suitable for continuous data?

A Line chart
B Pie chart
C Bar chart
D Table

11. Which HTML attribute is used to provide additional information about an element?

A class
B id
C style
D title

12. In programming, a set of step-by-step instructions to solve a problem is called a/an:

A Variable
B Function
C Comment
D Algorithm

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

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

14. What is the main purpose of Data Visualization?

A To make data more complicated.
B To hide the important facts in data.
C To use as many colors as possible.
D To help understand trends and patterns easily.

15. What is an error in the code's grammar or spelling called?

A Runtime error
B Logical error
C Syntax error
D User error

16. Which algorithm compares each element with all others?

A Binary search
B Linear search
C Quick sort
D Merge sort

17. Which JavaScript statement is used for decision making?

A switch
B if
C else
D All of these

18. What is data science mainly concerned with?

A Writing computer games
B Extracting knowledge from data
C Repairing hardware
D Designing websites

19. In HTML5, which tag is used to define a footer for a document or a section?

A <bottom>
B <footer>
C <end>
D <section>

20. Which JavaScript loop runs at least once?

A for
B while
C do-while
D foreach

21. Which HTML tag is used to display an image on a webpage?

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

22. Which HTML element is used for the largest heading?

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

23. Which of the following is a source of data?

A Survey
B Printer
C Monitor
D Speaker

24. What is meant by data analysis?

A Collecting data
B Storing data
C Examining data to draw conclusions
D Deleting data

25. Which HTML tag is used to create a link to another web page?

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

26. Which visualization is best for showing frequency distribution?

A Histogram
B Pie chart
C Line chart
D Map

27. Which stage involves interpreting results?

A Data collection
B Data cleaning
C Data analysis
D Data storage

28. Which step converts raw data into useful information?

A Data cleaning
B Data analysis
C Data storage
D Data collection

29. Which of the following is a data visualization tool?

A Spreadsheet charts
B Compiler
C Antivirus
D Text editor

30. Which CSS property is used to add rounded corners to an element?

A border-style
B border-radius
C corner-style
D box-shadow

31. Which stage comes after data collection?

A Data cleaning
B Data visualization
C Deployment
D Decision making

32. Which visualization helps identify relationships between variables?

A Pie chart
B Bar chart
C Scatter plot
D Table

33. Which language is used to define the structure and content of a web page?

A CSS
B JavaScript
C HTML
D Python

34. Which JavaScript function displays a message box?

A prompt()
B confirm()
C alert()
D message()

35. Which JavaScript structure can store key-value pairs?

A Array
B Object
C Function
D Loop

36. What is the final stage of the data science life cycle where the results are shared with others?

A Data Acquisition
B Data Preparation
C Communication / Visualization
D Asking a question

37. Which HTML section contains metadata?

A <body>
B <meta>
C <head>
D <title>

38. Which testing method checks individual units of code?

A System testing
B Integration testing
C Unit testing
D Acceptance testing

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

A color
B bgcolor
C background-color
D background-style

40. Which CSS property controls the size of text?

A text-size
B font-weight
C font-size
D text-style

You finished reading all questions

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