CBSENET (UGC) Computer Science (PaperII & PaperIII): Questions 19  22 of 100
Get 1 year subscription: Access detailed explanations (illustrated with images and videos) to 100 questions. Access all new questions we will add tracking exampattern and syllabus changes. View Sample Explanation or View Features.
Rs. 150.00 or
Question number: 19
» Programming » Output Related Questions
Appeared in Year: 2015
Question
Consider the following program:
#include<stdio.h>
main()
{
int i, inp;
float x, term=1, sum=0;
scanf(“%d %f”,&inp, &x);
for(i=1;i<=inp;i++)
{
term=term*x/i;
sum=sum+term;
}
printf(“Result=%fn”,sum);
}
The program computes the sum of which of the following series?
Choices
Choice (4)  Response  

a.  x + x2/2 + x3/3 + x4/4 + … 

b.  x + x2/2! +x3/3! +x4/4! +… 

c.  1 + x2/2 + x3/3 + x4/4 + … 

d.  1 + x2/2! +x3/3! +x4/4! +… 

Question number: 20
» Discrete Structures » Graph » Spanning Trees
Appeared in Year: 2015
Question
A tree with n vertices is called graceful, if its vertices can be labelled with integers 1, 2, …, n such that the absolute value of the difference of the labels of adjacent vertices are all different. Which of the following trees are graceful?
Choices
Choice (4)  Response  

a.  (a) and (b) 

b.  (a) and (c) 

c.  (b) and (c) 

d.  (a), (b) and (c) 

Question number: 21
» Discrete Mathematics » Permutation and Combination
Appeared in Year: 2015
Question
How many committees of five people can be chosen from 20 men and 12 women such that each committee contains at least three women? (December)
Choices
Choice (4)  Response  

a.  75240 

b.  52492 

c.  9900 

d.  41800 

Question number: 22
» Operating Systems With Unix » Unix System » Unix Commands, Interfacing With Unix
Appeared in Year: 2015
Question
In Unix, the login prompt can be changed by changing the contents of the file …………… (December)
Choices
Choice (4)  Response  

a.  gettydefs 

b.  init 

c.  inittab 

d.  contrab 
