Cs201 Assignment 3/2016 Calendar

the correct code of cs201 assignmentn of ending date 16-2-016 is

#include<iostream>
#define MODEL "HP"
#define ALPHABET 26
#define NUMKEYS 10
#define FUNKEYS 12
using namespace std;

class Keyboard
{
public:
void operator=(const Keyboard &obj1);
Keyboard();
~Keyboard();

private:
string Model;
int Albkeys,Numkeys,Funkeys;
};

Keyboard::Keyboard()
{
Model=MODEL;
Albkeys=ALPHABET;
Numkeys=NUMKEYS;
Funkeys=FUNKEYS;
cout"\nKeyboard Created. "endl;

cout"\nModel "Model;
cout"\nAlbkeys "Albkeys;
cout"\nNumkeys "Numkeys;
cout"\nFunkeys "Funkeysendl;
}

void Keyboard::operator=(const Keyboard &obj1 )
{
Model=obj1.Model;
Albkeys =obj1.Albkeys;
Numkeys =obj1.Numkeys;
Funkeys =obj1.Funkeys;
cout"\nKeyboard is assigned "endl;
}

Keyboard::~Keyboard()
{
cout"\nKeyboard has been Destroyed "endl;
}

int main(void)
{
Keyboard *obj1=new Keyboard();
Keyboard obj2;
obj2=*obj1;

}

CS201 Introduction to Programming midterm MCQ's

CS201 Introduction to Programming.Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more.

CS201- Introduction to Programming 

Latest Solved Mcqs from Midterm Papers

May 07,2011 
Lectures 1-22

MIDTERM EXAMINATION 
Spring 2010 
Question No: 1 ( Marks: 1 ) - Please choose one 
In order to get 256 from the number 2568 we divide this number by 10 and take, 
► Its remainder 
► The number 
► Its quotient 
► Its divisor 

virtual study solutions

Question No: 2 ( Marks: 1 ) - Please choose one 
The correct syntax of do-while loop is, 
► (condition ) while; do { statements; }; 
► { statements; } do-while (); 
► while(condition); do { statements; }; 
► do { statements; } while (condition); 

CS201 Midterm solved mcqs

Question No: 3 ( Marks: 1 ) - Please choose one 
Which of the following function(s) is/are included in stdlib.hheader file? 
► double atof(const char *nptr) 
► int atoi(const char *nptr) 
► char *strcpy ( char *s1, const char *s2) 
► 1 and 2 only  (Pg 191)

CS201 Short Notes

Question No: 4 ( Marks: 1 ) - Please choose one 
If the break statement is missed in switch statement then, 
► The compiler will give error 
► This may cause a logical error  (Pg 76)
► No effect on program 
► Program stops its execution 

CS201 Solved Papers

Question No: 5 ( Marks: 1 ) - Please choose one 
The data type before a function name represents its, 
► Return Type ( Pg 499)
► Function data 
► Function arguments 
► Function name 

Question No: 6 ( Marks: 1 ) - Please choose one 
Member function tellg() returns the current location of the _____________ pointer. 
► tellptr() 
► write() 
► seekg() 
► get() (Pg 215)

Question No: 7 ( Marks: 1 ) - Please choose one 
What does 5 | 6 , evaluate to in decimal where ‘|’ is bitwise OR operator?
 ►3 
 ►4 
 ►5 
 ►7 
5 | 6 = 
0 1 0 1 
0 1 1 0 
-------- 
0 1 1 1 = 7 

Question No: 8 ( Marks: 1 ) - Please choose one 
C is widely 
known as development language of _______ operating system. 
► Linux 
► Windows 
► Unix (Pg 12)
► Mac OS 

Question No: 9 ( Marks: 1 ) - Please choose one 
What will be 
the result of arithmetic expression 6+27/3*3? 
► 33 
► 45 
► 9 
► 30 

Question No: 10 ( Marks: 1 ) - Please choose one 
How many 
bytes are occupied by declaring following array of characters?
char str[] = “programming”;
► 10 
► 11 
► 12 
► 13 

0 Replies to “Cs201 Assignment 3/2016 Calendar”

Lascia un Commento

L'indirizzo email non verrĂ  pubblicato. I campi obbligatori sono contrassegnati *