MCA4010- MICRO PROCESSOR

Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601



ASSIGNMENT

PROGRAM
MCA(REVISED FALL 2012)
SEMESTER
FOURTH
SUBJECT CODE & NAME
MCA4010- MICROPROCESSOR
CREDITS
4
BK ID
B1778
MAX. MARKS
60


Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each question is followed by evaluation scheme.

Q. 1. Write short notes on:

a) Central Processing Unit

Answer:The central processing unit (CPU) of a computer is a piece of hardware that carries out the instructions of a computer program. It performs the basic arithmetical, logical, and input/output operations of a computer system. The


b) Memory Unit

Answer:In computing, memory refers to the computer hardware devices used to store information for immediate use in a computer; it is synonymous with the term "primary storage". Computer memory operates at a high speed, for example random-access memory (RAM), as a distinction from storage that provides slow-to-access program and data storage but offers higher capacities. If needed, contents of the computer memory can be transferred to secondary storage, through a memory management technique called "virtual


Most semiconductor memory is organized into memory cells or bistable flip-flops, each storing one bit (0 or 1). Flash memory organization includes both one bit per memory cell and multiple bits per cell (called MLC,




Q. 2. Write short notes on:

a) Bus Interface Unit (BIU)

Answer:In computer architecture, a bus (related to the Latin "omnibus", meaning "for all") is a communication system that transfers data between components inside a computer, or between computers. This expression covers all related hardware components (wire, optical fiber, etc.) and software, including

b) Execution Unit (EU)

Answer:In computer engineering, an execution unit (also called a functional unit) is a part of the central processing unit (CPU) that performs the operations and calculations as instructed by the computer program. It may have its own internal control sequence unit, which is not to be confused with the CPU's main control unit, some registers, and other internal units such as a sub–arithmetic logic unit (sub-ALU) or a floating point unit (FPU), or some smaller and more specific components.  It is common for modern




Q. 3. Write short notes on:

a) REP Prefix

Answer:If the direction flag is clear, the CPU increments ESI and EDI after operating upon each string element. For example, if the direction flag is clear, then executing MOVS will move the byte, word, or double word at ESI to EDI and will increment ESI and EDI by one, two, or four. When specifying the REP prefix before this instruction, the CPU increments ESI and EDI for each element in the string. At completion, the ESI and EDI registers will be pointing at the first item beyond the strings.



b) Table Translation

Answer:A translation lookaside buffer (TLB) is a cache that memory management hardware uses to improve virtual address translation speed. The majority of desktop, laptop, and server processors includes one or more TLBs in the memory management hardware, and it is nearly always present in any hardware that utilizes paged or segmented virtual memory.

The TLB is sometimes implemented as content-addressable memory (CAM). The CAM search key is the virtual address and the search





Q. 4. Describe about Key-code Data Formats and FIFO Status Word formats.

Answer:Key Code Qualifier is an error-code returned by a SCSI device.

When a SCSI target device returns a check condition in response to a command, the initiator usually then issues a SCSI Request Sense command. This process is part of a SCSI protocol called Contingent Allegiance Condition. The target will respond to the Request Sense command with a set of SCSI sense data which includes three fields giving increasing levels of detail about the error:

    K - sense key - 4 bits, (byte 2 of Fixed sense


Q. 5. Write a note on

(a) RS 232 standard

Answer:In telecommunications, RS-232 is a standard for serial communication transmission of data. It formally defines the signals connecting between a DTE (data terminal equipment) such as a computer terminal, and a DCE (data circuit-terminating equipment, originally defined as data communication equipment), such as a modem. The RS-232 standard is commonly used in computer serial ports. The standard defines the electrical characteristics and timing of signals, the meaning of signals, and the physical size



(b) IEEE 488 standard

Answer:IEEE-488 is a short-range digital communications 8-bit parallel multi-master interface bus specification. It was created in the late 1960s for use with automated test equipment and is still in use for that purpose. IEEE-488 was created as HP-IB (Hewlett-Packard Interface Bus) and is commonly called GPIB (General Purpose Interface Bus). It has been the subject of several standards.

IEEE-488 specifies a 24-pin Amphenol





Q. 6. Write short note on:

a) Parallel Printer Interface (LPT)

Answer:Short for Line Printer Terminal, LPT is used by IBM compatible computers as an identification for the parallel port such as LPT1, LPT2, or LPT3. This is commonly required when installing a printer on an IBM compatible computer. The majority of all computers utilize LPT1 and do not have an option for another LPT port unless additional ports are added to the computer.





b) Universal Serial Bus (USB)

Answer:USB, short for Universal Serial Bus, is an industry standard developed in the mid-1990s that defines the cables, connectors and communications protocols used in a bus for connection, communication, and power supply between computers and electronic devices. It is currently developed by the USB Implementers Forum.


Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601


MCA4040 - ANALYSIS AND DESIGN OF ALGORITHM

Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601


[ SUMMER 2015 ] ASSIGNMENT

PROGRAM
MCA(REVISED FALL 2012)
SEMESTER
4
SUBJECT CODE & NAME
MCA4040- ANALYSIS AND DESIGN OF ALGORITHM
CREDIT
4
BK ID
B1480
MARKS
60


Answer all questions
Q. 1. Write the steps involved in analyzing the efficiency of non-recursive algorithms.

Answer:The study of algorithms is called algorithmics. It is more than a branch of computer science. It is the core of computer science and is said to be relevant to most of science, business and technology. An algorithm is a sequence of unambiguous instructions for solving a problem, i.e., for obtaining a required output for any legitimate input in finite amount of time.

The three algorithms used to find the gcd of two numbers are

·         Euclid’s algorithm
·         Consecutive integer




Q. 2. Define selection sort and explain how to implement the selection sort?

Answer:In computer science, selection sort is a sorting algorithm, specifically an in-place comparison sort. It has O(n2) time complexity, making it inefficient on large lists, and generally performs worse than the similar insertion sort. Selection sort is noted for its simplicity, and it has performance advantages over more complicated algorithms in certain situations, particularly where auxiliary memory is limited.

The algorithm divides the input list into two parts: the sublist of items already sorted, which is built up from left to right at the front (left) of the list, and







Q. 3. Define Topological sort. And explain with example.

Answer:In computer science, a topological sort (sometimes abbreviated topsort or toposort) or topological ordering of a directed graph is a linear ordering of its vertices such that for every directed edge uv from vertex u to vertex v, u comes before v in the ordering. For instance, the vertices of the graph may represent tasks to be performed, and the edges may represent constraints that one task must be performed before another; in this application, a topological ordering is just a valid sequence for the tasks. A topological ordering is possible if and only if the graph has no directed cycles, that is, if it is a directed acyclic




Q. 4. Explain good-suffix and bad-character shift in Boyer-Moore algorithm.

Answer:In computer science, the Boyer–Moore string search algorithm is an efficient string searching algorithm that is the standard benchmark for practical string search literature. It was developed by Robert S. Boyer and J Strother Moore in 1977. The algorithm preprocesses the string being searched for (the pattern), but not the string being searched in (the text). It is thus well-suited for applications in which the pattern is much shorter than the text or where it persists across multiple searches. The Boyer-Moore algorithm uses information gathered during the preprocess step to skip sections of the text, resulting in a lower constant factor than many other string algorithms. In general, the algorithm runs faster




Q. 5. Solve the Knapsack problem using memory functions.
Item 1 2 3 4
Weight 2 6 4 8
Value (in Rs.) 12 16 30 40
Knapsack capacity is given as W=12. Analyze the Knapsack problem using memory functions with the help of the values given above.

Answer:The classical Knapsack Problem (KP) can be described as follows. We are given a set N={1,…,n} of items, each of them with positive profit pj and positive weight wj, and a knapsack capacity c. The problem asks for a subset of items whose total weight does not exceed the knapsack capacity, and whose profit is a maximum. It can be formulated as the following Integer Linear Program (ILP):
(KP)max∑jNpjxj(1)




Q. 6. Describe Variable Length Encoding and Huffman Encoding.

Answer:Variable Length Encoding:In coding theory a variable-length code is a code which maps source symbols to a variable number of bits.Variable-length codes can allow sources to be compressed and decompressed with zero error (lossless data compression) and still be read back symbol by symbol. With the right coding strategy an independent and identically-distributed source may be compressed almost arbitrarily close to its entropy. This is in contrast to fixed length coding methods, for which data compression is only possible for large blocks of data, and any compression beyond the logarithm of the total number of possibilities comes with a finite (though perhaps arbitrarily small) probability of failure.

Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601


MCA 4030 - PROGRAMMING IN JAVA



Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
  help.mbaassignments@gmail.com
or
call us at : 08263069601



ASSIGNMENT

PROGRAM
MCA(REVISED FALL 2012)
SEMESTER
1
SUBJECT CODE & NAME
MCA 4030 - PROGRAMMING IN JAVA
CREDIT
4
BK ID
B1477
MAX.MARKS
60

Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each question is followed by evaluation scheme.



