Coding Mcq’s
10.4K subscribers
3 photos
1 file
6 links
Do join for coding McQ’s‼️

All types of Programming Questions, Answer & Mcq's 🧠👨‍💻
Download Telegram
How is a code block indicated in Python?
Anonymous Quiz
12%
Brackets
79%
Indentation
4%
Key
4%
None of above
What will be the output of the following code snippet?

print(type(5 / 2)) print(type(5 // 2))
Anonymous Quiz
46%
Float & int
22%
Int & float
22%
Float & float
10%
Int & int
1👍1
👍3❤‍🔥1
Which of the following is a linear data structure?
Anonymous Quiz
72%
Array
7%
AVL Trees
16%
Binary Trees
5%
Graphs
How is the 2nd element in an array accessed based on pointer notation?
Anonymous Quiz
23%
*a + 2
63%
*(a + 2)
14%
*(*a + 2)
10
Which of the following is not the type of queue?
Anonymous Quiz
15%
Priority queue
33%
Single-ended queue
14%
Circular queue
38%
Ordinary queue
Which of the following data structures can be used to implement queues?
Anonymous Quiz
16%
Stack
18%
Array
18%
Linked List
48%
All of above
Which of the following data structures finds its use in recursion?
Anonymous Quiz
29%
Stack
27%
Array
31%
Linked list
14%
Queue
❤‍🔥3🔥2
Which of the following sorting algorithms provide the best time complexity in the worst-case scenario?
Anonymous Quiz
24%
Bubble Sort
29%
Quick sort
18%
Marge sort
30%
All of above
1👨‍💻1
Which of the following is a Divide and Conquer algorithm?
Anonymous Quiz
24%
Bubble Sort
17%
Heap Sort
18%
Selection Sort
41%
Merge Sort
Which of the following are applications of Topological Sort of a graph?
Anonymous Quiz
16%
Sentence Ordering.
17%
Course Scheduling.
21%
OS Deadlock Detection.
46%
All of the above.
👍2
What will be the output of the following Python program?

i = 0 while i < 5: print(i) i += 1 if i == 3: break else: print(0)
Anonymous Quiz
16%
error
33%
0 1 2 0
39%
0 1 2
13%
none of the mentioned
👍1
Forwarded from Coding Mcq’s
What will be the output of the following code snippet?

print(2**3 + (5 + 6)**(1 + 1))
Anonymous Quiz
51%
129
8%
8
18%
121
23%
None of above
Which feature of OOP reduces the use of nested classes?🤔
Anonymous Quiz
54%
Inheritance
17%
Binding
16%
Abstraction
12%
Encapsulation
👍1
Which is not a feature of OOP in general definitions?
Anonymous Quiz
18%
Efficient Code
15%
Code reusability
22%
Modularity
46%
Duplicate/Redundant data
How is the 3rd element in an array accessed based on pointer notation?🤔
Anonymous Quiz
15%
*a + 3
47%
*(a + 3)
19%
*(*a + 3)
19%
&(a + 3)
👍1
Which type of members can’t be accessed in derived classes of a base class?
Anonymous Quiz
22%
All can be accessed
22%
Protected
48%
Private
8%
Public
😁2❤‍🔥1🤗1