How To Exam?

a knowledge trading engine...


Andhra University 2007 B.E Computer Science quesion s - Question Paper

Wednesday, 01 May 2013 06:00Web

ques. 1: 1 of the components of a computer is its CPU. What is a CPU and what role does it play in a computer?

Answer: The CPU, or Central Processing Unit, is the active part of the computer. Its function is to execute programs that are coded in machine language and stored in the main memory (RAM) of the computer. It does this by repeating the fetch-and-execute cycle over and over; that is, it repeatedly fetches a machine language instruction from memory and executes it.

ques. 2: discuss what is meant by an "asynchronous event." provide a few examples.

Answer: An asynchronous event is 1 that occurs at an unpredictable time outside the control of the program that the CPU is running. It is not "synchronized" with the program. An example would be when the user presses a key on the keyboard or clicks the mouse button. (These events generate "interrupts" that reason the CPU to interrupt what it is doing and to take a few action to handle the asynchronous event. After handling the event, the CPU returns to what it was doing before it was interrupted.)

ques. 3: What is the difference ranging from a "compiler" and an "interpreter"?

Answer: Compilers and interpreters have similar functions: They take a program written in a few programming language and translate it into machine language. A compiler does the translation all at once. It produces a complete machine language program that can then be executed. An interpreter, on the other hand, just translates 1 instruction at a time, and then executes that instruction immediately. (Java uses a compiler to translate java programs into Java Bytecode, which is a machine language for the imaginary Java Virtual Machine. Java Bytecode programs are then executed by an interpreter.)

ques. 4: discuss the difference ranging from high-level languages and machine language.

Answer: Programs written in the machine language of a provided kind of computer can be directly executed by the CPU of that kind of computer. High-level language programs must be translated into machine language before they can be executed. (Machine language instructions are encoded as binary numbers that are meant to be used by a machine, not learn or written by people. High-level languages use a syntax that is closer to human language.)

ques. 5: If you have the source code for a Java program, and you want to run that program, you will need both a compiler and an interpreter. What does the Java compiler do, and what does the Java interpreter do?

Answer: The Java compiler translates Java programs into a language called Java bytecode. Although bytecode is similar to machine language, it is not the machine language of any true computer. A Java interpreter is used to run the compiled Java bytecode program. (Each kind of computer needs its own Java bytecode interpreter, but all these interpreters interpret the identical bytecode language.)

ques. 6: What is a subroutine?

Answer: A subroutine is a set of instructions for performing a few task that have been grouped together and provided a name. Later, when that task needs to be performed, it is only necessary to call the subroutine by giving its name, rather than repeating the whole sequence of instructions.

ques. 7: Java is an object-oriented programming language. What is an object?

Answer: An object consists of a few data together with a set of subroutines that manipulate that data. (An object is a type of "module," or self-contained entity that communicates with the rest of the world through a well-defined interface. An object should represent a few coherent concept or real-world object.)

ques. 8: What is a variable? (There are 4 various ideas associated with variables in Java. Try to mention all 4 aspects in your ans. Hint: 1 of the aspects is the variable's name.)

Answer: A variable is a memory location that has been provided a name so that it can easily be referred to in a program. The variable holds a value, which must be of a few specified kind. The value can be changed during the course of the execution of the program.

ques. 9: Java is a "platform-independent language." What does this mean?

Answer: A Java program can be compiled once into a Java Bytecode program. The compiled program can then be run on any computer that has an interpreter for the Java virtual machine. Other languages have to be re-compiled for every platform on which they are going to run. The point about Java is that it can be executed on many various kinds of computers without being recompiled.

ques. 10: What is the "Internet"? provide a few examples of how it is used. (What type of services does it provide?)

Answer: The Internet is a network connecting millions of computers around the world. Computers connected to the Internet can communicate with every other. The Internet can be used for Email (which lets a user of 1 computer send a message to a user on a different computer), file sharing (which is used to copy files ranging from computers), and the World Wide Web (which lets a user view "pages" of info published on computers around the world).




( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Andhra University 2007 B.E Computer Science quesion s - Question Paper