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;
}
BRAIN BUSTERS (ROUND2)
Quiz
•
Education
•
University
•
Hard
Harshitha Balivada
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
what is the average Time Complexity of binary search using recursion?
O(nlogn)
O(logn)
O(n)
O(n^2)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which one of the following is not the application of the stack data structure
String reversal
Recursion
Backtracking
Asynchronous data transfer
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a valid C variable name?
int number;
float rate;
int variable_count;
int $main;
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a function of the database?
Managing stored data
Manuplating data
Security for stored data
Analysing code
15 questions
Basics of C and DS
Quiz
•
University
20 questions
Algoritmos e Lógica de Programação
Quiz
•
University
15 questions
C# dolgozat
Quiz
•
11th Grade - University
20 questions
ANIMALS
Quiz
•
12th Grade - University
15 questions
LITERATURE REVIEW
Quiz
•
University
18 questions
SQL
Quiz
•
University
18 questions
Lógica de programación JAVA
Quiz
•
University
15 questions
MODULO 2_2 Cuestionario_1
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade