You are on page 1of 7

Day 1:

### AI Basics

1. What is Artificial Intelligence?


- A) The study of computer systems that can mimic human intelligence
- B) A branch of computer science dealing with the replication of animal behavior in
machines
- C) Programming computers to play games only
- D) None of the above
- Answer: A

2. Which of the following is a primary area of AI research?


- A) Machine Learning
- B) Arithmetic
- C) Data Storage
- D) Cable Management
- Answer: A

3. What is Machine Learning?


- A) A technique for learning to play music
- B) A subset of AI that includes algorithms that allow computers to learn from data
- C) A computer's ability to physically move and adapt to its environment
- D) A methodology for increasing the speed of computer processors
- Answer: B

4. What is Natural Language Processing (NLP)?


- A) Processing natural resources for computer manufacturing
- B) A field focusing on computer understanding and interaction with human language
- C) The study of natural light patterns in computer graphics
- D) None of the above
- Answer: B
5. Which of the following is an example of AI application?
- A) Spreadsheet calculations
- B) Text editors
- C) Autonomous vehicles
- D) File compression
- Answer: C

6. What does 'Deep Learning' refer to?


- A) Intense studying methods for exams
- B) A branch of machine learning involving neural networks with many layers
- C) Deep sea data exploration
- D) Advanced computer sleep modes
- Answer: B

7. What is a neural network?


- A) A social network for AI researchers
- B) A computing approach modeled after the brain's network of neurons
- C) A new internet network protocol
- D) A cybersecurity threat
- Answer: B

8. What role does AI play in big data?


- A) It decreases the amount of data needed for analysis
- B) It has no role in big data
- C) It helps in analyzing and interpreting large volumes of data
- D) It makes data storage more challenging
- Answer: C

9. What is computer vision?


- A) The science of making computers visually impaired
- B) A branch of AI that interprets and understands the visual world
- C) A methodology for computer screen manufacturing
- D) A theory in computer science that deals with optical illusions
- Answer: B

10. Which of the following is a common method used in AI for decision-making?


- A) Guesswork
- B) Flipping a coin
- C) Neural Networks
- D) Asking for human help
- Answer: C

### Python Basics

11. What is Python?


- A) A type of snake
- B) A high-level programming language
- C) A new operating system
- D) A coffee brand
- Answer: B

12. Which of these data types is NOT supported by Python?


- A) List
- B) Array
- C) Dictionary
- D) Tuple
- Answer: B

13. What does the `len()` function do in Python?


- A) Changes the length of an object
- B) Deletes an object
- C) Returns the length of an object
- D) Finds the maximum value in an object
- Answer: C
14. How do you start a comment in Python?
- A) <!--
- B) #
- C) /
- D) ::
- Answer: B

15. Which of the following is correct syntax to output "Hello World" in Python?
- A) echo "Hello World"
- B) print("Hello World")
- C) console.log("Hello World")
- D) println("Hello World")
- Answer: B

16. How do you create a variable `x` to store the integer 5 in Python?
- A) int x = 5
- B) x = 5
- C) var x = 5
- D) int x == 5
- Answer: B

17. Which operator is used to check if two values are equal in Python?
- A) =
- B) ==
- C) ===
- D) !=
- Answer: B

18. What is the correct way to declare a function in Python?


- A) function myFunc():
- B) def myFunc():
- C) func myFunc() -> None:
- D) void myFunc():
- Answer: B

19. What data type is the object below in Python?


```python
{"name": "John", "age": 30}
```
- A) List
- B) Dictionary
- C) Array
- D) String
- Answer: B

20. How do you access the value of the first element of a list named `myList`?
- A) myList[0]
- B) myList[1]
- C) myList.first()
- D) myList(0)
- Answer: A

21. What keyword is used to create a class in Python?


- A) class
- B) struct
- C) object
- D) define
- Answer: A

22. How do you handle exceptions in Python?


- A) try-catch
- B) try-except
- C) try-finally
- D) error-handling
- Answer: B

23. Which of the following is a loop structure in Python?


- A) for
- B) foreach
- C) repeat-until
- D) do-while
- Answer: A

24. What is slicing used for in Python?


- A) To cut through data physically
- B) To remove elements from a list
- C) To select specific sections of a list or string
- D) To merge two lists together
- Answer: C

25. How do you concatenate two strings, `a` and `b`, in Python?
- A) a + b
- B) concat(a, b)
- C) a & b

- D) a.append(b)
- Answer: A

26. What keyword is used to check if an item is in a list or dictionary in Python?


- A) in
- B) exists
- C) contains
- D) has
- Answer: A
27. How do you convert the integer 123 to a string in Python?
- A) str(123)
- B) string(123)
- C) "123"
- D) convert("123")
- Answer: A

28. Which module is used in Python to create random numbers?


- A) random
- B) math
- C) sys
- D) os
- Answer: A

29. What does the `break` statement do in Python?


- A) Pauses the execution of the loop
- B) Exits the current loop
- C) Breaks the computer
- D) Skips the current iteration of the loop
- Answer: B

30. How do you define a block of code in Python?


- A) Using parentheses ()
- B) Using curly braces {}
- C) Using indentation
- D) Using the block keyword
- Answer: C

You might also like