Skip to main content

Posts

Showing posts from August, 2018

Memory Hierarchy ( For O-LEVEL/BCA/MCA Computer Fundamental Examination )

Internal Processor Memory :- → The Internal Processor memory is also known as processor memory which is direct connected to the processor. → This memory help for manage the processing in computer. → There are two types of Internal Processor memory such as: (a) Cache Memory (b) CPU Memory. (a) Cache Memory :- → Cache Memory is very fast and expensive memory. → Cache Memory work as bridge between Processor and RAM. → The Cache Memory is direct attach with micro - processor and RAM. → The Cache Memory used for increased the speed of data processing in computer. → The Cache Memory is also known as static memory where the data is forcly deleted. → The Cache Memory store all the data instruction which is ready for process. → The speed of Cache Memory is measured in NANO SEC. → There are two type of Cache Memory: (a) L1 Cache (b) L2 Cache. → In L1 Cache the small set of instructions  are store and the size of L1 Cache is up to 256KB. → In L2 Cache ...

UGC-NET Computer Science (RSA-Algorithm Solution)

UGC-NET RSA-Algorithm Solution Using RSA algorithm, what is the value of cipher text C, if the plain text M = 5 and p = 3, q = 11 & d = 7 ?  (A) 20 (B) 52  (C ) 26  (D )31 Solution:- All the values are given i.e. p=3, q=11       then n=(p * q) = (3 * 11)=33    Find value of m=(p-1)*(q-1) = (2 * 10)=20 Find a small odd integer e, that is relatively prime to m. If e=3, then GCD(3,20)=1. e should be small and prime and so we let e=3. Value of d is given, d=7. Public key = (e,n). To encrypt a message, we apply the public key to the function  E(m) = m e (mod n) then:-    = 5 3 (mod 33)    = 125 (mod 33)    = 26 As a result, the encrypted message E(M) = 26. It is the transmitting message.

Multiple Inheritance

Multiple Inheritance In multiple inheritance a class can access the property of more than one class. This inheritance is use for multiple accessing of properties. In multiple inheritance ambiguty is  occured when same name function is declare in both class and the object is confuse with function is called.  syntax − class derived-class: access baseA, access baseB.... Where access is one of public, protected, or private and would be given for every base class and they will be separated by comma as shown above. Let us try the following  example − #include <iostream.h> #include <conio.h>  // Base Class class Shape  {    public:       void getwidth(int w) {          width = w;       }       void getheight(int h) {          height = h;       }           prot...