Posts

Showing posts from July, 2014

Question and answer

Image
1. Name the components of CPU Answer: a) ALU    b) PC   c) Accumulator   d) MAR   e) IR    f) ID   g) MDR 2. What is the use of registers in CPU? Answer: It is used to store intermediate data and instructions. 3. What is the function of MAR? Answer: It specifies the address of memory location from which data or instruction is to be accessed or to which the data is to be stored. 4. What is the function of MDR / MBR? Answer: It contains the data to be written into or read from memory location addressed by MAR. 5. What is program counter? Answer: It keeps track of the memory address of the instruction that is to be executed next. 6. What is the function of IR? Answer: It contains the instruction that is being executed. 7. What is the purpose of Instruction Decoder? Answer: It decodes the instructions. 8. What is a data bus? Answer: It carries a word to or from memory. ...

Functions based Qs and answer in C programming

1. What is a function? Answer:- A function is a small segment of the program(sub program) designed to perform a specific task and return a result to the main or calling program. 2. What are the different types of functions supported in “C” language? Answer:- C supports two types of functions. They are 1. Built-in / Library functions 2. User defined functions 3. What are library functions? Answer:- Some of the operations are programmed and stored in C library so that they can be called in the program. These functions are called as library functions. Eg : printf(), sqrt(), pow() 4. What is a user defined function? Answer:- A user-defined function is a complete and independent program unit, which can be used(or invoked) by the main program or by other sub-programs. 5. Mention the need for a function Answer:- If there are a number of statements that are repeatedly needed in the same program at different locations,then a function may be used. 6. What do you mean by a calling ...

Array based Qs and answers

1) What is an array? Answer:- An array is a group of data of the same data type stored in successive storage locations. 2)How are elements of an array accessed? Answer:- Elements of an array are accessed using subscripts. 3)What is a subscript? Answer:- A subscript or an index is a positive integer value that identifies the storage position of an element in the array. 4)Which is the smallest subscript? Answer:- 0 (zero) 5)How many subscripts does a one and two dimensional array have? Answer:- one dimensional array has one subscript and a two dimensional array has two subscripts( row and a column subscript). 6)Write the syntax for declaring a one dimensional array. Answer:- syntax: datatype arrayname [size]; 7) Write the syntax for declaring a two dimensional array. Answer:- Syntax: datatype arrayname [row size] [column size]; 8) What do you mean by initializing an array? Answer:- Initializing of an array means storing data in to ...

Unix based Qs and ans

1. What are the events done by the Kernel after a process is being swapped out from the main memory? Answer :- 1.Kernel decrements the Reference Count of each region of the process. If the reference count becomes zero, swaps the region out of the main memory, 2.Kernel allocates the space for the swapping process in the swap device, 3.Kernel locks the other swapping process while the current swapping operation is going on, 4.The Kernel saves the swap address of the region in the region table. 2.Is the Process before and after the swap are the same? Give reason. Answer :- 1.Process before swapping is residing in the primary memory in its original form. The regions (text, data and stack) may not be occupied fully by the process, there may be few empty slots in any of the regions and while swapping Kernel do not bother about the empty slots while swapping the process out. 2.After swapping the process resides in the swap (secondary memory) device. The regions swapped out w...

Install Windows

To install Windows XP operating system follow steps :- Minimum System Requirements:- 300 MHz Intel or AMD CPU 128 megabytes (MB) of system RAM 1.5 gigabytes (GB) of available drive space Super VGA (800x600) or higher display adapter CD or DVD-ROM Keyboard and mouse, or other pointing devices Network Interface Adapter required for Internet and Network Connectivity Turn your computer on then press Del or F2 to enter the system BIOS Go to Boot menu and choose Boot From CD/DVD. Press F10 to save the configuration and exit BIOS then reset your computer. Insert Windows XP DVD into your DVD drive then start up your computer, Step 1:- Load the installer .  Once your Boot Order is set, insert the Windows XP CD into your drive and Save and Exit from the BIOS. Your computer will reboot and you will be presented with the message: Press any key to boot from CD. Press any key on your keyboard to start the Setup program. Setup will load files necessary to begin the installatio...

Solve Computer Science Questions

1. With four programs in memory and with 80% average I/O wait , the CPU utilization is? A) 60 % B) 70 % C) 90 % D) 100 % 2. To employ multi - access in GSM , users are given different: A) time slots B) bandpass filters C) handsets D) frequency bands 3.What will be the value of 'b' after the execution of the following code statements: c = 10; b = ++c + ++c; A) 20 B) 22 C) 23 D) None 4. What of the following does not represent a valid storage class in 'c'? A) automatic B) static C) union D) extern 5. Find the odd man out : A) tail B) cut C) wart D) sed 6. We can not delete the ____icon but we can made it invisible. A) Recycle B) My computer C) Internet explorer D) None of the above 7. The device which connects dissimilar LAN's of different topologies using different sets of communication protocols so that information can flow from one to another is called: A) Router B) Bridge C) Gateway D) Switch 8. Capability Maturity Model is meant for; ...

