Python & AI Day 1

A colorful illustration of a computer with Python code on the screen, surrounded by symbols representing artificial intelligence such as gears, circuits, and lightbulbs.

Python & AI Quiz: Day 1

Welcome to the Python & AI Quiz! This quiz is designed to test your fundamental knowledge of Python programming and basic AI concepts. Whether you are just starting or looking to refresh your skills, this quiz is perfect for you.

In this quiz you will learn about:

  • Data types in Python
  • String manipulations
  • Working with lists
  • Understanding functions
11 Questions3 MinutesCreated by CodingWizard42
Enter your Name
1. What kind of data does the input() function return?
String
Int
Elements
Decimals
2. What does the int() function do?
Changes data to whole number
Changes data to string
Both of above
None of above
3. String is collection of characters enclosed within single/double quotes..........say true or false
True
False
4. Can strings contain numbers too....?
False
True
5. a = '40' , b = '10'......then the result of a + b will be....?
50
4010
1040
None
6. A password can contain......
Alphabets
Digits
Punctuations
All of the above
7. A list can contain.........
Strings
Digits
Lists
All of these
8. flowers = [ ' jasmine ' , ' rose ' , ' lotus ' ]..........then output of print(flowers[1]) will be..?
Rose
Jasmine
Lotus
None
9. append() & extend()....are both functions same......?
Yes
No
10. Which of the following random function is used for shuffling a list..?
Random.shuffle()
Random.change()
Random.alter()
Random.random()
{"name":"Python & AI Day 1", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Welcome to the Python & AI Quiz! This quiz is designed to test your fundamental knowledge of Python programming and basic AI concepts. Whether you are just starting or looking to refresh your skills, this quiz is perfect for you.In this quiz you will learn about:Data types in PythonString manipulationsWorking with listsUnderstanding functions","img":"https:/images/course7.png"}
Powered by: Quiz Maker