Coding

Pyhton Coding Test

0%

Time Limit 10 minutes

Maximum Allowed Time Is over

Your Paper Successfully Sent.


coding

Python

1 / 50

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

2 / 50

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

3 / 50

What is the result of "Python".startswith("Py")?

4 / 50

How do you sort a list in descending order?

5 / 50

What is the purpose of the return keyword?

6 / 50

What is the result of range(3)?

7 / 50

Which method is used to get a value from a dictionary by key?

8 / 50

How do you declare a variable in Python?

9 / 50

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

10 / 50

How do you start a comment in Python?

11 / 50

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

12 / 50

How do you create a lambda function in Python?

13 / 50

How do you get the first character of a string?

14 / 50

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

15 / 50

What is the result of "Python" * 2?

16 / 50

How do you check if a string contains only numbers?

17 / 50

How do you open a file in write mode?

18 / 50

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

19 / 50

What does continue do in a loop?

20 / 50

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

21 / 50

How do you swap two variables in Python?

22 / 50

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

23 / 50

What is a dictionary in Python?

24 / 50

How do you exit a program with a status code?

25 / 50

How do you get the keys of a dictionary?

26 / 50

What is the result of bin(10)?

27 / 50

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

28 / 50

How do you convert a string to an integer?

29 / 50

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

30 / 50

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

31 / 50

How do you add an element to a list?

32 / 50

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

33 / 50

What is the result of abs(-10)?

34 / 50

What is the result of "hello".title()?

35 / 50

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

36 / 50

How do you convert a list into a set?

37 / 50

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

38 / 50

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

39 / 50

What does is compare in Python?

40 / 50

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

41 / 50

How do you round a number to two decimal places?

42 / 50

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

43 / 50

How do you create a shallow copy of a list?

44 / 50

What is the output of bool(None)?

45 / 50

How do you define a function in Python?

46 / 50

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

47 / 50

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

48 / 50

How do you iterate over dictionary keys?

49 / 50

What is the result of 10 // 3?

50 / 50

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