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
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
How many types of access specifiers are provided in OOP (C++)?
Anonymous Quiz
46%
4
43%
3
9%
2
2%
1
🤯2
Which feature can be implemented using encapsulation?
Anonymous Quiz
27%
Polymorphism
29%
Overloading
16%
Inheritance
28%
Abstraction
What do we use to define a block of code in Python language?
Anonymous Quiz
10%
Key
26%
Brackets
55%
Indentation
9%
None of these
👍2
Which concept allows you to reuse the written code in C++?
Anonymous Quiz
63%
Inheritance
19%
Polymorphism
10%
Abstraction
9%
Encapsulation
Which of the following data structures can be used to implement queues?
Anonymous Quiz
21%
Stack
17%
Arrays
17%
LinkedList
45%
All of the Above
👍1
How many bytes does "int = D" use?
Anonymous Quiz
11%
0
16%
1
68%
2 or 4
4%
10
👍3
Which keyword is used to prevent any changes in the variable within a C program?
Anonymous Quiz
22%
immutable
17%
mutable
51%
const
10%
volatile
👍1