ExamVeda
Login
Home
1
What is the output of the following code?
#include<stdio.h>
int recursive_sum(int n)
{
      if(n == 0)
        return 0;
      return n + recursive_sum(n - 1);
}
int main()
{
     int n = -4;
     int ans = recursive_sum(n);
     printf("%d",ans);
     return 0;
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
2
Consider the fleury's algorithm given below. Which of the following best suits the blank?
Graph must have 0 or 2 odd vertices  
if there are 0 odd vertices, start from any vertex 
if there are 2 odd vertices, start from any one of them 
follow any of the edge, always choose the ______________  
repeat for all the edges of the graph
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
3
Vertex coloring and chromatic number are one and the same.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
4
What is the output of the following code?
#include<stdio.h>
int recursive_sum(int n)
{
      if(n == 0)
        return 0;
      return n + recursive_sum(n - 1);
}
int main()
{
     int n = 0;
     int ans = recursive_sum(n);
     printf("%d",ans);
     return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
5
Which algorithm can be used to find an eulerian cycle in a graph?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
6
What is the time complexity of Heap's algorithm?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
7
What will be the plain text corresponding to cipher text "RSEADC" if with the number of columns are given to be 3 and route of reading is down the columns?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
8
What will be the encrypted text corresponding to plain text "EXAMPLE" using columnar transposition cipher with the keyword as "INDIA"?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
9
What will be the slope of the line given by 10x + 5y + 8=0?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
10
How many partitions will be formed for the integer 3?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board