Search Header Logo

G10 Programing Quiz 1

Authored by Akber Shah

Computers

10th Grade

Used 1+ times

G10 Programing Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

OPEN ENDED QUESTION

5 mins • 1 pt

  1. Critique the following code for handling user input and suggest a better approach:

num1 = input("Enter first number: ")

num2 = input("Enter second number: ")

result = num1 + num2

 print(result)

 

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

5 mins • 1 pt

  1. Write a Python program that takes a list of 5 numbers as input and outputs their average.

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

5 mins • 1 pt

  1. Design a Python program that asks the user to input a sentence and counts the number of vowels in the sentence.

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

5 mins • 1 pt

  1. Create a Python program using if-else statements to simulate a simple login system. The user should input a username and password, and the program should compare them with predefined values.

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

5 mins • 1 pt

  1. Write a Python program that accepts a string and outputs the reverse of the string using a loop.

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

5 mins • 1 pt

  1. Design a Python program that allows the user to input a list of items and then outputs the items in alphabetical order.

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

5 mins • 1 pt

  1. Write a program that generate store an array.

Evaluate responses using AI:

OFF

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?