Friday, December 29, 2023

computer fundament and office , bca,mca 0,07,10,

 BASIC COMPUTER ORGANISATION AND DESIGN 




the loop, so the computer returns to repeat the loop once again. When location CTR reaches zero (after the

loop is executed 100 times), the next instruction is skipped and the computer executes the instructions in

lines 11 and 12. The sum obtained in the accumulator is stored in SUM and the computer halts. The halt

instruction is inserted here for clarity; actually, the program will branch to a location where it will continue

to execute the rest of the program or it can branch to the beginning of another program. Note that ISZ in

line 8 is used merely to add 1 to the address pointer PTR. Since the address is a positive number, a skip will

never occur.

Top

 

  #   

%  

 

In a large system the number of instructions available in a computer may be a few hundred or a few dozen

in a small one. Some computers execute a given operation with one machine instruction; some may require

many machine instructions to perform the same operation. For example, consider the four basic arithmetic

operations. Some computers have machine instructions to add, subtract, multiply, and divide. Others, such

as the basic computer, have only one arithmetic instruction, such as ADD. A program must implement

operations not included in the set of machine instructions.

We have shown in Table 2.8 a program for subtracting two numbers. Programs for the other arithmetic

operations can be developed in a similar fashion.

If operations are implemented in a computer with one machine instruction, then it is said to be implemented

by hardware. Operations implemented by a set of instructions that form a program are said to be

implemented by software. Some computers provide an extensive set of hardware instructions designed so

that common tasks can be performed efficiently. Others contain a smaller set of hardware instructions and

depend more heavily on the software implementation of many operations. Hardware implementation is

more costly because of the additional circuits needed to implement the operation. Software implementation

results in long programs both in number of instructions and in execution time.





  



We use the conventional method of multiplying two numbers to write the program for multiplying two

numbers. As shown in the example of Fig. 2.11, the multiplication process consists of checking the bits of

the multiplier Y and adding the multiplicand X as many times as there are 1's in Y, provided that the value

of X is shifted left from one line to the next. Since the computer can add only two numbers at a time, we

reserve a memory location, denoted by P, to store intermediate sums. The intermediate sums are called

partial products since they hold a partial product until all numbers are added. As shown in the numerical

example under P, the partial product starts with zero. The multiplicand X is added to the content of P for

each bit of the multiplier Y that is 1. The value of X is shifted left after checking each bit of the multiplier.

The final value in P forms the product. The example has numbers with four significant bits. When

multiplied, the product contains eight significant bits. The computer can use numbers with eight significant

bits to produce a product of up to 16 bits. The flowchart of Fig. 2.11 shows the step-by-step procedure for

programming the multiplication operation. The program has a loop that is traversed eight times, once for

each significant bit of the multiplier. Initially, location X holds the multip

bca , mca ,management,09 , 08

 Chapter-5 C++ :



 Classes and Objects Q.1. What is C++? Ans.: Released in 1985, C++ is an object-oriented programming language created by Bjarne Stroustrup. C++ maintains almost all aspects of the C language, while simplifying memory management and adding several features - including a new datatype




 known as a class (you will learn more about these later) - to allow object-oriented programming. C++ maintains the features of C which allowed for low-level memory access but also gives the programmer new tools to simplify memory management. C++ used for : C++ is a powerful general-purpose programming language. It can be used to create small programs or large applications. It can be used to make CGI scripts or console-only DOS programs. C++ allows you to create programs to do almost




 anything you need to do. The creator of C++, Bjarne Stroustrup, has put together a partial list of applications written in C++. Q.2. What is difference between C & C++? Ans.: C does not have a class/object concept. C++ provides data abstraction, data encapsulation, Inheritance and Polymorphism. C++ supports all C syntax. In C passing value to a function is "Call by Value" whereas in C++ its "Call



 by Reference". File extension is .c in C while .cpp in C++.(C++ compiler compiles the files with .c extension but C compiler can not!).

compuer c,program ,7,0,07,mca

Memory Allocation- 





Whenever a new node is created, memory is allocated by the system. This memory is taken from list of those memory locations which are free i.e. not allocated. This list is called AVAIL List. Similarly, whenever a node is deleted, the deleted space becomes reusable and is added to the list of unused space i.e. to AVAIL List. This unused space can be used in future for memory allocation. Memory allocation is of two types- 1. Static Memory AllocationStatic Memory AllocationStatic Memory AllocationStatic Memory Allocation Static Memory Allocation Static Memory



 AllocationStatic Memory AllocationStatic Memory AllocationStatic Memory AllocationStatic Memory Allocation Static Memory AllocationStatic Memory AllocationStatic Memory AllocationStatic Memory AllocationStatic Memory Allocation Static Memory AllocationStatic Memory Allocation 2. Dynamic Memory Allocation Dynamic Memory AllocationDynamic Memory AllocationDynamic Memory Allocation Dynamic Memory AllocationDynamic Memory AllocationDynamic Memory AllocationDynamic Memory AllocationDynamic Memory Allocation Dynamic Memory AllocationDynamic Memory AllocationDynamic Memory AllocationDynamic Memory AllocationDynamic Memory Allocation Dynamic Memory AllocationDynamic Memory AllocationDynamic Memory AllocationDynamic Memory Allocation

1. Static Memory Allocation:Static Memory Allocation:Static Memory Allocation:Static Memory Allocation:Static Memory Allocation: Static Memory Allocation: Static Memory Allocation:Static Memory Allocation:Static Memory Allocation:Static Memory Allocation:Static Memory Allocation:Static Memory Allocation:Static Memory Allocation:Static Memory Allocation: Static Memory Allocation:Static Memory Allocation:Static Memory Allocation:Static Memory

 Allocation:Static Memory Allocation: Static Memory Allocation:Static Memory Allocation: When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is

 allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation tim

e, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated

 during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during


 compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time,




 it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is



 allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory When memory is allocated during compilation time, it called ‘Static Memory Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or




 decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. 




                                                                        This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after Allocation’. This memory is fixed and cannot be increased or decreased after allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is




 allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted. allocation. If more memory is allocated than requirement, then wasted.

bca,mca, computer electranic, 050,60

Memory Management



Any modern computer environment uses a stack as the primary memory management model for a running program. Whether it's native code (x86, Sun, VAX) or JVM, a stack is at the center of the run-time environment for Java, C++, Ada, FORTRAN, etc.

The discussion of JVM in the text is consistent with NT, Solaris, VMS, Unix runtime environments.

Each program that is running in a computer system has its own memory allocation containing the typical layout as shown below.

Bca  precedence and append them to the output string; push the operator onto the stack. The order of popping is the order in the output.

5. If the current input token is '(', push it onto the stack

6. If the current input token is ')', pop off all operators and append them to the output string until a '(' is popped; discard the '('.

7. If the end of the input string is found, pop all operators and append them to the output string.

This algorithm doesn't handle errors in the input, although careful analysis of parenthesis or lack of parenthesis could point to such error determination.

Apply the algorithm to the above expressions.

Backtracking

Backtracking is used in algorithms in which there are steps along some path (state) from some starting point to some goal.

 Find your way through a maze.

 Find a path from one point in a graph (roadmap) to another point.

 Play a game in which there are moves to be made (checkers, chess).

In all of these cases, there are choices to be made among a number of options. We need some way to remember these decision points in case we want/need to come back and try the alternative

Consider the maze. At a point where a choice is made, we may discover that the choice leads to a dead-end. We want to retrace back to that decision point and then try the other (next) alternative.

Again, stacks can be used as part of the solution. Recursion is another, typically more favored, solution, which is actually implemented by a stack.


Bca Program , Be, Computer, eloctronic ,04 introduction

                     Introduction to Data structures







In computer terms, a data structure is a Specific way to store and organize data in a computer's memory so that these data can be used efficiently later. Data may be arranged in many different ways such as the logical or mathematical model for a particular organization of data is termed as a data structure. The variety of a particular data model depends on the two factors -

 Firstly, it must be loaded enough in structure to reflect the actual relationships of the data with the real world object.

 Secondly, the formation should be simple enough so that anyone can efficiently process the data each time it is necessary.

Categories of Data Structure:

The data structure can be sub divided into major types:

 Linear Data Structure

 Non-linear Data Structure

Linear Data Structure:

A data structure is said to be linear if its elements combine to form any specific order. There are basically two techniques of representing such linear structure within memory.

 First way is to provide the linear relationships among all the elements represented by means of linear memory location. These linear structures are termed as arrays.

 The second technique is to provide the linear relationship among all the elements represented by using the concept of pointers or links. These linear structures are termed as linked lists.

The common examples of linear data structure are:

 Arrays

 Queues

 Stacks

 Linked lists

Non linear Data Structure:

This structure is mostly used for representing data that contains a hierarchical relationship among various elements.

Examples of Non Linear Data Structures are listed below:

 Graphs

 family of trees and

 table of contents

Tree: In this case, data often contain a hierarchical relationship among various elements. The data structure that reflects this relationship is termed as rooted tree graph or a tree.

Bca enginiyaring ,Bca,mca,03

 BE 2106 DATA STRUCTURE (3-0-0)




Module – I

Introduction to data structures: storage structure for arrays, sparse matrices, Stacks and Queues: representation and application. Linked lists: Single linked lists, linked list representation of stacks and Queues. Operations on polynomials, Double linked list, circular list.

Module – II

Dynamic storage management-garbage collection and compaction, infix to post fix conversion, postfix expression evaluation. Trees: Tree terminology, Binary tree, Binary search tree, General tree, B+ tree, AVL Tree, Complete Binary Tree representation, Tree traversals, operation on Binary tree-expression Manipulation.

Module –III

Graphs: Graph terminology, Representation of graphs, path matrix, BFS (breadth first search), DFS (depth first search), topological sorting, Warshall’s algorithm (shortest path algorithm.) Sorting and Searching techniques – Bubble sort, selection sort, Insertion sort, Quick sort, merge sort, Heap sort, Radix sort. Linear and binary search methods, Hashing techniques and hash functions.

Text Books:

1. Gilberg and Forouzan: “Data Structure- A Pseudo code approach with C” by Thomson publication

2. “Data structure in C” by Tanenbaum, PHI publication / Pearson publication.

3. Pai: ”Data Structures & Algorithms; Concepts, Techniques & Algorithms ”Tata McGraw Hill.

Reference Books:

1. “Fundamentals of data structure in C” Horowitz, Sahani & Freed, Computer Science Press.

2. “Fundamental of Data Structure” ( Schaums Series) Tata-McGraw-Hill.

MCA ,BCA , Computer , Program,02,BCA kya hai,Kya hai bca, university

                            Master Of Computer Application    


 MCA, 


Called 


Master of Computer Applications, ek postgraduate degree program hai jo computer science and information technology ke field mein study karne ke liye hota hai. Yeh program students ko advanced computer science subjects aur software development skills sikhata hai. MCA degree program typically 3 years ka hota hai, aur isme computer science, programming languages, database management, networking, software engineering, web development, data structures, algorithms, aur other related subjects par focus hota hai.


MCA ke through students ko technical knowledge, problem-solving skills, aur software development ka practical experience milta haijisse wo computer applications aur software systems ko develop, maintainaur manage kar sakte hain. MCA graduates software engineers, software developers, system analysts, database administrators, web developers, aur related roles mein kaam kar sakte hain. Yeh program India mein bhi popular hai aur wahaan ke bahut se universities aur institutes MCA courses offer karte hain.




MCA (Master of Computer Applications) program ke courses aur subjects vary kar sakte hain, lekin generally, MCA degree program mein niche diye gaye subjects aur courses shamil hote hain:


Computer Programming: Yeh course programming languages jaise C, C++, Java, Python, etc., ko samjhane aur practical programming skills develop karne mein madad karta hai.


Data Structures and Algorithms: Data structures aur algorithms ki understanding aur implementation sikhayi jati hai, jo efficient software development ke liye mahatvapurn hai.


Operating Systems: Is course mein operating systems ke fundamental concepts aur functions ko samjha jata hai.


Database Management: Database systems ke design, management, aur implementation ke concepts sikhaye jate hain. SQL aur relational database systems bhi include hote hain.


Software Engineering: Software development methodologies, project management, software design principles, aur quality assurance techniques par focus hota hai.


Web Development: Web technologies, HTML, CSS, JavaScript, server-side scripting languages, web application development, aur related subjects sikhaye jate hain.


Networking: Networking concepts, protocols, network administration, aur security ke aspects sikhaye jate hain.


Object-Oriented Programming: Object-oriented programming principles aur design patterns par focus hota hai.


Artificial Intelligence (AI) and Machine Learning (ML): AI aur ML ke basic concepts aur techniques ke introduction milta hai.


Mobile Application Development: Mobile app development platforms aur technologies ke baare mein sikhaya jata hai.


Software Testing and Quality Assurance: Software testing techniques aur quality assurance processes ke concepts samjhaye jate hain.


Project Work: MCA program ke ant mein, students ko ek project complete karne ka mauka milta hai, jisme unhe practical experience aur application development ke skills develop karne ka avasar milta hai.


Yeh courses MCA program ke general components hote hain, lekin institute ya university ke andar aur specific courses aur electives bhi add kiye ja sakte hain, jisse students apne specific interests aur career goals ke hisab se focus kar sakte hain.


                                            Univarsity   Of Mca Course


Best" University for an MCA program can vary depending on various factors such as your specific career goals, location preferences, budget, and admission requirements. Several universities and institutes in India offer excellent MCA programs. Here are some well-known universities and institutes known for their quality MCA programs:


Indian Institutes of Technology (IITs): IITs are prestigious institutions and offer high-quality MCA programs. Some of the prominent IITs for MCA include IIT Roorkee, IIT Kanpur, and IIT Delhi.


National Institutes of Technology (NITs): NITs are renowned for their technical education programs, including MCA. NITs like NIT Trichy, NIT Warangal, and NIT Calicut offer good MCA programs.


Jawaharlal Nehru University (JNU): JNU is well-known for its MCA program and is considered one of the top institutions in the country for computer science studies.


University of Delhi: Delhi University offers MCA programs through various colleges like the Department of Computer Science (DU) and other affiliated colleges.


Pune University: Savitribai Phule Pune University is known for its MCA program, and it is a popular choice among students.


Banaras Hindu University (BHU): BHU offers a comprehensive MCA program with a strong emphasis on computer science and IT.


Visvesvaraya Technological University (VTU): Located in Karnataka, VTU offers MCA programs with a focus on practical knowledge and industry exposure.


Anna University: Anna University in Chennai is renowned for its MCA program, and it's a preferred choice for many students.

Computer kya hai , What is BCA MCA course,Bcamca

                  Computer 

    BCA