NEW
Font size
WorksheetsCLASS 8 CODING
Total questions: 10
Worksheet time: 5mins
What is the purpose of the <img> tag in HTML?
To create a hyperlink
To embed images
To define a list
To format text
What does the acronym 'API' stand for in coding?
Advanced Programming Interface
Application Programming Interface
Automated Program Integration
Assembly Programming Interface
What is the purpose of the 'else' statement in an 'if-else' construct?
To initialize a variable
To create a loop
To execute code when the condition is false
To print output
What is the purpose of the range() function in Python?
To generate a sequence of numbers
To check if a variable is within a range
To calculate the average of a list
To define a range of characters in a string
What does the // operator do in Python?
Exponential
Floordivision
Modulus
Addition
Which datatype is used for storing a sequence of characters in Python?
int
float
str
list
Which of the following is used to get user input in Python?
get()
input()
read()
user()
What is the correct way to write a comment in Python?
//This is a comment
/*This is a comment*/
#This is a comment
--This is a comment
What does CSS stand for?
Computer Style Sheets
Creative Style Sheets
Cascading Style Sheets
Colorful Style Sheets
How can you include external CSS in an HTML document?
Using the <STYLE> tag
Using the <CSS> tag
Using the <LINK> tag
Using the <EXTERNAL> tag
