Saturday, July 13, 2013

yaz lawsuit

Yaz, a popular know birth control oral has, which has been famous since its release in 2001. Nobody have thought about the consequences they are having after having those pills. Yaz lawsuit is the way of helping the people who have suffered from the use of the Yaz birth control pills. Those pills which were taken for the birth control are giving side effects and also deaths.
Now the lawsuit for the compensation for the loss due to the Yaz has been going on and the company is trying to settle down the case with the help of money.  It wants to decline the obstacles nowadays due to all side effects and is trying to take action for the mistake of them by helping people who suffered from those pills. Anybody who are sufferings of the Yaz birth control pills can get compensation as per law by this Yaz Lawsuit.

Monday, January 21, 2013

Self defense

Self defense or private defense is a way of protecting ourself from the undesired attack or harm from any other people. Physical self defense is the use of physical force of our own to counter an immediate threat of violence. Such force can be either armed or unarmed. In any case, the chances of success to defend ourself from such threat depends upon a large number of parameters, related with the severity of the threat on one hand, but also on the mental and physical preparedness of the defender. When we are unarmed we can protect or defend ourself by using the different kinds of martial arts technique likes karate, judo, taekwando, and many others. And when we are armed we can defend ourself by using the  weapons. In some of the countries, it is allowed to carry weapons like knife, pocket guns, stun guns, etc. for self defense. But in some there are not allowed so main thing for the self defense is to be physically and mentally prepared for every obstacles that may appear in our way at glance.
So it is necessary to be mentally prepared for our own self defense and also we should prepare ourselves physically for the immediate attack at glance.

Saturday, January 19, 2013

Hidden cameras

The hidden cameras are being used in the context of mean time to get and flash out the news and details that are always hidden and kept apart from  the outer world. In fact, the hidden cameras are the main reason behind how we are able to watch the things are kept in dark like many things and also they are made proof in many cases. But hidden cameras are also being misused to get that part of the person's life which are very shameful in sharing with others. Cameras that are being hidden into somewhere place unknown to other people are used to captured the happiest moments of some people and published in outer world without being known to them. Thus the hidden cameras are somewhat useful in some areas but also they are being misused in various ways and people are suffering from it.

Wednesday, January 9, 2013

Level: Bachelor Semester – Fall Year : 2006



Pokhara University

Level:  Bachelor
Semester – Fall
Year         : 2006
Programme: BE
Full Marks: 100
Course: Object Oriented Programming in C++
Time         : 3hrs.

Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.

Attempt all the questions.


1.   
a)      Explain in your own words how object oriented programming permits the development of reusable software components. Also, list the three most important features of an object oriented programming language.
b)      Explain and contrast the following:
·         Interface and Implementation
·         Programming in the small and Programming in the large

7

8
2.   
a)            What is the difference between a message and a procedure call? Explain in detail the message passing syntax in C++. 
b)          Create a new class named City that will have two member variables CityName (char[20]), and DistFromKtm (float). Add member functions to set and retrieve the CityName and DistFromKtm separately. Add new member function AddDistance that takes two arguments of class City and returns the sum of DistFromKtm of two arguments. In the main function, initialise three city objects. Set the first and second city to be Pokhara and Dhangadi. Display the sum of DistFromKtm of Pokhara and Dhangadi calling AddDistance function of third City object.
7

8


3.   
a)        What is generic programming and explain how it is implemented in C++? What do you mean by STL and container classes.
b)       Explain Polymorphic Variables and Deferred Methods. When is the use of Deferred Methods preferred?
7

8
4.
a)        A company needs to keep record of its following employees:
i) Manager       ii) Supervisor
The record requires name and salary of both employees. In addition, it also requires section_name (i.e. name of section, example Accounts, Marketing, etc.) for the Manager and  group_id (Group identification number, e.g. 205, 112, etc.) for the Supervisor. Design classes for the above requirement. Each of the classes should have a function called get() to get data from the user and a function called put() to display the data on the screen. Write a main program to test your classes. What form of inheritance will the classes hold in this case?
b)       Explain briefly the theory of “Composition” and “Substitutability” in respect to software reusability.
10







5

5.
a)        What do you mean by dynamic initialisation of object? Why do we need to do this and how is it achieved?
b)       Explain different types of inheritance with the relative merits and demerits of each type. Support your answer with examples.
7

