AI Internship Quiz Leave a Comment / By studentseoasis.org / June 13, 2026 Welcome to your AI Internship Quiz Name Assignment Link Q1. Which function is used to take input from the user? A. print() B. input() C. int() D. output() None Q2. Which statement is used to make decisions in Python? A. loop B. if-else C. function D. print None Q3. Which operator is used to compare two values? A. = B. == C. + D. % None Q4. Which loop is commonly used when the number of repetitions is known? A. while B. do-while C. for D. if None Q5. What is the output of this code? for i in range(3):   print(i) A. 1 2 3 B. 0 1 2 C. 0 1 2 3 D. 1 2 None Q6. Which keyword is used to define a function? A. function B. create C. def D. fun None Q7. What does a function help us do? A. Repeat code B. Reuse code C. Delete code D. Print code None Q8. What is the output of this code? print("Python") A. "Python" B. Python C. Error D. None None Q9. Which statement is correct? A. Every if must have an else B. A function can be called many times C. for loop cannot use range() D. input() returns an integer by default None Q10. What will this function return? def add(a, b):   return a + b A. Nothing B. Sum of a and b C. Error D. Only a None Section B Practical Questions None Q11. Find the Bug (If-Else) age = 18if age = 18:    print("Eligible")and rewrite it. Q12. Find the Bug (Loop) for i in range(1,6)   print(i) Q13. Write a Program (If-Else) Write a Python program to check whether a customer is eligible for a discount.Condition:• If the bill amount is 5000 or more, print "Discount Applied"• Otherwise, print "No Discount" Q14. Write a Program (Loop) Write a Python program using a for loop to print:Welcome Intern5 times. Q15. Write a Function Write a function named greet() that prints:Welcome to Python InternshipThen call the function. 1 out of 16 Time's up