Coding

Pyhton Coding Test

0%

Time Limit 10 minutes

Maximum Allowed Time Is over

Your Paper Successfully Sent.


coding

Python

1 / 50

What is the result of 3 ** 2 in Python?

2 / 50

What is the keyword used to define a class in Python?

3 / 50

What is the output of 10 / 3?

4 / 50

How do you iterate over dictionary keys?

5 / 50

What is the output of "Hello" + "World"?

6 / 50

What does x += 1 mean?

7 / 50

What does type(10.5) return?

8 / 50

What is the output of bool(None)?

9 / 50

What is the result of 10 != 5?

10 / 50

Which data type is used to store a sequence of characters in Python?

11 / 50

Which method adds an element to the end of a list?

12 / 50

What is the result of 5 >= 5?

13 / 50

How do you sort a dictionary by its keys?

14 / 50

How do you create a lambda function in Python?

15 / 50

What will len("Hello") return?

16 / 50

What is the output of len([1, 2, 3, 4])?

17 / 50

What is the result of min([3, 1, 2])?

18 / 50

Which Python keyword is used to handle exceptions?

19 / 50

What does continue do in a loop?

20 / 50

How do you get the first character of a string?

21 / 50

What is the result of [1, 2, 3] + [4, 5]?

22 / 50

Which operator is used to find the remainder of division?

23 / 50

What is the result of "apple".find("z")?

24 / 50

How do you remove whitespace from the beginning and end of a string?

25 / 50

How do you get the remainder of a division?

26 / 50

What is the result of abs(-10)?

27 / 50

What does break do in a loop?

28 / 50

What is the result of bin(10)?

29 / 50

What is the result of range(3)?

30 / 50

How do you call a function my_function in Python?

31 / 50

What does the pop() method do in a list?

32 / 50

How do you create a multi-line comment in Python?

33 / 50

How do you split a string into a list?

34 / 50

How do you delete a key-value pair in a dictionary?

35 / 50

What is the correct way to create a list in Python?

36 / 50

How do you check if a key exists in a dictionary?

37 / 50

What is the result of len("Python")?

38 / 50

How do you start a comment in Python?

39 / 50

What does str(123) return?

40 / 50

How do you reverse a list in Python?

41 / 50

How do you check if a key exists in a dictionary?

42 / 50

Which method is used to remove an item from a list?

43 / 50

What is the result of "apple".upper()?

44 / 50

What is the output of print(2 ** 3)?

45 / 50

What is the result of 5 * 2 == 10?

46 / 50

What is the output of len((1, 2, 3))?

47 / 50

What is the result of 10 // 3?

48 / 50

What is the output of bool(0)?

49 / 50

Which keyword is used to check a condition in Python?

50 / 50

What is the result of "Python".find("o")?