Introduction To C++ Programming (April – 2015) [IDOL - Revised Course | Question Paper]


Click Here: (PDF Link 1) | Click Here: (PDF Link 2) | Click Here: (PDF Link 3)

Click Here: (Image View) | Click Here: (Text View)


B.Sc.IT: Semester – I
[Introduction To C++ Programming]
Question Paper (April – 2015) [Revised Course]

Time: 3 Hours
Total Marks: 100

N.B.:    (1) All Questions from 1 to 7 are Compulsory.
            (2) Figure To right indicate the marks.

Q.1 Attempt The following Question: (10 Marks)
(A) Define Algorithm. Explain with simple example.
(B) How to write single line comment and multiline comment in C++.
(C) Draw flowchart to check number is positive or negative.
(D) Write C++ program to display square and cube of the number.
(E) Which are different categories of algorithms operations.

Q.2 (A) Attempt Any Three From The Following: (15 Marks)
(i) Write an algorithm to display series of numbers from 1 to 100.
(ii) Explain and draw different symbols of flowchart. Write advantages and disadvantages of flowchart.
(iii) Write down characteristic of algorithm.
Q.2 (B) Attempt Any One From The Following: (5 Marks)
(i) Draw flowchart to display smallest number from 3 numbers.
(ii) Write down rules for drawing flowchart.

Q.3 (A) Attempt Any Two From The Following: (10 Marks)
(i) How to declare a variable? Write down rules for declaring variables.
(ii) Explain Relational Operator and Logical Operator.
(iii) Write a note on symbolic constants.
Q.3 (B) Attempt Any One From The Following: (5 Marks)
(i) Explain various data types available in C++.
(ii) What do you mean by reference variable? Explain with example.

Q.4 (A) Attempt Any Two From The Following: (10 Marks)
(i) Explain simple ‘if’ statement, ‘if…else’ statement, and ‘nested if’ statement with syntax and example.
(ii) Explain ‘break’ statement and ‘continue’ statement with example.
(iii) Explain ‘while’ and ‘do…while’ loop with syntax and example.
Q.4 (B) Attempt Any One From The Following: (5 Marks)
(i) Explain ‘for’ loop with syntax and example.
(ii) Write a program in C++ to display following output.
1
1    2
1    2    3
1    2    3    4

Q.5 (A) Attempt Any Two From The Following: (10 Marks)
(i) Write a note on Function Overloading.
(ii) Explain getchar(), putc(), getc(), gets(), puts() functions.
(iii) Explain the difference between call by value and call by reference. 
Q.5 (B) Attempt Any One From The Following: (5 Marks)
(i) Write a program in C++ to compare two strings by using string functions.
(ii) Write note on functions. Explain declaration, calling and definition of function.

Q.6 (A) Attempt Any Two From The Following: (10 Marks)
(i) How to initialize One Dimensional Array? Explain compile time and runtime initialisation.
(ii) What is array? What are different types of array?
(iii) Explain passing array elements to a function with example.
Q.6 (B) Attempt Any One From The Following: (5 Marks)
(i) Write a program in C++ to find sum and average of 10 array elements.
(ii) Explain the concept of pointers.

Q.7 (A) Attempt Any Two From The Following: (10 Marks)
(i) What is structure? Explain.
(ii) Explain any five functions of vector.
(iii) Explain strcpy() and strcmp() function with example.
Q.7 (B) Attempt Any One From The Following: (5 Marks)
(i) Write a program in C++ to search given character in the given string.
(ii) Write a program in C++ to display the string in reverse order.

0 Comments