Solve Questions on GK and common

Image
1. Find out the wrong number in the sequence. 52, 51, 48, 43, 34, 27, 16 A) 27 B) 34 C) 43 D) 48 2. The letters in the first set have a certain relationship. On the basis of this relationship mark the right choice for the second set: A) FHJL B) RPNL C) LNPR D) LJHF 3.Insert the missing number in the following: 3, 8, 18, 23, 33, ?, 48 A) 37 B) 40 C) 38 D) 45 4.In a certain code ,CLOCK is written as KCOLC.How would STEPS be written in that code? A) SPEST B) SPSET C) SPETS D) SEPTS 5. 'No man are mortal'  is contradictory of: A) Some man are mortal B) Some man are not mortal C) All men are mortal D) No mortal is man 6.Two ladies and two men are playing bridge and seated at North, East, South and West of a table. No lady is facing East.Persons sitting opposite to each other are not of the same sex. One man is facing South. Which direction are the laddies facing to? A) East and West B) North and West C) South East D) None of these...

SEO

Image
SEO: Search Engine Optimization Search engine optimization (SEO) is the process of affecting the visibility of a website or a web page in a search engine's "natural" or un-paid ("organic") search results. There are two ways of doing SEO On-Page SEO- This includes providing good content, good keywords selection. putting keywords on correct places, giving appropriate title to every page etc. Off-Page SEO - This includes link building, increasing link popularity by submitting in open directories, search engines, link exchange etc. SEO may target different kinds of search, including image search, local search, video search, academic search,news search and industry-specific vertical search engines. Search engines perform several activities in order to deliver search results like, 1.Crawling 2.Indexing 3.Processing 4.Calculating Relevancy 5.Retrieving Results SEO techniques are classified into two broad categories: 1.Techniques that search engi...

To learn Multiplication tables

Multiplication Tables:- 0 1 2 3 4 5 6  0 * 1 = 0  0 * 2 = 0 0 * 3  = 0 0 * 4 = 0 0 * 5 = 0 0 * 6 = 0 0 * 7= 0 0 * 8 = 0 0 * 9 = 0 0 * 10 = 0 0 * 11 = 0 0 * 12 = 0 1 * 1 = 1 1 * 2  = 2 1 * 3  = 3 1 * 4 = 4 1 * 5= 5 1 * 6 = 6 1 * 7 = 7 1 * 8 = 8 1 * 9 = 9 1 * 10 = 10 1 * 11 = 11 1 * 12 = 12   2 * 1 = 02 2 * 2 = 04 2 * 3 = 06 2 * 4 = 08 2 * 5 = 10 2 * 6 = 12 2 * 7 = 14 2 * 8 = 16 2 * 9 = 18 2 * 10 = 20 2 * 11 = 22 2 * 12 = 24 3 * 1 = 03 3 * 2 = 06 3 * 3 = 09 3 * 4 = 12 3 * 5 = 15 3 *  6 = 18 3 * 7 = 21 3 * 8 = 24 3 * 9 = 27 3 * 10 = 30 3 * 11 = 33 3 * 12 = 36 4 * 1 = 04 4 * 2 = 08 4 * 3 =  12 4 * 4 = 16 4 * 5 = 20 4 * 6 = 24 4 * 7 = 28 4 *  8 = 32 4 * 9 = 36 4 * 10 = 40 4 * 11 = 44 4 * 12 = 48 5 * 1 = 05 5 * 2 = 10 5 * 3 = 15 5 * 4 = 20 5 * 5 = 25 5 * 6 = 30 5 * 7 = 35 5 * 8 = 40 5 * 9 = 45 5 * 10 = 50 5 * 11 = 55 5 * 12 = 60 6 * 1 = 06 6 * 2 = 12 6 ...

Java

Image
Java Programming Language:  Java is a computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another. Java applications are typically compiled to byte-code (class file) that can run on any Java virtual machine (JVM) regardless of computer architecture. Java is, as of 2014, one of the most popular programming languages in use, particularly for client-server web applications, with a reported 9 million developers. Figure :-Java Logo  Java is: Architectural-neutral: Java compiler generates an architecture-neutral object file format which makes the compiled code to be executable on many processors, with the presence of Java run-time system. Distributed: Java is designed for the distributed envi...

PHP

Image
PHP is a recursive acronym for "Hypertext Preprocessor". PHP is a widely-used, open source scripting language. PHP scripts are executed on the server. PHP costs nothing, it is free to download and use. PHP files can contain text, HTML, CSS, JavaScript, and PHP code. PHP code are executed on the server, and the result is returned to the browser as plain HTML. PHP files have extension ".php". PHP can generate dynamic page content. PHP can create, open, read, write, delete, and close files on the server. PHP can collect form data. PHP can send and receive cookies. PHP can add, delete, modify data in your database. PHP can restrict users to access some pages on your website. PHP can encrypt data. PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.). PHP is compatible with almost all servers used today (Apache, IIS, etc.). PHP supports a wide range of databases. PHP is easy to learn and runs efficiently on the server...

