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 output of bool([])?

2 / 50

What is the result of 10 != 5?

3 / 50

What is the output of print(type(10))?

4 / 50

What is the correct file extension for Python files?

5 / 50

What is the output of 10 / 3?

6 / 50

What is the output of bool(0)?

7 / 50

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

8 / 50

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

9 / 50

What is the output of "hello".count("l")?

10 / 50

How do you convert a list to a set in Python?

11 / 50

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

12 / 50

What is the purpose of the pass statement?

13 / 50

How do you split a string into a list?

14 / 50

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

15 / 50

What is the output of not(True)?

16 / 50

What is the output of min(10, 20, 5)?

17 / 50

How do you handle exceptions in Python?

18 / 50

What is the result of bool("")?

19 / 50

What is the output of bool(None)?

20 / 50

What is the result of float(10)?

21 / 50

How do you convert a list into a set?

22 / 50

What does int("10") return?

23 / 50

What is the result of bool("False")?

24 / 50

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

25 / 50

How do you define a function in Python?

26 / 50

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

27 / 50

What is the output of 10 == 10?

28 / 50

What does str(123) return?

29 / 50

How do you sort a dictionary by its keys?

30 / 50

How do you reverse a list in Python?

31 / 50

Which keyword is used to check a condition in Python?

32 / 50

What is the result of round(2.5)?

33 / 50

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

34 / 50

How do you iterate over dictionary keys?

35 / 50

How do you convert a string to lowercase?

36 / 50

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

37 / 50

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

38 / 50

What is the result of not True?

39 / 50

What is the output of list("hello")?

40 / 50

How do you get the length of a dictionary?

41 / 50

How do you get the absolute value of a number?

42 / 50

What is the result of list(range(3, 6))?

43 / 50

How do you raise a number to a power?

44 / 50

How do you create an infinite loop in Python?

45 / 50

What does isinstance("Python", str) return?

46 / 50

What is the output of "abc".capitalize()?

47 / 50

What is the result of 10 // 3?

48 / 50

How do you create a single-line string in Python?

49 / 50

How do you check the type of a variable?

50 / 50

What does enumerate([10, 20, 30]) return?