NEW
Font size
WorksheetsBRAIN BUSTERS (ROUND2)
Total questions: 20
Worksheet time: 30mins
What is the output of the following code snippet?
#include <stdio.h>
int main() {
int a[] = {1, 2, 3, 4};
int sum = 0;
for(int i = 0; i < 4; i++) {
sum += a[i];
}
printf("%d", sum);
return 0;
}
10
20
15
12
what is the average Time Complexity of binary search using recursion?
O(nlogn)
O(logn)
O(n)
O(n^2)
Which one of the following is not the application of the stack data structure
String reversal
Recursion
Backtracking
Asynchronous data transfer
What will be the output of the following code snippet?
#include <stdio.h>
void solve() {
int first = 10, second = 20;
int third = first + second;
{
int third = second - first;
printf("%d ", third);
}
printf("%d", third);
}
int main() {
solve();
return 0;
}
10 30
30 10
10 20
20 10
Which of the following is known as a set of entities of the same type that share same properties , or attributes?
Relation set
Tuples
Entity set
Entity Relation Model
Which of the following is not a valid C variable name?
int number;
float rate;
int variable_count;
int $main;
Which of the following is not a function of the database?
Managing stored data
Manuplating data
Security for stored data
Analysing code
Which of the following methods can be used to search an element in a linked list ?
Iterative linear search
Iterative Binary search
Recursion Binary search
Normal binary search
what is the best case and worst case complexity of ordered linear search?
O(nlogn),O(logn)
O(logn),O(nlogn)
O(n),O(1)
O(1),O(n)
which data structure is used for implementing recusion?
Queue
Stack
Array
List
Which of the following is not the utility of DBMS?
i) Backup ii) Loading iii) Process Organization iv) File organization
i, ii, and iv only
i, ii and iii only
i, iii and iv only
All i, ii, iii, and iv
Procedural language among the following is __________
Domain relational calculus
Tuple relational calculus
Relational algebra
Query language
What will be the output of the following code snippet?
#include <stdio.h>
void solve() {
int a[] = {1, 2, 3, 4, 5};
int sum = 0;
for(int i = 0; i < 5; i++) {
if(i % 2 == 0) {
sum += *(a + i);
}
else {
sum -= *(a + i);
}
}
printf("%d", sum);
}
int main() {
solve();
return 0;
}
2
15
syntax Error
3
this extra information is usually maintained in the form of a ____ at the client
cookie
history
remainder
none
which data structure is needed to convert infix notation to postfix notation?
branch
tree
queue
stack
the prefix form of A-B/(C*D^E) is?
-/*^ACBDE
-ACBD*^DE
-A/B*C^DE
-A/BC*^DE
Which of the following is not an application of artificial intelligence?
computer vision
Natural Language Processing
Database management system
Digital Assistants
How does an AI agent interacts with its environment?
Using sensors and Percives
Using only sensors
using only percivers
None of the above
what will be the number of passes to sort the elements using insrtion sort?
14,12,16,6,3,10
6
5
7
1
which of the following devices provides the communication between a computer and outer world?
compact
i/o
drivers
storage