Mac OS

Image
The Mac OS is designed to run on Machintosh computers . It is a very powerful and easy-to-use operating system .It is the world most advanced operating system and the newest version of OS X is free with strongest security. The latest version of the Machintosh operating system is OS X. This operating system provides a number of unique features: Aqua   is an intuitive user interface. Dock provides a flexible tool for organizing files. Sherlock locates information on the Web as well as on the user's computer system.                                                       Figure :- OS X OS X:- OS X is the line of graphical operating systems developed, marketed, and sold by Apple Inc. which succeeded the origi...

Device Drivers

What are Device drivers? How are device drivers updated?  Answer:- Device drivers  are specialized programs that allow device such as mouse, printer, scanner or keyboard to communicate with the rest of the computer system. Every device, such as a mouse or printer , that is connected to a computer system, has a special program associated with it. This program , called a device driver or simply a driver, works with the operating system to allow communication between the device and the rest of the computer system. Each time the computer system is started, the operating system loads all the device drivers into memory. Whenever a new device is added to a computer system, a new device driver must be installed before the device can be used . Windows supplies hundreds of different device drivers with its system software. If a particular device driver is not included , the product's manufacturer will supply one. Many time these drivers are available directly form manufacture...

Process States and Transitions

List containing complete set of process states: 1. The process is executing in user mode. 2. The process is executing in kernel mode. 3. The process is not executing but is ready to run as soon as the kernel schedules it. 4. The process is sleeping and resides in main memory . 5. The process is ready to run , but swapper (process 0) must swap the process into main memory before the kernel can schedule it to execute. 6. The process is sleeping, and the swapper has swapped the process to secondary storage to make room for other processes in main memory. 7. The process is returning from the kernel to user mode ,but the kernel preemprts it and does a context switch to schedule another process.The distinction between this state and state 3 (ready to run) will be brought out shortly. 8. The process is newly created and is in a transition state ; the process exists, but it is not ready to run , nor is it sleeping . This state  is the start for all processes except process 0. 9. ...

Buffer

Definition :- The kernel could read and write directly to and from the disk for all file system accesses,but system response time and throughput would be poor because of the slow disk transfer rate . The kernel therefore attempts to minimize frequency of disk access by keeping a pool  of internal data buffers,called the buffer cache which contains the data in recently used disk blocks. A buffer contains two parts: a memory array that contains data from the disk and a buffer header that identifies the buffer. The status of buffer is a combination of the following conditions: 1. The buffer is  currently locked. 2. The buffer contains valid data  3. The kernel must write the buffer contents to disk before reassigning the buffer this condition is known as "delayed-write" 4. The kernel is currently reading or writing the contents of the buffer to disk. 5. A process is currently waiting for the buffer to become free Structure of the buffer pool: The kernel cache...

Solve and Test Arithmetic questions

Q1. The  base of a  triangular field is three times its altitude.If the cost of cultivating the field at Rs.24 per hectare be Rs.324, find its base and height. Ans. Height = 300m , base= 900m Q2 The average monthly expenditure of a family was Rs.4,050 during first 3 months, Rs. 4,260 during next 4 month and Rs.4,346 during last 5 month of the year. If the total saving during the year be Rs.8,720, find the average monthly income. Ans. Rs. 4,970 Q3 The student in three classes are in the ratios 2:3:5. If 20 students are increased in each class ,the ratios changes to4:5:7. What is the total number of student before the increase? Ans. 100 Q4 A papaya tree was planted 2 year ago. It increase at the rate of 20% every year . If  at present , the height of the tree is 540 cm, What was it when the tree was planted? Ans. 375 cm Q5 The sum of the ages of a father and son is 45 year. Five year ago , the product of their ages was 4 times the  father's age at ...

Solve More GK Qs

General Knowledge Questions :- 1) What should be the minimum interval between two successive blood donations? A) 6 weeks B) 3 months C) 6 months D) 8 months Ans::- B) 3 months 2) Food is mainly digested in- A) Liver B) Large intestine C) Small intestine D) Mouth   Ans::- C) Small intestine 3) The large cell in the human body is - A) Nerve Cell B) Muscle Cell C) Liver Cell D) Kidney Cell Ans::- A) Nerve Cell 4) Which of the following is a flightless bird? A) Emu B) Hen C) Swan D) None of these Ans::- A) Emu 5) Meningitis is a disease which affects the - A) Kidneys B) Liver  C) Heart D) Brain Ans::- D) Brain 6) Which of the following is a vector quantity? A) Force B) Momentum C) Energy D) Temperature Ans ::- A) Force 7) The three famous Buddhist sites Ratanagiri ,Lalitgiri and Udaigiri  are located in which of the following States? A) Bihar B) Maharashtra C) U.P. D) Orissa Ans:: - Orissa 8) Who among the fol...