Write a program that prints numbers from 1 to 100. For multiples of 3, print "Fizz" instead of the number.
For multiples of 5, print "Buzz."
For numbers that are multiples of both 3 and 5, print "FizzBuzz."
Puzzle Quiz
Quiz
•
Computers
•
University
•
Hard
raja rajeswari
FREE Resource
10 questions
Show all answers
1.
OPEN ENDED QUESTION
30 sec • 1 pt
Write a program that prints numbers from 1 to 100. For multiples of 3, print "Fizz" instead of the number.
For multiples of 5, print "Buzz."
For numbers that are multiples of both 3 and 5, print "FizzBuzz."
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a function to reverse a given string.
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a function to find the sum of all even numbers in a given list.
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a function to check if a given string is a palindrome (reads the same forward and backward).
Evaluate responses using AI:
OFF
5.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a function to find the second largest number in a list.
Evaluate responses using AI:
OFF
6.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a function to count the number of vowels in a given string.
Evaluate responses using AI:
OFF
7.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a function to calculate the factorial of a given number.
Evaluate responses using AI:
OFF
10 questions
Weekly Contest #10 - TechXNinjas
Quiz
•
University
10 questions
Microsoft Excel (Range)
Quiz
•
University
14 questions
Motherboard
Quiz
•
University
15 questions
HCI 584 Python quiz
Quiz
•
University
10 questions
TIU Quiz-9
Quiz
•
University
11 questions
Variables in Scratch
Quiz
•
2nd Grade - University
15 questions
numerical analysis mid test
Quiz
•
University
10 questions
Understanding Pseudocode Basics
Quiz
•
6th Grade - University
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
12 questions
Multiplying Fractions
Quiz
•
6th Grade
30 questions
Biology Regents Review #1
Quiz
•
9th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
16 questions
Chapter 8 - Getting Along with your Supervisor
Quiz
•
3rd Grade - Professio...
6 questions
Railroad Operations and Classifications Quiz
Quiz
•
University
71 questions
Logos
Quiz
•
3rd Grade - University
8 questions
Mali - Geography
Quiz
•
University