1 Describe the following:

a) Multi-threading.
Answer : Multithreading in java is a process of executing multiple threads simultaneously.

Thread is basically a lightweight sub-process, a smallest unit of processing. Multiprocessing and multithreading, both are used to achieve multitasking.

But we use multithreading than multiprocessing because threads share a common memory area. They don't allocate


b) Significance of Java Bytecode

Answer : Java is build on WODA (Write Once Deploy Anywhere) principle. This means you don't have to tweak a Java source code if you want to deploy it in another OS. But at the end of the day, java programs need a JVM to run on and JVM being machine language specific cannot be platform-neutral. So, we


2 Differentiate Break and Continue statements in Java with example program.

Answer : A break statement when applied to a loop ends the statement. A continue statement ends the iteration of the current loop and returns the control to the loop statement. If the break keyword is followed by an identifier that is the label of a random enclosing statement, execution transfers out of that enclosing statement. If the continue keyword is followed by an identifier that is the label of an enclosing loop, execution skips to the end of that loop instead.

break: breaks the current loop and moves the cursor to next line after the loop

e.g.



3 Differentiate between packages and Interfaces.

Answer : Packages
Definition:  A package is a grouping of related types providing access protection and name space management. Note that types refers to classes, interfaces, enumerations, and annotation types. Enumerations and annotation types are special kinds of classes and interfaces, respectively, so types are often referred to in this lesson simply as classes and interfaces.

Creating a Package:



4 What are Applets? What are the restrictions of Applets? Describe about applet class.

Answer : What is an Applet in Java ?
An Applet is a small java program that runs in a Java enabled web browser. Java Applet is a small piece of java code that is embedded into HTML page, which gets executed when the HTML page loads into the browser.Applets provide powerful client-side functionality. As applets are loaded from remote machines and executed on client-side, there are various security restrictions on applets. –

Applets Restrictions
Applets have many restrictions over the



5 Compare JDBC and ODBC

Answer : Typically, software applications are written in a specific programming language (such as Java, C#, etc.), while databases accept queries in some other database specific language (such as SQL). Therefore, when a software application needs to access data in a database, an interface that can translate languages to each other (application and database) is required. Otherwise, application programmers need to learn and



6 Describe about Java Beans and BeanBox.

Answer : A Java Bean is a reusable software component that can be manipulated visually in an application builder tool.  The idea is that one can start with a collection of such components, and quickly wire them together to form complex programs without actually writing any new code.
Software components must, in general, adopt standard techniques for interacting with the rest of the world.  For example, all GUI components inherit the java.awt.Component class, which means that one can rely on them to have certain standard methods like paint(), setSize(), etc.  Java Beans are not actually required to inherit a

Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
  help.mbaassignments@gmail.com
or
call us at : 08263069601


MCA2050 - COMPUTER ARCHITECTURE

Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601



SUMMER-2015 ASSIGNMENT



PROGRAM
MCA(REVISED FALL 2012)
SEMESTER
SECOND
SUBJECT CODE & NAME
MCA2050- COMPUTER ARCHITECTURE
CREDITS
4
BK ID
B1648
MARKS
60


Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each question is followed by evaluation scheme.


1. What is the difference between process and thread?
Answer : A process is an executing instance of an application. What does that mean? Well, for example, when you double-click the Microsoft Word icon, you start a process that runs Word. A thread is a path of execution within a process. Also, a process can contain multiple threads. When you start Word, the operating system creates a process and begins executing the primary thread of that process.




Q. 2. Explain the any five types of addressing modes.


Answer:To reference a large range of locations in main memory, a variety of addressing technique are used. The common addressing modes are:

·         Immediate
·         Direct
·         Indirect



Q. 3. Describe the logical layout of both RISC and CISC computers


Answer:A computer with a large number of in­structions is classified as a complex instruction set computer, abbreviated CISC. In the early 1980s, a number of computer designers recommended that computers use fewer instructions with simple constructs so they can be exe­cuted much faster within the CPU without having to use memory as often. This type of computer is classified as a reduced instruction set computer or RISC. In this section we introduce the major characteristics of CISC and RISC architec­tures and then present the






Q. 4. Explain the concept of branch handling. What is delayed branching?

Answer:The recent process of globalization and its development hit all the nations of the world for their rapid development of trade, commerce and industries. Branch, therefore, is the result of rapid growth of business in the world. Since, there is an international access to the trade and commerce, business undertakings are opening their establishment nationally and internationally in the different parts of the world. Whatever the business undertaking opened by the organization, they are normally a segment of the original business undertaking




Q. 5. Explain any five types of vector instructions in detail.

Answer:In computing, a vector processor or array processor is a central processing unit (CPU) that implements an instruction set containing instructions that operate on one-dimensional arrays of data called vectors. (Compare scalar processors, whose instructions operate on single data items.) Vector processors can greatly improve performance on certain workloads, notably numerical simulation and similar tasks. Vector machines appeared in the early 1970s and dominated supercomputer design through the 1970s into the 1990s, notably the various Cray platforms. The rapid fall in the price-to-performance ratio of



Q. 6. Write short notes on:
a) UMA:Uniform memory access (UMA) is a shared memory architecture used in parallel computers. All the processors in the UMA model share the physical memory uniformly. In a UMA architecture, access time to a memory location is independent of which processor makes the request or which memory chip contains the


