Advertisements
Advertisements
Write a note on the basic concepts that support OOPs?
Concept: undefined >> undefined
class add{int x; public: add(int)}; Write an outline definition for the constructor.
Concept: undefined >> undefined
Advertisements
Discuss the benefits of constructor overloading?
Concept: undefined >> undefined
class sale ( int cost, discount; public: sale(sale &); Write a non-inline definition for constructor specified;
Concept: undefined >> undefined
Answer the question after going through the following class.
class Book {
int BookCode ; char Bookname[20];float fees;
public:
Book( ) //Function 1
{ fees=1000;
BookCode=1;
strcpy(Bookname,"C++"); }
void display(float C) //Function 2
{ cout<<BookCode<<":"<<Bookname<<":"<<fees<<endl; }
~Book( ) //Function 3
{ cout<<"End of Book Object"<<endl; }
Book (intSC,char S[ ],float F) ; //Function 4
};
In the above program, what are Function 1 and Function 4 combined together referred to as?
Concept: undefined >> undefined
Answer the question based on the following program.
#include<iostream>
#include<string.h>
using namespace std;
class comp {
public:
char s[10];
void getstring(char str[10])
{ strcpy(s,str); }
void operator==(comp);
};
void comp::operator==(comp ob)
{ if(strcmp(s,ob.s)==0)
cout<<"\nStrings are Equal";
else
cout<<"\nStrings are not Equal"; }
int main()
{ comp ob, ob1;
char string1[10], string2[10];
cout<<"Enter First String:";
cin>>string1;
ob.getstring(string1);
cout<<"\nEnter Second String:";
cin>>string2;
ob1.getstring(string2);
ob==ob1;
return 0; }
Name the object which gets destroyed in between the program.
Concept: undefined >> undefined
Answer the question based on the following program.
#include<iostream>
#include<string.h>
using namespace std;
class comp {
public:
char s[10];
void getstring(char str[10])
{ strcpy(s,str); }
void operator==(comp);
};
void comp::operator==(comp ob)
{ if(strcmp(s,ob.s)==0)
cout<<"\nStrings are Equal";
else
cout<<"\nStrings are not Equal"; }
int main()
{ comp ob, ob1;
char string1[10], string2[10];
cout<<"Enter First String:";
cin>>string1;
ob.getstring(string1);
cout<<"\nEnter Second String:";
cin>>string2;
ob1.getstring(string2);
ob==ob1;
return 0; }
Which constructor will get executed in the above program? Write the output of the program?
Concept: undefined >> undefined
A computer network security that monitors and controls incoming and outgoing traffic is ______.
Concept: undefined >> undefined
The process of converting ciphertext to plain text is called ______.
Concept: undefined >> undefined
Write two types of cyber attacks.
Concept: undefined >> undefined
What is a Cookie?
Concept: undefined >> undefined
What is the role of firewalls?
Concept: undefined >> undefined
Write about encryption and decryption.
Concept: undefined >> undefined
Explain about the proxy server.
Concept: undefined >> undefined
Write the different types of cyber attacks.
Concept: undefined >> undefined
Distinguish between data and information.
Concept: undefined >> undefined
Classify the microprocessor-based on the size of the data.
Concept: undefined >> undefined
Write down the classifications of microprocessors based on the instruction set.
Concept: undefined >> undefined
Which of the following is not a function of an Operating System?
Concept: undefined >> undefined
File Management manages ______.
Concept: undefined >> undefined
