G10 Programing Quiz 1

G10 Programing Quiz 1

10th Grade

10 Qs

quiz-placeholder

Similar activities

Python L1 Quiz 8: Designing Programs

Python L1 Quiz 8: Designing Programs

1st - 12th Grade

10 Qs

Python

Python

5th - 10th Grade

10 Qs

Python Quiz

Python Quiz

9th - 12th Grade

15 Qs

Python

Python

7th - 12th Grade

15 Qs

Programming python review

Programming python review

9th - 12th Grade

15 Qs

Quiz - Algoritma Dasar

Quiz - Algoritma Dasar

10th Grade

10 Qs

KS3 Year 9 Python Quiz 02

KS3 Year 9 Python Quiz 02

10th Grade

8 Qs

Python - Abstractions, Comments, Data Types, Variables

Python - Abstractions, Comments, Data Types, Variables

9th - 12th Grade

12 Qs

G10 Programing Quiz 1

G10 Programing Quiz 1

Assessment

Quiz

Computers

10th Grade

Easy

Created by

Akber Shah

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?