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

What is the result of 10 > 5 and 5 < 2?

3 / 50

Which keyword is used to import all contents of a module?

4 / 50

What does break do in a loop?

5 / 50

What is the purpose of the pass statement?

6 / 50

How do you start a comment in Python?

7 / 50

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

8 / 50

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

9 / 50

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

10 / 50

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

11 / 50

How do you remove the last item from a list?

12 / 50

How do you create a lambda function in Python?

13 / 50

How do you convert a string to lowercase?

14 / 50

What is the result of bool("")?

15 / 50

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

16 / 50

What is the result of "apple" * 2?

17 / 50

What is the result of int(5.9)?

18 / 50

How do you sort a dictionary by its keys?

19 / 50

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

20 / 50

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

21 / 50

What is the result of "Python" * 2?

22 / 50

What is the output of "Python".split("t")?

23 / 50

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

24 / 50

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

25 / 50

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

26 / 50

What is the result of 10 // 3?

27 / 50

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

28 / 50

How do you define a function in Python?

29 / 50

What does is compare in Python?

30 / 50

How do you get the ASCII value of a character?

31 / 50

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

32 / 50

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

33 / 50

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

34 / 50

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

35 / 50

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

36 / 50

Which data structure does set() create?

37 / 50

How do you create an empty dictionary?

38 / 50

Which keyword is used to check a condition in Python?

39 / 50

How do you create a set in Python?

40 / 50

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

41 / 50

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

42 / 50

How do you reverse a list in Python?

43 / 50

What is the output of type("123")?

44 / 50

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

45 / 50

What will len("Hello") return?

46 / 50

How do you declare a variable in Python?

47 / 50

How do you open a file for reading in Python?

48 / 50

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

49 / 50

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

50 / 50

What is the result of 10 != 5?