Write a program to calculate the sum of all even numbers from 1 to 20.
Output: 110
Code Acceptance (C++ or Python)
Codify-Code Innovators
Quiz
•
Instructional Technology
•
9th - 12th Grade
•
Hard
Dua Zakir
FREE Resource
5 questions
Show all answers
1.
OPEN ENDED QUESTION
10 mins • 5 pts
Write a program to calculate the sum of all even numbers from 1 to 20.
Output: 110
Code Acceptance (C++ or Python)
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
10 mins • 5 pts
Create a class Student with attributes for name, age, and marks. Write a method to display the student’s details.
Input: John, 16, 85
Output: Name: John, Age: 16, Marks: 85
Code Acceptance: (C++ or Python)
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
10 mins • 5 pts
Write a Python or C++ program to sort an array of numbers.
Input: [5, 2, 9, 1]
Output: [1, 2, 5, 9]
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
10 mins • 5 pts
What is the output of the following code?
<!DOCTYPE html>
<html>
<body>
<button id="myButton">Click Me</button>
<script>
document.getElementById("myButton").addEventListener("click", function() {
alert("Button Clicked!");
});
</script>
</body>
</html>
An alert box displays “Button Clicked!” when the button is clicked.
Nothing happens when the button is clicked
An error occurs because the addEventListener is invalid
The alert box keeps appearing without clicking the button.
5.
MULTIPLE CHOICE QUESTION
10 mins • 5 pts
You are using the following API to fetch data:
fetch("https://api.example.com/data") .then((response) => response.json()) .then((data) => console.log(data)) .catch((error) => console.error("Error:", error));
What does the .json() method do?
Converts the JSON data to an HTML format.
Parses the response into a JavaScript object.
Sends a POST request to the server.
Encrypts the response for secure handling.
10 questions
Freecodecamp - lesson 1
Quiz
•
9th Grade
10 questions
HTML հիպերտեքստի նշագրման լեզու
Quiz
•
11th - 12th Grade
10 questions
Lenguaje HTML
Quiz
•
10th - 11th Grade
10 questions
Etiquetas Html 11AB
Quiz
•
11th Grade
10 questions
JavasCript
Quiz
•
1st Grade - University
10 questions
Quiz do Jhoninha
Quiz
•
9th - 12th Grade
10 questions
การพัฒนาเว็บไซต์
Quiz
•
10th Grade
10 questions
HTML
Quiz
•
10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University