b) NUMA: NUMA is an alternative approach that links several small, cost-effective nodes using a high-performance connection. Each node contains processors and memory, much like a small SMP system. However, an advanced memory controller allows a node to use memory on all other nodes, creating a single system image.

Non-uniform memory access (NUMA) is a

Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601


MCA2030 - OBJECT ORIENTED PROGRAMMING – C++

Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601



(SUMMER,  2015) ASSIGNMENT

PROGRAM
MCA (Revised Fall 2012)
SEMESTER
2
SUBJECT CODE & NAME
MCA2030- OBJECT ORIENTED PROGRAMMING – C++
CREDIT
2
BK ID
B1641
MAX.MARKS
60

Note: Answer all questions. Kindly note that answers for 10 marks questions should be approximately of 400 words. Each question is followed by evaluation scheme.

1. Write short notes on:

a) Inheritance

Answer : Inheritance:-Inheritance means using the Pre-defined Code This is very Main Feature of OOP With the advantage of Inheritance we can use any code that is previously created. With the help of inheritance we uses the code that is previously defined but always Remember, We are only using that code but not changing that code.




b) Polymorphism

Answer : Polymorphism is the ability to use an operator or method in different ways. Polymorphism gives different meanings or functions to the operators or methods. Poly, referring to many, signifies the many uses of these operators and methods. A single method usage or an operator functioning in many ways can be called polymorphism. Polymorphism refers to codes, operations or objects that behave differently in different contexts.





2. Differentiate between Classes and Objects. Write an example program to represent a class and its object.

Answer : Class vs Object in Java

Some difference between class and object, which is totally based upon practical experience :

1) A class is what you create while coding, but object is created at runtime by your execution environment e.g. JVM. Though you write code, which is required to create object during coding e.g.new Student(), object is not created at that time. They are only created when you run your program, and when runtime executes that line. Usually constructor of a class is called when an object is created in Java, but yes there are some anomalies as well e.g. Serialization.

2) Most important difference between class and



3. Describe operator overloading. Which are the operators that cannot be overloaded?

Answer : Operator overloading is a technique by which operators used in a programming language are implemented in user-defined types with customized logic that is based on the types of arguments passed.

Operator overloading facilitates the specification of user-defined implementation for operations wherein one or both operands are of user-defined class or structure type. This helps user-defined types to behave much like the fundamental primitive data types. Operator overloading is helpful in cases where the operators used for certain types provide semantics related to the domain context and syntactic support as found in the programming





4. What are the advantages of Polymorphism? How it can be implemented?

Answer : Polymorphism is the ability to exist in different forms. OOP allows objects belonging to different data types to respond to calls of methods of the same name, each one according to an appropriate type-specific behavior.

Polymorphism defines the functionality of difference with a single name / interface. Different types of actions are defined by using one entity / method, which saves the time in investing the name of different method names. The action is determined by the common nature of the action. For example, adding integers and floating point values. The action is common. One interface, and multiple methods is the concept of polymorphism




5. Differentiate between Containers and Iterators
Answer : Containers and iterators

If you don’t know how many objects you’re going to need to solve a particular problem, or how long they will last, you also don’t know how to store those objects. How can you know how much space to create? You can’t, since that information isn’t known until run time.

The solution to most problems in object-oriented


6. Describe the two basic exception handling models.

Answer : Exception handling is the process of responding to the occurrence, during computation, of exceptions – anomalous or exceptional conditions requiring special processing – often changing the normal flow of program execution. It is provided by specialized programming language constructs or computer hardware mechanisms.

An exception is a problem that arises during the execution of a program. An exception can occur for many different reasons, including the following:

Dear students get fully solved assignments
Send your semester & Specialization name to our mail id :
help.mbaassignments@gmail.com
or
call us at : 08263069601