GRADE 7 - Final WS
GRADE 7 - Final WS
Name:
Page 1 of 7
7. In Python, what category do identifiers, keywords, and literals fall under? 1
a) Operators b) Delimiters c) Statements d) Tokens
8. What is the tag used to create a heading in HTML? 1
a) <h> b) <head>
c) <header> d) <h1> to <h6>
9. Consider the expression “3 + 2 * 4 / 2 - 1”. What is the correct result based on operator 1
precedence in python?
a) 9 b) 5 c) 6 d) 7
10. In QB64, what is the purpose of the exit command when used within a loop structure? 1
a) To skip the current iteration and move to the next one.
b) To terminate the entire program immediately.
c) To exit the loop prematurely, skipping the remaining iterations.
d) To increment the loop variable by a specified step.
The _____ keyword in QB64 is employed within a for next loop to determine the 1
12.
increment or decrement of the loop variable.
15. HTML attributes provide additional _________ about an element, such as its color, size, or 1
style.
16. Imagine you are creating a simple QB64 program for a traffic light simulation. What type 1
of statements should you use to achieve this?
17. Daniel wants to emphasize certain text on his webpage. Provide an example of how he can 1
use HTML tags to create elements that showcase emphasis or importance.
You are developing a new software application for a company, and one of the key 1
18. requirements is to ensure that the software can run seamlessly on various operating
systems, including Windows, macOS, and Linux. Which feature of python are we referring
to here?
Page 2 of 7
19. Jake's company has recently shifted to remote work, and he's struggling to choose the best 1
video conferencing tool for virtual meetings. Suggest two softwares he can use to achieve
this.
You've been assigned the responsibility of creating a web page featuring an image of a 1
panda named "Cute Panda." Unfortunately, despite using the provided HTML code, the
20. image fails to appear. Could you please pinpoint the mistake in the code and propose a
correction?
<img source = "panda.jpg" alt = "Cute Panda">
21. Emma is creating a simple webpage using HTML. Show how the basic structure of an 1
HTML document looks like?
22. Suppose you're designing a QB64 program to print even numbers from 2 to 10. Describe 1
how you would use the step variable in a for..next loop to achieve this. Provide a basic
code snippet.
23. Alex is a student who finds it challenging to engage in offline learning because of the 1
distance he must travel to attend classes. Share at least two advantages of e-learning that
could motivate Alex to consider online education as a convenient and effective alternative
to traditional classroom-based learning.
24. You are creating a website for a travel agency, and you want to display a list of popular 1
destinations using bullet points. However, you don’t like the default bullet style and you
want to change it to circles. How would you modify the following HTML code to achieve
this?
<ul>
<li>New York</li>
<li>Paris</li>
<li>Tokyo</li>
</ul>
25. Suppose you are considering Python for a project with intensive computational tasks 1
requiring high performance. Is choosing python a good choice, if not why?
29. % d) WYSIWYG 1
Page 3 of 7
30. Online Reservation e) Reminder 1
SECTION –B
33. Which attribute specifies the color of the link that has been clicked. 1
36. Write a QB64 program using For..Next..Loop to generate the following output. 2
10,20,30…… 100
37. Why do you think videoconferencing is a boon during the covid pandemic? 2
39. Solve the expression “10/2+3×4−2” using python operator precedence. Write a step-by- 2
step solution.
ANSWER KEY
SECTION-A
Choose the correct answer
1. An email address cannot contain:
o Answer: a) Space
Page 4 of 7
2. Symbol used to enclose an HTML tag:
o Answer: d) < >
3. In "[email protected]," what does "example.com" represent?
o Answer: c) The email service provider’s name
4. Correct way to add an image in HTML:
o Answer: <img src="image.jpg" alt="Image">
5. Starting sequence of <ol type = “A” start = “5” >:
o Answer: b) E
6. Purpose of if..then statement in QB64:
o Answer: c) To make decisions based on a condition
7. Category of identifiers, keywords, and literals in Python:
o Answer: d) Tokens
8. Tag used to create a heading in HTML:
o Answer: d) <h1> to <h6>
9. Result of 3 + 2 * 4 / 2 - 1 using Python operator precedence:
o Answer: c) 6
10. Purpose of exit command in a QB64 loop:
• Answer: c) To exit the loop prematurely, skipping the remaining iterations
Application-based questions
16. QB64 statements for a traffic light simulation:
• Answer: IF...THEN...ELSE and SLEEP statements
17. Emphasizing text in HTML:
• Answer: <strong>Important Text</strong> or <em>Emphasized Text</em>
18. Feature of Python that allows it to run on multiple OS:
• Answer: Cross-platform compatibility
19. Two video conferencing tools for Jake:
• Answer: Zoom, Microsoft Teams
20. Mistake in <img source = "panda.jpg" alt = "Cute Panda">:
• Correction: <img src="panda.jpg" alt="Cute Panda">
21. Basic structure of an HTML document:
<!DOCTYPE html>
<html>
Page 5 of 7
<head>
<title>My Webpage</title>
</head>
<body>
<h1>Welcome!</h1>
</body>
</html>
FOR i = 2 TO 10 STEP 2
PRINT i
NEXT i
23. Two advantages of e-learning:
• Answer:
1. Flexibility to learn from anywhere
2. Access to a variety of resources
24. Modifying bullet style in HTML:
<ul type= circle>
<li>New York</li>
<li>Paris</li>
<li>Tokyo</li>
</ul>
SECTION – B
One-word answers
1. Tag to specify text color in HTML: <font color="...">
2. QB64 loop that executes until condition is false: DO...WHILE
3. Attribute that specifies clicked link color: alink
4. Four tokens in Python: Identifiers, Keywords, Literals, Operators
Page 6 of 7
Short answer questions
1. Horizontal line half the width of the page: <hr width="50%">
2. QB64 program generating 10, 20, 30, ..., 100:
FOR i = 10 TO 100 STEP 10
PRINT i
NEXT i
7. Why videoconferencing was a boon during COVID-19?
o Answer: Enabled remote work and learning, reduced travel and physical contact.
8. Difference between container and empty tags:
o Container tags have both opening and closing tags (<p></p>).
o Empty tags do not require a closing tag (<br>, <img>).
9. Solve 10/2+3×4−2 using Python operator precedence:
10 / 2 + 3 * 4 - 2
= 5 + 12 - 2
= 15
Page 7 of 7