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 output of bool(0)?

2 / 50

What is the output of list("hello")?

3 / 50

How do you start a comment in Python?

4 / 50

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

5 / 50

How do you create a lambda function in Python?

6 / 50

How do you declare a variable in Python?

7 / 50

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

8 / 50

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

9 / 50

What does continue do in a loop?

10 / 50

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

11 / 50

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

12 / 50

What is the result of range(3)?

13 / 50

What is the result of not True?

14 / 50

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

15 / 50

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

16 / 50

How do you split a string into a list?

17 / 50

How do you iterate over a range in steps of 2?

18 / 50

How do you exit a program with a status code?

19 / 50

What does int("10") return?

20 / 50

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

21 / 50

What will len("Hello") return?

22 / 50

How do you create a shallow copy of a list?

23 / 50

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

24 / 50

How do you check the type of a variable?

25 / 50

Which Python keyword is used to handle exceptions?

26 / 50

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

27 / 50

How do you handle exceptions in Python?

28 / 50

How do you get the remainder of a division?

29 / 50

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

30 / 50

Which data type is used to store a sequence of characters in Python?

31 / 50

How do you get the absolute value of a number?

32 / 50

What does break do in a loop?

33 / 50

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

34 / 50

What is the result of round(2.5)?

35 / 50

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

36 / 50

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

37 / 50

How do you handle exceptions in Python?

38 / 50

What does break do in a loop?

39 / 50

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

40 / 50

What is the result of 3 ** 2 in Python?

41 / 50

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

42 / 50

What is the result of bin(10)?

43 / 50

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

44 / 50

How do you remove the last item from a list?

45 / 50

What is the result of 5 >= 5?

46 / 50

What is the result of "Python" * 2?

47 / 50

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

48 / 50

What is the output of bool([])?

49 / 50

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

50 / 50

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