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 len("Pythonn")?

2 / 50

What does int("10") return?

3 / 50

What is the result of range(3)?

4 / 50

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

5 / 50

What does x += 1 mean?

6 / 50

How do you create an empty dictionary?

7 / 50

How do you get the remainder of a division?

8 / 50

What is the result of bool("")?

9 / 50

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

10 / 50

How do you get the keys of a dictionary?

11 / 50

How do you declare a variable in Python?

12 / 50

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

13 / 50

How do you create a multi-line comment in Python?

14 / 50

Which keyword is used to check a condition in Python?

15 / 50

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

16 / 50

How do you get the length of a dictionary?

17 / 50

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

18 / 50

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

19 / 50

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

20 / 50

How do you open a file in write mode?

21 / 50

How do you handle exceptions in Python?

22 / 50

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

23 / 50

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

24 / 50

What is the result of [1, 2, 3] * 2?

25 / 50

What is the output of bool(None)?

26 / 50

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

27 / 50

What is the result of bin(10)?

28 / 50

How do you create a set in Python?

29 / 50

Which operator is used for equality comparison?

30 / 50

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

31 / 50

What is the output of 10 / 3?

32 / 50

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

33 / 50

How do you check the type of a variable in Python?

34 / 50

How do you add an element to a list?

35 / 50

What does type(10.5) return?

36 / 50

How do you get the length of a list?

37 / 50

How do you convert a list into a set?

38 / 50

What keyword is used to define a loop in Python?

39 / 50

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

40 / 50

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

41 / 50

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

42 / 50

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

43 / 50

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

44 / 50

How do you create a dictionary in Python?

45 / 50

What is the result of round(2.5)?

46 / 50

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

47 / 50

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

48 / 50

How do you get the absolute value of a number?

49 / 50

How do you sort a dictionary by its keys?

50 / 50

What does str(123) return?