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 delete a key-value pair in a dictionary?

3 / 50

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

4 / 50

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

5 / 50

What is the result of "hello".title()?

6 / 50

What does break do in a loop?

7 / 50

What is the default value of end in a print() function?

8 / 50

How do you add an element to a list?

9 / 50

How do you split a string into a list?

10 / 50

How do you check if a string starts with a specific character?

11 / 50

How do you remove the last item from a list?

12 / 50

What is the result of 10 // 3?

13 / 50

How do you write a multi-line string in Python?

14 / 50

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

15 / 50

How do you raise a number to a power?

16 / 50

What is the result of "Python".startswith("Py")?

17 / 50

What does is compare in Python?

18 / 50

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

19 / 50

How do you convert a string to an integer?

20 / 50

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

21 / 50

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

22 / 50

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

23 / 50

What is the correct file extension for Python files?

24 / 50

How do you sort a list in descending order?

25 / 50

What is the result of 5 >= 5?

26 / 50

What does sorted([3, 1, 2]) return?

27 / 50

How do you round 2.675 to two decimal places?

28 / 50

Which function is used to get input from the user?

29 / 50

What does int("10") return?

30 / 50

How do you define a function in Python?

31 / 50

What is the output of 2 * '3' in Python?

32 / 50

What is the output of bool(0)?

33 / 50

What is the output of [1, 2, 3][1]?

34 / 50

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

35 / 50

How do you convert a string to lowercase?

36 / 50

What is the result of "Python"[::-1]?

37 / 50

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

38 / 50

How do you get the remainder of a division?

39 / 50

How do you create an empty dictionary?

40 / 50

What is the output of 10 == 10?

41 / 50

What is the result of 10 // 3?

42 / 50

How do you round a number to two decimal places?

43 / 50

What is the output of bool([])?

44 / 50

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

45 / 50

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

46 / 50

What is the output of bool(None)?

47 / 50

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

48 / 50

What will range(5) produce?

49 / 50

What does type([]) return?

50 / 50

What is the default return value of a function in Python?