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 "apple".upper()?

2 / 50

How do you get the length of a list?

3 / 50

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

4 / 50

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

5 / 50

What is the output of not(True)?

6 / 50

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

7 / 50

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

8 / 50

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

9 / 50

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

10 / 50

What is the result of "apple".replace("a", "o")?

11 / 50

How do you get the keys of a dictionary?

12 / 50

What will range(5) produce?

13 / 50

What is the result of round(2.5)?

14 / 50

What does isinstance(x, int) check?

15 / 50

How do you remove duplicates from a list?

16 / 50

How do you start a function with optional arguments?

17 / 50

What is the result of bin(10)?

18 / 50

How do you get the length of a dictionary?

19 / 50

How do you get the absolute value of a number?

20 / 50

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

21 / 50

Which data structure does set() create?

22 / 50

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

23 / 50

What is the result of 3 < 2 and 2 < 4?

24 / 50

How do you add an element to a list?

25 / 50

How do you check the type of a variable?

26 / 50

What is the result of not True?

27 / 50

How do you check if a string contains only numbers?

28 / 50

What is the result of "Python" * 2?

29 / 50

What is the correct file extension for Python files?

30 / 50

How do you call a function my_function in Python?

31 / 50

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

32 / 50

How do you remove the last item from a list?

33 / 50

What is the result of range(3)?

34 / 50

What is the output of 10 == 10?

35 / 50

How do you define a function in Python?

36 / 50

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

37 / 50

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

38 / 50

What is the output of print(3 == 3.0)?

39 / 50

How do you round 2.675 to two decimal places?

40 / 50

What does str(123) return?

41 / 50

How do you sort a dictionary by its keys?

42 / 50

How do you find the index of an element in a list?

43 / 50

How do you get the remainder of a division?

44 / 50

How do you raise a number to a power?

45 / 50

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

46 / 50

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

47 / 50

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

48 / 50

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

49 / 50

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

50 / 50

What is the output of [x for x in range(3)]?