Search Header Logo

Codify: Code Pioneers

Authored by Codify undefined

Computers

9th - 12th Grade

Used 1+ times

Codify: Code Pioneers
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

OPEN ENDED QUESTION

10 mins • 5 pts

Write the HTML code to display a heading, a paragraph, and a list of your favorite hobbies.

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

10 mins • 5 pts

Design an algorithm to calculate the sum of numbers in a list.
Input: [1, 2, 3, 4]

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

10 mins • 5 pts

In a 2D game, a sprite moves up, down, left, or right based on the arrow keys pressed. Which logic best controls the sprite’s movement?

if (key === "ArrowUp") moveUp();

if (key === "ArrowDown") moveDown();

if (key === "ArrowLeft") moveLeft();

if (key === "ArrowRight") moveRight();

if (key === "Up") moveUp();

else if (key === "Down") moveDown(); else moveRandom();

for (let i = 0; i < keys.length; i++) { if (keys[i] === "ArrowUp") moveUp(); }

None

4.

MULTIPLE CHOICE QUESTION

10 mins • 5 pts

You have a database table Students with the following columns:

  • ID

  • Name

  • Grade

Which SQL query is used to retrieve the names of all students who scored above 80.

SELECT Name FROM Students WHERE Grade > 80;

SELECT Name, Grade FROM Students;

SELECT * FROM Students WHERE Grade >= 80;

DELETE FROM Students WHERE Grade > 80;

5.

MULTIPLE CHOICE QUESTION

10 mins • 5 pts

What will the following Python code output?

def greet(name, age=10): print(f"Hello {name}, you are {age} years old.") greet("Ali")

Hello Ali, you are 10 years old.

Hello Ali, you are unknown years old.

Hello Ali, you are None years old.

Error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?