# CBSE-NET (Based on NTA-UGC) Computer Science (Paper-II): Questions 19 - 22 of 1777

Get 1 year subscription: Access detailed explanations (illustrated with images and videos) to 1777 questions. Access all new questions we will add tracking exam-pattern and syllabus changes. View Sample Explanation or View Features.

Rs. 550.00 or

## Question number: 19

Appeared in Year: 2015

MCQ▾

### Question

Consider the following program:

1. `#include<stdio.h>`
2. `main()`
3. `{`
4. `    int i, inp;`
5. `    float x, term=1, sum=0;`
6. `    scanf(“%d %f”,&inp, &x);`
7. `    for(i=1;i<=inp;i++)`
8. `    {`
9. `        term=term*x/i;`
10. `        sum=sum+term;`
11. `    }`
12. `    printf(“Result=%fn”,sum);`
13. `}`

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

MCQ▾

### 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

Appeared in Year: 2015

MCQ▾

### 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

MCQ▾

### 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

f Page