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 float(10)?

2 / 50

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

3 / 50

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

4 / 50

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

5 / 50

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

6 / 50

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

7 / 50

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

8 / 50

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

9 / 50

What is the purpose of the elif statement?

10 / 50

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

11 / 50

What is the result of bool("")?

12 / 50

How do you convert a list into a set?

13 / 50

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

14 / 50

How do you define a constant in Python?

15 / 50

How do you remove duplicates from a list?

16 / 50

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

17 / 50

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

18 / 50

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

19 / 50

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

20 / 50

How do you handle exceptions in Python?

21 / 50

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

22 / 50

How do you convert a string to lowercase?

23 / 50

How do you declare a variable in Python?

24 / 50

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

25 / 50

Which data structure does set() create?

26 / 50

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

27 / 50

What does x += 1 mean?

28 / 50

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

29 / 50

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

30 / 50

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

31 / 50

How do you create a tuple in Python?

32 / 50

How do you add an element to a list?

33 / 50

How do you get the length of a list?

34 / 50

What is the result of 10 // 3?

35 / 50

How do you call a function my_function in Python?

36 / 50

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

37 / 50

What is the result of abs(-10)?

38 / 50

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

39 / 50

What is the output of bool(0)?

40 / 50

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

41 / 50

How do you open a file for reading in Python?

42 / 50

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

43 / 50

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

44 / 50

How do you split a string into a list?

45 / 50

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

46 / 50

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

47 / 50

What will len("Hello") return?

48 / 50

What does is compare in Python?

49 / 50

Which operator is used to find the remainder of division?

50 / 50

What is the purpose of the pass statement?