8
6.
a)        Create a class with two integer data members, a constructor that sets the values of the members to the values passed to it as parameters and a function to display the values of the members.
Overload ‘+’ operator such that when you do A = B + C; where A, B and C are objects of that class and data members of B should be added to data members of C leaving the result in object A. Write the main program to test this operation.

b)       What do you mean by CRC card? When is it useful? Draw CRC card for the information as given in question no. 4 (a) above.
8




7
7.
Write short notes (Any Two):
a) Computation as Simulation
b) Stack versus Heap Storage Allocation
c) Access Specifiers for Class Visibility

2×5


Level: Bachelor Semester: Fall Year : 2010



Pokhara University

Level:  Bachelor
Semester: Fall
Year         : 2010
Programme: BE
Full Marks: 100
Course: Object Oriented Programming in C++
Pass Marks: 45
Time         :  3hrs.

Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.

Attempt all the questions.


1.      
a)         What makes OOP a new paradigm? Explain your with suitable points.
b)         Differentiate between:
                                 i.            Programming in small and programming in large
                                ii.            Interface and implementation
7

8
2.      
a)         Explain various access speicifiers Used in C++ with an example.
b)         Differentiate between constructor and destructor. Can there be more than one destructor in a program for destroying the same object. Illustrate your answer.
7
8
3.      
a)         Explain the principal of substitutability. How does inheritance provide the concept of reusability? How do you define reusability of components?
b)         Differentiate between static and dynamic memory allocation. Write a simple program explaining the use of dynamic memory allocation which should include calculation of marks of 5 subjects of students and displaying the result as pass or fail. Pass mark is 45 out of 100 in each subject.
7

8

4.      
a)         Differentiate between Class and Structure. Explain them with example.
b)         Create a class called Student with three data members (stdnt_name [20], faculty [20], roll_no), a function called readdata () to take the details of the students from the user, and a function called displaydata () to display the details of the students. In main, create two objects of the class Student and for each object call both of the functions.
7

8
5.      
a)         What is a hybrid inheritance? Explain any three pros and three cons of inheritance?
b)         Develop a complete program for an institution which wishes to maintain a database of its staff. Declare a base class STAFF which include staff_id and name. Now develop records for the following staffs with the given information below:
                                 i.            Lecturer (subject, department)
                                ii.            Administrative staff (post, department)
Each staff members should inherit staff_id and name from base class.
8

7
6.      
a)         What is polymorphism? Explain run-time polymorphism and compile time polymorphism with example each.
b)         Explain about deferred methods.
10

5
7.      
Write short notes on (Any Two)
a)         CRC cards
b)         Containership
c)          Templates
2×5

Level: Bachelor Semester – Fall Year : 2008



Pokhara University

Level: Bachelor
Semester – Fall
Year         : 2008
Programme: BE
Full Marks: 100
Course:  Object Oriented Programming in C++
Time         : 3hrs.

Candidates are required to give their answers in their own words as far as practicable.
The figures in the margin indicate full marks.

Attempt all the questions.


1.                   
a)         What do you mean by recursion? Compare recursion and iteration technique base on control structure.
b)        Write a C++ program to calculate the factorial of a number using recursion.
8

7
2.                   
a)         Why object – oriented programming is dominating procedural programming approach? Explain with the features of OOP.
b)        What do you mean by responsibility driven design? What is CRC Card?
8

7
3.                   
a)         Can we have more than one destructor in a class? Write a program to add two complex numbers using the concept of constructor.
b)        What are the advantages of using a friend function? List different types of classes and explain any two.
7

8
4.                   
a)         Create a class called Employee with three data members (empno, name, address), a function called readdata() to take the details of the employee from the user, and a function called displaydata() to display the details of the employee. In main, create two objects of the class and for each object call the readdata() and displaydata() functions
b)        How does inheritance reuse the existing code? Explain
8



7
5.                   
a)         What do you mean by compile time polymorphism and run – time polymorphism? Give an example for function overloading.
b)        Make a class called memory with member data to represent bytes, kilobytes and megabytes. Read the value of memory in bytes from the user as basic data type and display the result in user defined memory type. Like for m (basic type) =108766,  your program should display as,
1 megabyte 38 kilobytes 177 bytes. [Hint. Use basic to user define data conversion method]
8

7
6.                   
a)         What is virtual function? How does it provide run-time polymorphism? Explain.
b)        Create a template class to find the sum of array of integers and array of floating point numbers
7

8
7.                   
Write short notes on (Any Two)
a)         Scope Resolution operator
b)        Hibrid Inheritance
c)         Exception Handling.
2×5