• Tidak ada hasil yang ditemukan

Latest NIOS Senior Secondary Previous Year Question Papers Solution with answer pdf, Download NIOS Senior Secondary Last 10 Years Old Question Papers, NIOS Senior Secondary Sample Papers and Model Papers

N/A
N/A
Protected

Academic year: 2024

Membagikan "Latest NIOS Senior Secondary Previous Year Question Papers Solution with answer pdf, Download NIOS Senior Secondary Last 10 Years Old Question Papers, NIOS Senior Secondary Sample Papers and Model Papers"

Copied!
4
0
0

Teks penuh

(1)

COM PUTER SCI ENCE (330)

Time : 3 Hours ] [ Max i mum Marks : 60

Note : (i) An swer all ques tions.

(ii) Marks al lot ted to each ques tion are given in the right-hand mar gin.

(iii) Use C++ pro gram ming lan guage to an swer pro gram ming ques tions.

1. Define the following terms briefly : 1×5=5

(a) Memory (b) Bit

(c) FTP

(d) Windows Explorer (e) Topology

2. (a) Differentiate between the following : 2×3=6

(i) Logical and Physical records (ii) 3GLs and 4GLs

(iii) Half-duplex and Full-duplex modes of communication

(b) Briefly define URL. Also give an example of a URL. 4

3. (a) Name the header file, to which the following built-in functions belong :

1×4=4 (i) log( )

(ii) toupper( ) (iii) strcpy( ) (iv) gets( )

330/ASS/5002 2

(2)

(b) (i) Write the equivalent C++ expression for the following algebraic

expressions involving variables P, Q and R : 3

1. P5Q

2. 3 2 2

3

PQ QR PR

Q

+ -

(ii) Find out syntax error(s), if any, in the following program and rewrite the corresponding correct code underlining each correction made : 3 # in clude <iostream.h>

void main ( ) { int x; y;

cin<<x;

for (y = 1, y<= x, y++) if x+y < 10

cout<<x+y;

else cout<<x–y;

cout<<x, y;

}

4. (a) What is a structure? Write any two differences between a structure and

an array. Give an example of each. 4

(b) Give the output of the following programs : 3×2=6

(i) # include <iostream.h>

# include <conio.h>

void main( ) {

char ch = ‘A’ ; while (ch < ‘F’) { switch(ch) { case ‘A’ : case ‘B’ :

case ‘C’ : ch++ ; default : ch+= 2 ; }

cout<<ch<<“*\n” ; }

cout<<ch<<“*\n” ; }

330/ASS/5002 3 [ P.T.O.

(3)

(ii) # include <iostream.h>

# include <conio.h>

float x = 5·9 ; void add (float x) {

x += 2 ;

cout<< “\nx = ”<<x ; }

void main( ) { clrscr( ) ;

cout<< “\nx= ”<<x ; add(x) ;

cout<< “\nx=” <<x ; getch( ) ;

}

5. (a) Write a program in C++ that will input 10 numbers from the user in a one-dimensional array and then sort this array in descending order using selection sort. The program should then display the sorted array. 5 (b) A binary file “BOOKS.DAT” contains structure variables corresponding to

the following structure : struct Book

{ int BookNo ;

char Book_name [20] ; } ;

Write a program to input a book number and search the file for this book.

If the book is found in the file, then display the book name and if the book is not found in the file, then display an appropriate message. 5

6. Answer the following questions briefly : 3×5=15

(a) Differentiate between Keywords and Identifiers in C++ with at least two examples of each.

(b) Differentiate between a Class and an Object.

330/ASS/5002 4

(4)

(c) Define a class TravelPlan in C++ with the following descriptions : Pri vate mem bers :

· TravelCode of type long

· Des ti na tion of type char ac ter ar ray (string)

· No_of_Trav el lers of type in te ger

· No_of_Buses of type integer Pub lic mem bers :

· A con struc tor to as sign ini tial val ues—Des ti na tion as “Jaipur”, No_of_Trav el lers as 10, No_of_Buses as 1.

· A func tion Plan( ) which al lows the user to en ter TravelCode, Des ti na tion and No_of_Trav el lers. Also as sign the value to No_of_Buses as per the fol low ing con di tions :

No. of Trav el lers No. of Buses Less than 20 1 20 to 39 2 40 or more than 40 3

(d) Define single inheritance, multiple inheritance and multilevel inheritance.

(e) Find the output of the following program segment : int a = 5;

int *b = &a, *c ; c = b ;

cout<<a<<“\t”<<*b<<endl;

a++ ;

cout<<a<<“\t”<<*b<<endl;

(*c)-- ;

cout<<a<<“\t”<<*b<<endl;

H H H

330/ASS/5002 5 V13—300

Referensi

Dokumen terkait

Read the passage given below and complete the table that follow [Answer should be given in the Answer-book only] : 4 At a time when the use of fossil fuels to power vehicles is making

Read the passage given below and answer the questions that follow : Fashion is a term commonly used to describe a style of clothing worn by a large number of people in a country?.

Please check the question paper to verify that the total pages and total number of questions contained in the paper are the same as those printed on the top of the first page.. Also

If the excise duty is 16%, calculate the total excise duty paid at the end of month of September with 5 weekly off-days using the Cenvat transaction method... If the income derived from

a Kinetic energy of electrons b Photoelectric current State reasons to justify your answer.. What are intrinsic

a On the basis of molecular orbital theory, explain the following : i He2 mol e cule does not ex ist.. ii O2+ shows para mag netic be hav

Please check the ques tion pa per to ver ify that the to tal pages and to tal number of ques tions con tained in the paper are the same as those printed on the top of the first page..

Please check the ques tion pa per to ver ify that the to tal pages and to tal number of ques tions con tained in the paper are the same as those printed on the top of the first page..