TUTORIAL QUESTIONS
(Write any 5 in your journal at last pages of Paper 1)
Q.1 Solve Binary Substraction by 2’s Complement Method (15)10-(28)10
Q.2 Explain Function Overloading with examples.
Q.3 Explain while loop with example.
Q.4 Write program for the following(any 2)
a. *
* *
* * *
* * * *
* * * * *
b. 1 0 1 0 1
1 0 1 0
1 0 1
1 0
1
Q.5 Explain application of networking.
Q.6 Explain various menu from menubar in visual basics.
Q.7 Explain steps of program development.
Q.8 Explain function with example.
Q.9 Explain Pointer with examples
Q.10 Explain array with examples.
Pattern Program
Code
#include<iostream.h>
# include<conio.h>
void main()
{
clrscr();
int x,y;
for(y=5;y>=1;y--)
{
for(x=1;x<=y; x++)
{
cout<<x%2<<"\t";
}
cout<<endl;
}
getch();
}
*
* *
* * *
* * * *
* * * * *
#include <iostream.h>
void main()
{
int rows;
cout << "Enter number of rows: ";
cin >> rows;
for(int i = 1; i <= rows; ++i)
{
for(int j = 1; j <= i; ++j)
{
cout << "* ";
}
cout << "\n";
}
}