Quiz-summary
0 of 45 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
Information
Dear Candidate,
Please Read the Instructions Carefully!
- Make sure you have a reliable internet connection throughout the test.
- You can not pause the test anytime in the middle. So, make your time to solve the complete test.
- There are 45 questions in the test.
- These 45 questions are selected randomly from a large set of questions pool.
- Total time for the test is 25 minutes.
- After 25 minutes, a quiz will halt and you will be redirected to the result page.
- There is no negative marking for this test.
- Don’t close the browser window before submitting the test.
- Don’t trigger any other extra activities while solving questions.
- Time will be streaming on the top. So keep watch on it.
Good Luck!
You must specify a text. |
|
You must specify an email address. |
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 45 questions answered correctly
Your time:
Time has elapsed
You have scored 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
-
, Here is the result of your quiz.
If you have any feedback, please write an email to us at [email protected].
Keep Practicing!
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- Answered
- Review
-
Question 1 of 45
1. Question
What is the output of the following Python program?
def myfunc(a):
a = a + 3
a = a * 3
return aprint myfunc(3)
-
Question 2 of 45
2. Question
Which of these is not a core data type in Python Computer language?
-
Question 3 of 45
3. Question
Which of the following is a Python tuple?
-
Question 4 of 45
4. Question
Bob executes following Python program. What is the output?
>> print(‘abcefd’.replace(‘cd’, ’12’))
-
Question 5 of 45
5. Question
Which function displays a message on the screen in Python?
-
Question 6 of 45
6. Question
Which one of the following is a valid Python if statement?
-
Question 7 of 45
7. Question
Which Of The Following Keywords Mark The Beginning Of The method/function Definition?
-
Question 8 of 45
8. Question
Suppose (1, 2, 4, 3) is a tuple, which of the following is incorrect?
-
Question 9 of 45
9. Question
How can we define a function in Python?
-
Question 10 of 45
10. Question
How to access list elements from the list myList?
-
Question 11 of 45
11. Question
What is the output when following Python statement is executed?
>> “st”+”ack”
-
Question 12 of 45
12. Question
What is the maximum possible length of an identifier in Python?
-
Question 13 of 45
13. Question
What arithmetic operators cannot be used with Python strings?
-
Question 14 of 45
14. Question
Which is not a valid Python loop?
-
Question 15 of 45
15. Question
What is the output of the following Python program?
>> print 0.26 + 0.32 == 0.58
-
Question 16 of 45
16. Question
>> print(r”\nhello”)
The output of Python code is…
-
Question 17 of 45
17. Question
Which of the function among will return 3 on the set mySet = {5, 6, 3, 4} in Python?
-
Question 18 of 45
18. Question
Suppose you run the following Python code:
n = [[9, 8, 7], [6, 5, 4], [3, 2, 1]]
print(n[2])What gets printed?
-
Question 19 of 45
19. Question
To add a new element to a Python list, we use which command?
-
Question 20 of 45
20. Question
What is the answer of this Python expression?
>>> 22 % 3
-
Question 21 of 45
21. Question
Which of the following is a valid way to start a function in Python?
-
Question 22 of 45
22. Question
What is the output of the following Python program?
>> print “Hello World”[::-1]
-
Question 23 of 45
23. Question
How would you cast the string variable “strMsg” that is equal to “7” into the integer 7?
-
Question 24 of 45
24. Question
Which is the special symbol used to add comments in python programming code?
-
Question 25 of 45
25. Question
Which of these is not a Python datatype?
-
Question 26 of 45
26. Question
In Python, An object can contain:
-
Question 27 of 45
27. Question
Which of the following is a valid for loop in Python?
-
Question 28 of 45
28. Question
How do we get user data command line in Python?
-
Question 29 of 45
29. Question
Suppose list myList is [3, 4, 5, 20, 5, 25, 1, 3], what is myList.count(5)?
-
Question 30 of 45
30. Question
Given a string s = “CSEstack”, which of the following code is incorrect?
-
Question 31 of 45
31. Question
What keyword would you use to add an alternative condition to an if statement?
-
Question 32 of 45
32. Question
How can you include a module in your Python program?
-
Question 33 of 45
33. Question
What is the output when following Python code is executed?
>>> names = [‘Amir’, ‘Bear’, ‘Charlton’, ‘Daman’]
>>> print(names[-1][-1]) -
Question 34 of 45
34. Question
What will be the output after running below Python code?
>> t = (3, 6)
>> 2 * t -
Question 35 of 45
35. Question
How do you create a variable “a” that is equal to 2 in Python?
-
Question 36 of 45
36. Question
What is the output when the following statement is executed in Python interpreter?
>> print(‘CSE’ ‘stack’)
-
Question 37 of 45
37. Question
Suppose list myList is [3, 4, 5, 20, 5], what is myList.index(5) in Python?
-
Question 38 of 45
38. Question
After execution, what is the output of the following Python program?
i = 0
while i < 3: print i i += 1 else: print 0 -
Question 39 of 45
39. Question
Suppose you have the following datasets in Python:
x = [‘C’, ‘Java’, ‘Python’]
y = [11, 12, 43, 55, 82, 133]
z = [(2, 1), (5, 4), (19, 9), (95, 16)]In order, what types of data are these?
-
Question 40 of 45
40. Question
How can we add two strings together in Python?
(Identifiers s and s2 are two strings in Python.)
-
Question 41 of 45
41. Question
What is the output for following Python line of code?
‘CSEstack’ [-3]?
-
Question 42 of 45
42. Question
Does Python have support for random numbers?
-
Question 43 of 45
43. Question
Which of the following is a valid way to start a while loop in Python?
-
Question 44 of 45
44. Question
Which of the following is correct about Python Programming?
-
Question 45 of 45
45. Question
In Python, what is the data type of the below object?
>> L = [1, 23, ‘hello’, 1]