Sei sulla pagina 1di 4

Sree Narayana Guru College of Commerce F.Y.BSC(IT) Sem:1 Sub: : Introduction to C++ Programming. Note:1)All questions are compulsory.

2)Attempt any two questions from each Question. Duration:2hrs marks:60

Q.1.a).Draw the table displaying the symbols used in flowchart. b).Write/Draw the algorithm/flowchart along with the program code for the following:Aim: To take two values from the user and print its sum. c).What are the basic components of c++ program? Explain.

[5] [5] [5]

Q.2)a).Define a variable along with an example. State the rules for naming variables .[5] b).Explain Arithmetic operator with example. [5] c).Write short notes on a). two types of comment in c++. B).cout c).cin [5] Q.3a).Explain while loop structure with suitable example. b).Explain if else if decision making statement with example c).Explain increment decrement operator with example Q.4 a).Explain I/O built in function. b).What is inline function?give an example. c).What is function overloading ?Give example. Q.5a).What is array?How is it declared and initialised ?Give example. b).Explain with an example how to pass a array to a function. c).Explain the use of pointer with example. [5] [5] [5] [5] [5] [5] [5] [5] [5]

Q.6.a).Name and explain atleast 2 different string manipulation functions in String.h.[5] b).What are different ways to initialize a String? [5] c).What are structures? Illustrate with an example. [5]

Sree Narayana Guru College of Commerce F.Y.BSC(IT) Sem:1 Sub: : Introduction to C++ Programming. Note:1)All questions are compulsory. 2)Attempt any two questions from each Question. Duration:2hrs marks:60

Q.1.a). What are the basic components of c++ program? Explain. b).Write/Draw the algorithm/flowchart along with the program code for the following:Aim: To take two values from the user and print the greater number. c). Draw the table displaying the symbols used in flowchart. Q.2)a).Define a assignment operator with an example. b).Explain Arithmetic operator with example. c).Write short notes on a). two types of comment in c++. B).cout c).cin Q.3a).Explain for loop structure with suitable example. b).Explain if else if decision making statement with example c).Explain increment decrement operator with example Q.4 a).Explain user defined function with example. b).What is inline function?give an example. c).What is function overloading ?Give example. Q.5a).What is array?How is it declared and initialised ?Give example. b).Explain with an example how to pass a array to a function. c).Explain the use of pointer with example.

[5]
[5]

[5] [5] [5] [5] [5] [5] [5] [5] [5] [5] [5] [5] [5]

Q.6.a).Name and explain atleast 2 different string manipulation functions in String.h. [5] b).What are different ways to initialize a String? [5] c).What are structures? Illustrate with an example. [5]

Sree Narayana Guru College of Commerce F.Y.BSC(IT) Sem:1 Sub: : Introduction to C++ Programming. Note:1)All questions are compulsory. 2)Attempt any two questions from each Question. Duration:2hrs marks:60

Q.1.a).Draw the table displaying the symbols used in flowchart. b).Write/Draw the algorithm/flowchart along with the program code for the following:Aim: To take two values from the user and print its sum. c).What are different stages of a program development

[5] [5] [5]

Q.2)a).Define a variable along with an example. State the rules for naming variables .[5] b).Explain Relational operator with example. [5] c).Write short notes on a). two types of comment in c++. B).cout c).cin [5] Q.3a).Explain for loop structure with suitable example. b).Explain if else if decision making statement with example c).Explain increment decrement operator with example Q.4 a).Explain I/O built in functions. b).What is inline function?give an example. c).What is function overloading ?Give example. Q.5a).What is array?How is it declared and initialised ?Give example. b).Explain with an example how to pass a array to a function. c).Explain the use of pointer with example. [5] [5] [5] [5] [5] [5] [5] [5] [5]

Q.6.a).Name and explain atleast 2 different string manipulation functions in String.h.[5] b).What are different ways to initialize a String? [5] c).What are structures? Illustrate with an example. [5]

Potrebbero piacerti anche