Which type of loops not supported in python?
Anonymous Quiz
6%
While loop
6%
For loop
68%
Do while loop
20%
None of above
What will be the output of the following code snippet?
print(2**3 + (5 + 6)**(1 + 1))
print(2**3 + (5 + 6)**(1 + 1))
Anonymous Quiz
51%
129
8%
8
18%
121
23%
None of above
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))
print(type(5 / 2)) print(type(5 // 2))
Anonymous Quiz
46%
Float & int
22%
Int & float
22%
Float & float
10%
Int & int
☃1👍1
How is an array initialized in C language?
Anonymous Quiz
67%
int a[3] = {1, 2, 3};
12%
int a = {1, 2, 3};
14%
int a[] = new int[3]
7%
int a(3) = [1, 2, 3];
👍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
How are String represented in memory in C?
Anonymous Quiz
62%
An array of characters.
11%
The object of some class.
20%
Same as other primitive data types.
8%
LinkedList of characters.
🔥2
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
All keywords in C are in ____________🤔
Anonymous Quiz
73%
LowerCase letters
8%
UpperCase letters
12%
CamelCase letters
7%
None of the mentioned
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)
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))
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
Who invented OOP?
Anonymous Quiz
16%
Andrea Ferro
29%
Adele Goldberg
15%
Alan Kay
41%
Dennis Ritchie
Which is not a feature of OOP in general definitions?
Anonymous Quiz
18%
Efficient Code
15%
Code reusability
22%
Modularity
46%
Duplicate/Redundant data