Professional Documents
Culture Documents
Technical
What is output of below program? Ability
int main()
{
int i,j,k,count;
count=0;
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
count++;
}
}
printf("%d",count);
return 0;
}
25 CORRECT
10
50
In a structure
In an array
Table B
Id Name Age
----------------
15 Shreya 24
25 Hari 40 Technical
98 Rohit 20 Ability
99 Rohit 11
Table C
Id Phone Area
-----------------
10 2200 02
99 2100 01
Consider the above tables A, B and C. How many tuples does the result of the following SQL query contains?
SELECT A.id
FROM A
WHERE A.age > ALL (SELECT B.age
FROM B
WHERE B. name = "arun")
3 CORRECT
int main()
{
int i,j,count;
count=0;
for(i=0; i<5; i++);
{
for(j=0;j<5;j++);
{
count++;
}
}
printf("%d",count);
return 0;
}
54
55
1 CORRECT
Technical
Ability
Question No: 6 Multi Choice Type Question Report Error
Top-down
left-right
right -left
Consider the following transactions with data items P and Q initialized to zero:
A serializable schedule
Technical
Ability
00--10--20--30--40-- CORRECT
0--01--12--23--34--
00--01--02--03--04--
Compilation Error
int arr[10]
CORRECT
array{10}
array arr[10]
int arr
Simple graph
Multi graph
Regular graph
Articulation point
Isolated vertex
Technical
Ability
Sink CORRECT
Root vertex
int main()
{
int i;
for(i=0; i<5; i++);
{
printf("cppbuzz");
}
return 0;
}
Nothing is printed
Compilation Error
An index is clustered, if
Technical
1. Minimum number of fields in each node of a doubly linked list is Ability
____
3 CORRECT
A positive integer d is said to be a factor of another positive integer N if when N is divided by d, the remainder obtained is zero. For example,
for number 12, there are 6 factors 1, 2, 3, 4, 6, 12. Every positive integer k has at least two factors, 1 and the number k itself.Given two positive
integers N and k, write a program to print the kth largest factor of N.
Input format
The input is a comma-separated list of positive integer pairs (N, k)
Output format
The kth highest factor of N. If N does not have k factors, the output should be 1.
Code constraints
1<N<10000000000. 1<k<600. You can assume that N will have no prime factors which are larger than 13.
Sample testcases
Input 1 Output 1
12,3 4
Input 2 Output 2
30,9 1
Python (3.8)
Technical
Ability
Status: Partially correct Mark obtained: 3/10 Hints used: 0 Times compiled: 21
Times submitted: 5 Level: Easy Question type: Single File Programming
int main()
{
while(1)
{
printf("CppBuzz.com");
}
return 0;
}
1 time
Runtime Error
Compilation Error
Parameterized constructor
Default constructor
Friend constructor
CORRECT
Copy constructor
Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy
Question type: MCQ Single Correct
Technical
Directed graph Ability
Planar
Completely connected
Relation R has eight attributes ABCDEFGH. Fields of R contain only atomic values. F = {CH -> G, A -> BC, B -> CFH, E -> A, F -> EG} is a set of
functional dependencies (FDs) so that F+ is exactly the set of FDs that hold for R. How many candidate keys does the relation R have?
4 CORRECT
float
bool
CORRECT
double
int
Status: Correct Mark obtained: 1/1 Hints used: 0 Level: Easy
Question type: MCQ Single Correct
First 1 2 Last
Technical
Ability