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 default value of end in a print() function?

2 / 50

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

3 / 50

What is the result of 10 // 3?

4 / 50

How do you sort a dictionary by its keys?

5 / 50

What is the result of max([1, 5, 3])?

6 / 50

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

7 / 50

How do you create an infinite loop in Python?

8 / 50

Which Python keyword is used to handle exceptions?

9 / 50

How do you access the value of a key in a dictionary?

10 / 50

What is the output of 10 / 3?

11 / 50

What is the result of round(2.5)?

12 / 50

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

13 / 50

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

14 / 50

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

15 / 50

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

16 / 50

How do you get the length of a list?

17 / 50

What does continue do in a loop?

18 / 50

What keyword is used to define a loop in Python?

19 / 50

What does is compare in Python?

20 / 50

How do you iterate over a range in steps of 2?

21 / 50

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

22 / 50

What is the output of 10 == 10?

23 / 50

Which operator is used for equality comparison?

24 / 50

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

25 / 50

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

26 / 50

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

27 / 50

How do you handle exceptions in Python?

28 / 50

What is the output of bool([])?

29 / 50

How do you add an element to a list?

30 / 50

How do you start a function with optional arguments?

31 / 50

How do you convert a list into a set?

32 / 50

How do you access an element by key in a dictionary?

33 / 50

What is the result of 3 > 5 or 5 > 2?

34 / 50

How do you call a function my_function in Python?

35 / 50

What does x += 1 mean?

36 / 50

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

37 / 50

What is the result of 10 != 5?

38 / 50

Which keyword is used to check for membership in a list?

39 / 50

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

40 / 50

What does type([]) return?

41 / 50

How do you check if a string contains only numbers?

42 / 50

How do you import a module in Python?

43 / 50

How do you join elements of a list into a string?

44 / 50

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

45 / 50

What is the output of not(True)?

46 / 50

What is the result of 3 > 1 and 4 > 5?

47 / 50

How do you raise a number to a power?

48 / 50

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

49 / 50

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

50 / 50

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