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 "Python"[::-1]?

2 / 50

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

3 / 50

How do you create a tuple in Python?

4 / 50

What is the result of 10 != 5?

5 / 50

How do you split a string into a list?

6 / 50

What is the output of 10 == 10?

7 / 50

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

8 / 50

How do you convert a string to an integer?

9 / 50

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

10 / 50

Which operator is used for equality comparison?

11 / 50

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

12 / 50

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

13 / 50

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

14 / 50

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

15 / 50

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

16 / 50

What is the result of round(2.5)?

17 / 50

What is the output of bool(None)?

18 / 50

How do you handle exceptions in Python?

19 / 50

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

20 / 50

How do you create a lambda function in Python?

21 / 50

How do you get the length of a list?

22 / 50

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

23 / 50

How do you get the length of a dictionary?

24 / 50

How do you round 2.675 to two decimal places?

25 / 50

How do you swap two variables in Python?

26 / 50

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

27 / 50

How do you handle exceptions in Python?

28 / 50

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

29 / 50

What is the result of float(10)?

30 / 50

How do you get the remainder of a division?

31 / 50

What is the result of 10 // 3?

32 / 50

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

33 / 50

How do you add an element to a list?

34 / 50

What is the result of bool("False")?

35 / 50

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

36 / 50

What is the result of bool("")?

37 / 50

What does str(123) return?

38 / 50

How do you call a function my_function in Python?

39 / 50

What is the correct file extension for Python files?

40 / 50

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

41 / 50

How do you define a function in Python?

42 / 50

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

43 / 50

How do you open a file in write mode?

44 / 50

How do you create a dictionary in Python?

45 / 50

What does isinstance(x, int) check?

46 / 50

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

47 / 50

What is the result of "Python" * 2?

48 / 50

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

49 / 50

How do you convert a list into a set?

50 / 50

What is the output of print(type(10))?