Sunday, January 13, 2008

Windows Advanced RUN commands

Go to Start→ Run and type the following commnds.

Common Commands
Abort Shutdown→ → → → → → → → → → → → → → → →→ → → shutdown -a
Accessibility Wizard→ → → → → → → → → → → → → → → → →accwiz
Address Book → → → → → → → → → → → → → → → → → → → → wab
Address Book Import Tool → → → → → → → → → → → → → → → → wabmig
Administrative Tools → → → → → → → → → → → → → → → →→ → control admintools
Bluetooth Transfer Wizard → → → → → → → → → → → → → → → → fsquirt
Calculator → → → → → → → → → → → → → → → →→ → → → → →calc
Character Map → → → → → → → → → → → → → →→ → → → → → charmap
Check Disk Utility → → → → → → → → → → → → →→ → → → → →chkdsk
Clipboard Viewer → → → → → → → → → → → → →→ → → → → → clipbrd
Command Prompt → → → → → → → → → → → → →→ → → → → →cmd
Component Services → → → → → → → → → → → → →→ → → → → dcomcnfg
Control Panel→ → → → → → → → → → → → →→ → → → → → → →control
Current User Folder →→ →→ → → →"."→ → [ Without quotes type "." ]
Current User Temp Folder →→ → → → →→ → → → → → → → %temp%
DDE Shares → → → → → → → → → → → → →→ → → → → → → →ddeshare
Default Email Client → → → → → → → → → → → → →→ → → → → mailto:
Direct X Troubleshooter → → → → → → → → → → → → →→ → → →dxdiag
Disk Cleanup Utility → → → → → → → → → → → → →→ → → → →cleanmgr
Disk Partition Manager → → → → → → → → → → → → →→ → → → diskpart
Display Properties → → → → → → → → → → → → →→ → → → → → control desktop
Display Properties (w/Appearance Tab Preselected) → → → → control color
Documents and Settings →→ → → → → →".."→ → [ Without quotes type ".." ]
DOS Command Prompt → → → → → → → → → → → → →→ → → →command
Dr. Watson System Troubleshooting Utility → → → → → → → → → → drwtsn32
Driver Verifier Utility → → → → → → → → → → → → →→ → → → verifier
Explorer → → → → → → → → → → → → →→ → → → → → → → explorer
Files and Settings Transfer Tool→ → → → → → → → → → → →migwiz
File Signature Verification Tool → → → → → → → → → → → → → sigverif
Folders Properties → → → → → → → → → → → → →→ → → → → control folders
Fonts Folder → → → → → → → → → → → → →→ → → → → → → fonts
Free Cell Card Game → → → → → → → → → → → → →→ → → → freecell
Hearts Card Game → → → → → → → → → → → → →→ → → → mshearts
Help and Support → → → → → → → → → → → →→ → → → →helpctr
HyperTerminal → → → → → → → → → → → → →→ → → → →hypertrm
Iexpress Wizard → → → → → → → → → → → → →→ → → → → iexpress
Internet Connection Wizard→ → →→ → →icwconn1→ → icwconn[Numeric "1"]
Internet Setup Wizard → → → → → → → → → →→ → → → →inetwiz
IP Configuration (Display Connection Configuration) → →→ → → ipconfig /all
IP Configuration (Display DNS Cache Contents) → → → ipconfig /displaydns
IP Configuration (Delete DNS Cache Contents) → → → → → ipconfig /flushdns
IP Configuration (Release All Connections) → → → → → → ipconfig /release
IP Configuration (Renew All Connections) → → → → → → → → ipconfig /renew
IP Configuration (Refreshes DHCP & Re-Registers DNS) → ipconfig /registerdns
IP Configuration (Display DHCP Class ID) → → → → ipconfig /showclassid
IP Configuration (Modifies DHCP Class ID) → → → → →ipconfig /setclassid
Java Control Panel (If Installed) → → → → → → → → → → → → →javaws
Keyboard Properties → → → → → → → → → → → → →→ → → → control keyboard
Logs You Out Of Windows → → → → → → → → → → → → →→ → logoff
Microsoft Chat → → → → → → → → → → → → →→ → → → → →winchat
Microsoft Outlook Express → → → → → → → → → → → →msimn
Microsoft Paint→ → → → → → → → → → → → →→ → → → → → →pbrush
Microsoft Paint→ → → → → → → → → → → → →→ → → → → → →mspaint
Microsoft Syncronization Tool→ → → → →→ → → → → →mobsync
Minesweeper Game → → → → → → → → → → → → →→ → → → winmine
Mouse Properties → → → → → → → → → → → → →→ → → → →control mouse
My Computer → →"........" → →[ Without quotes type more than two dots"..." ]
Netmeeting→ → → → → → → → → → → → →→ → → → → → → → conf
Network Connections → → → → → → → → →→ → → →control netconnections
Notepad → → → → → → → → → → → → →→ → → → → → → → notepad
Object Packager → → → → → → → → → → → → →→ → → → → packager
On Screen Keyboard → → → → → → → → → → → → →→ → → →osk
Performance Monitor → → → → → → → → → → → → →→ → → →perfmon
Phone Dialer→ → → → → → → → → → → → →→ → → → → → → →dialer
Pinball Game→ → → → → → → → → → → → →→ → → → → → → →pinball
Printers and Faxes → → → → → → → → → → → → →→ → → → →control printers
Printers Folder → → → → → → → → → → → → →→ → → → → → printers
Private Character Editor → → → → → → → → → → → → →→ → →eudcedit
Recycle Bin → "::{645ff040-5081-101b-9f08-00aa002f954e}"[Type without quotes]
Registry Editor → → → → → → → → → → → → →→ → → → → →regedit
Registry Editor → → → → → → → → → → → → →→ → → → → →regedt32
Remote Access Phonebook→ → → → → → →→ → → → → →rasphone
Remote Desktop → → → → → → → → → → → → →→ → → → → mstsc
Scheduled Tasks → → → → → → → → → → → → →→ → → → → control schedtasks
Shuts Down Windows → → → → → → → → → → → → →→ → → →shutdown
Solitaire card game → → → → → → → → → → → → →→ → → → → sol
Spider Solitare Card Game → → → → → → → → → → → → →→ → →spider
SQL Client Configuration → → → → → → → → → → → → →→ → → cliconfg
System Configuration Editor → → → → → → → → → → → → →→ → sysedit
System Configuration Utility → → → → → → → → → → → → →→ → msconfig
System File Checker Utility (Scan Immediately) → → → → → → → →sfc /scannow
System File Checker Utility (Scan Once At Next Boot) → → → → → →sfc /scanonce
System File Checker Utility (Scan On Every Boot) → → →→ → → → → sfc /scanboot
System File Checker Utility (Return to Default Setting) → → → → → → sfc /revert
System File Checker Utility (Purge File Cache) → → → → → → → →sfc /purgecache
System File Checker Utility (Set Cache Size to size x) → → → → →sfc /cachesize=x
System Information → → → → → → → → → → → → →→ → → → → →msinfo32
Task Manager → → → → → → → → → → → → →→ → → → → → →taskmgr
Telnet Client → → → → → → → → → → → → →→ → → → → → → →telnet
User Accounts in control panel → → → →→ → → →→ → control userpasswords
User Accounts tabs → → → → → → →→ → →→ → → → → control userpasswords2
Utility Manager → → → → → → → → → → → → →→ → → → → → utilman
Windows Backup Utility→ → → → → → → → → → →→ → → → ntbackup
Windows Ceursors Folder→ → → → → → → → → → →→ → → → cursors
Windows Magnifier → → → → → → → → → → → → →→ → → → →magnify
Windows preparation folder → → → → → → → → → → → → →→ → prefetch
Windows Media Player → → → → → → → → →→ → → → → →wmplayer
Windows Messenger → → → → → → → → → →→ → → → → → msmsgs
Windows Picture Import Wizard → → → → → → → → → → → wiaacmgr
Windows System Folder → → → → → → → → → → → → →→ system
Windows System32 Folder → → → → → → → → → → → → →→ system32
Windows System Security Tool → → → → → → → → → → → → →→ syskey
Windows Temp Folder → → → → → → → → → → → → →→ → → → → temp
Windows Update Launches → → → → → → → → → → → → →→ → wupdmgr
Windows Version → → → → → → → → → → → → →→ → → → → winver
Windows XP Tour Wizard → → → → → → → → → → → → →→ → tourstart
Wordpad → → → → → → → → → → → → →→ → → → → → → →write
Wordpad → → → → → → → → → → → → →→ → → → → → → →wordpad

MSC commands
Certificate Manager → → → → → → → → → → → → →→ → → → certmgr.msc
Computer Management → → → → → → → → → → → → →→ → →compmgmt.msc
Device Manager → → → → → → → → → → → → →→ → → → → devmgmt.msc
Disk Defragment → → → → → → → → → → → → →→ → → → →dfrg.msc
Disk Management → → → → → → → → → → → → →→ → → → diskmgmt.msc
Event Viewer → → → → → → → → → → → → →→ → → → → →eventvwr.msc
Group Policy Editor (XP Prof) → → → → → → → → → → → → →→gpedit.msc
Indexing Service → → → → → → → → → → → → →→ → → → → ciadv.msc
Local Security Settings → → → → → → → → → → → → →→ → →secpol.msc
Local Users and Groups → → → → → → → → → → → → →→ → →lusrmgr.msc
Performance Monitor → → → → → → → → → → → → →→ → → →perfmon.msc
Removable Storage → → → → → → → → → → → → →→ → → → →ntmsmgr.msc
Removable Storage Operator Requests → → → → → → → → → → → ntmsoprq.msc
Resultant Set of Policy (XP Prof) → → → → → → → → → → → → →→rsop.msc
Services → → → → → → → → → → → → →→ → → → → → → → services.msc
Shared Folders → → → → → → → → → → → → →→ → → → → →fsmgmt.msc
Windows Management Infrastructure → → → → → → → → → → → wmimgmt.msc


CPL commands
Accessibility Controls → → → → → → → → → → → → →→ → → →access.cpl
Add Hardware Wizard → → → → → → → → → → → → →→ → → →hdwwiz.cpl
Add/Remove Programs → → → → → → → → → → → → →→ → → →appwiz.cpl
Automatic Updates → → → → → → → → → → → → →→ → → → → wuaucpl.cpl
Date and Time Properties → → → → → → → → → → → → →→ → →timedate.cpl
Direct X Control Panel (If Installed)* → → → → → → → → → → → →directx.cpl
Display Properties → → → → → → → → → → → → →→ → → → → desk.cpl
Findfast → → → → → → → → → → → → →→ → → → → → → → →findfast.cpl
Game Controllers → → → → → → → → → → → → →→ → → → → →joy.cpl
Internet Properties → → → → → → → → → → → → →→ → → → → →inetcpl.cpl
Java Control Panel (If Installed) → → → → → → → → → → → → →→ →jpicpl32.cpl
Mouse Properties control → → → → → → → → → → → → →→ → → → main.cpl
Network Connections → → → → → → → → → → → → →→ → → → → ncpa.cpl
Network Setup Wizard → → → → → → → → → → → → →→ → → → →netsetup.cpl
Nview Desktop Manager(If Installed) → → → → → → → → → → → → →nvtuicpl.cpl
ODBC Data Source Administrator → → → → → → → → → → → → →→ odbccp32.cpl
Opens AC3 Filter (If Installed) → → → → → → → → → → → → →→ → ac3filter.cpl
Password Properties → → → → → → → → → → → → →→ → → → → password.cpl
Phone and Modem Options → → → → → → → → → → → → →→ → →telephon.cpl
Power Configuration → → → → → → → → → → → → →→ → → → → powercfg.cpl
Quicktime (If Installed) → → → → → → → → → → → → →→ → → → QuickTime.cpl
Regional Settings → → → → → → → → → → → → →→ → → → → →intl.cpl
Scanners and Cameras → → → → → → → → → → → → →→ → → → sticpl.cpl
Security Center → → → → → → → → → → → → →→ → → → → → →wscui.cpl
Sounds and Audio → → → → → → → → → → → → →→ → → → → → mmsys.cpl
System Properties → → → → → → → → → → → → →→ → → → → →sysdm.cpl
User Account Management → → → → → → → → → → → → →→ → →nusrmgr.cpl
Windows Firewall → → → → → → → → → → → → →→ → → → → → firewall.cpl

Thursday, January 10, 2008

Windows Keyboard Shortcuts

Windows system key combinations
F1: Help
CTRL+ESC: Open Start menu
ALT+TAB: Switch between open programs
ALT+F4: Quit program
SHIFT+DELETE: Delete item permanently

Windows program key combinations
CTRL+C: Copy
CTRL+X: Cut
CTRL+V: Paste
CTRL+Z: Undo
CTRL+B: Bold
CTRL+U: Underline
CTRL+I: Italic

Mouse click/keyboard modifier combinations for shell objects
SHIFT+right click: Displays a shortcut menu containing alternative commands
SHIFT+double click: Runs the alternate default command (the second item on the menu)
ALT+double click: Displays properties
SHIFT+DELETE: Deletes an item immediately without placing it in the Recycle Bin

General keyboard-only commands
F1: Starts Windows Help
F10: Activates menu bar options
SHIFT+F10 Opens a shortcut menu for the selected item (this is the same as right-clicking an object
CTRL+ESC: Opens the Start menu (use the ARROW keys to select an item)
CTRL+ESC or ESC: Selects the Start button (press TAB to select the taskbar, or press SHIFT+F10 for a context menu)
ALT+DOWN ARROW: Opens a drop-down list box
ALT+TAB: Switch to another running program (hold down the ALT key and then press the TAB key to view the task-switching window)
SHIFT: Press and hold down the SHIFT key while you insert a CD-ROM to bypass the automatic-run feature
ALT+SPACE: Displays the main window's System menu (from the System menu, you can restore, move, resize, minimize, maximize, or close the window)
ALT+- (ALT+hyphen): Displays the Multiple Document Interface (MDI) child window's System menu (from the MDI child window's System menu, you can restore, move, resize, minimize, maximize, or close the child window)
CTRL+TAB: Switch to the next child window of a Multiple Document Interface (MDI) program
ALT+underlined letter in menu: Opens the menu
ALT+F4: Closes the current window
CTRL+F4: Closes the current Multiple Document Interface (MDI) window
ALT+F6: Switch between multiple windows in the same program (for example, when the Notepad Find dialog box is displayed, ALT+F6 switches between the Find dialog box and the main Notepad window)

Shell objects and general folder/Windows Explorer shortcuts
For a selected object: • F2: Rename object
F3: Find all files
CTRL+X: Cut
CTRL+C: Copy
CTRL+V: Paste
SHIFT+DELETE: Delete selection immediately, without moving the item to the Recycle Bin
• ALT+ENTER: Open the properties for the selected object

To copy a file
Press and hold down the CTRL key while you drag the file to another folder.
To create a shortcut
Press and hold down CTRL+SHIFT while you drag a file to the desktop or a folder.

General folder/shortcut control
F4: Selects the Go To A Different Folder box and moves down the entries in the box (if the toolbar is active in Windows Explorer)
F5: Refreshes the current window.
F6: Moves among panes in Windows Explorer
CTRL+G: Opens the Go To Folder tool (in Windows 95 Windows Explorer only)
CTRL+Z: Undo the last command
CTRL+A: Select all the items in the current window
BACKSPACE: Switch to the parent folder
SHIFT+click+Close button: For folders, close the current folder plus all parent folders

Windows Explorer tree control
Numeric Keypad *: Expands everything under the current selection
Numeric Keypad +: Expands the current selection
Numeric Keypad -: Collapses the current selection.
RIGHT ARROW: Expands the current selection if it is not expanded, otherwise goes to the first child
LEFT ARROW: Collapses the current selection if it is expanded, otherwise goes to the parent

Properties control
CTRL+TAB/CTRL+SHIFT+TAB: Move through the property tabs

Accessibility shortcuts
Press SHIFT five times: Toggles StickyKeys on and off
Press down and hold the right SHIFT key for eight seconds: Toggles FilterKeys on and off
Press down and hold the NUM LOCK key for five seconds: Toggles ToggleKeys on and off
Left ALT+left SHIFT+NUM LOCK: Toggles MouseKeys on and off
Left ALT+left SHIFT+PRINT SCREEN: Toggles high contrast on and off

Microsoft Natural Keyboard keys
Windows Logo: Start menu
Windows Logo+R: Run dialog box
Windows Logo+M: Minimize all
SHIFT+Windows Logo+M: Undo minimize all
Windows Logo+F1: Help
Windows Logo+E: Windows Explorer
Windows Logo+F: Find files or folders
Windows Logo+D: Minimizes all open windows and displays the desktop
CTRL+Windows Logo+F: Find computer
CTRL+Windows Logo+TAB: Moves focus from Start, to the Quick Launch toolbar, to the system tray (use RIGHT ARROW or LEFT ARROW to move focus to items on the Quick Launch toolbar and the system tray)
Windows Logo+TAB: Cycle through taskbar buttons
Windows Logo+Break: System Properties dialog box
Application key: Displays a shortcut menu for the selected item

Microsoft Natural Keyboard with IntelliType software installed
Windows Logo+L: Log off Windows
Windows Logo+P: Starts Print Manager
Windows Logo+C: Opens Control Panel
Windows Logo+V: Starts Clipboard
Windows Logo+K: Opens Keyboard Properties dialog box
Windows Logo+I: Opens Mouse Properties dialog box
Windows Logo+A: Starts Accessibility Options (if installed)
Windows Logo+SPACEBAR: Displays the list of Microsoft IntelliType shortcut keys
Windows Logo+S: Toggles CAPS LOCK on and off
   
Dialog box keyboard commands
TAB: Move to the next control in the dialog box
SHIFT+TAB: Move to the previous control in the dialog box
SPACEBAR: If the current control is a button, this clicks the button. If the current control is a check box, this toggles the check box. If the current control is an option, this selects the option.
ENTER: Equivalent to clicking the selected button (the button with the outline)
ESC: Equivalent to clicking the Cancel button
ALT+underlined letter in dialog box item: Move to the corresponding item

Sunday, January 6, 2008

ABOUT PC



Introduction to the PC

This mini-guide—it’s too small to be considered a full Guide like the others—is intended for the newcomer to the world of computers. It describes computers in general terms, and is intended to give you an understanding of how they work and what they do at a high level. The sections below provide information about some of the basics, and will help you understand better some of the other descriptions on the site. I also provide an overview of the different parts of a PC and how they work.
This mini guide also contains a section on PC fundamentals, many of which form the basis of understanding more complex PC components and technologies.
How the PC Works
In this chapter I will start from the very beginning, and discuss how computers work from the ground up. This will give the beginner a good understanding of how computers work. If all of this seems familiar you might consider just skimming or even skipping this introductory mini-guide.
The Computer’s Primary Jobs
All computers, from the first room-sized mainframes, to today’s powerful desktop, laptop and even hand-held PCs, perform the same general operations on information. What changes over time is the information handled, how it is handled, how much is moved around, and how quickly and efficiently it can be done. The sections below describe the primary jobs that computers perform
Information Processing (Computation)
When you think about a computer and what it does, you of course think that it.. well.. computes. And this is indeed one part of its job. Computing is really another term for “information transformation”—changing information from one form to another. The computer spends a goodly amount of its time doing exactly this: performing math operations (changing numbers into other numbers), and translating information from one form to another (for example when a game determines using mathematics, what to display on the screen for you to see).
One special form of information the computer processes is its instructions. These are the commands that programmers give the computer to tell it what to do. Every time you do anything with a computer, you are really talking to a program which is talking to the computer. The language that computers speak, which is called machine language, is very complex and hard to understand, which is why it is hidden from all but the most technically-proficient engineers. Even most programmers never use machine language directly.
The key part of the computer that processes information is of course, the processor.
Information Storage
The computer stores different types of information in different ways, depending on what the information is, how much storage space it requires, and how quickly it needs to be accessed. This information is stored in its “short term” memory and its “long term” memory.
Your system memory (or RAM) holds information that you or the computer are working with right now. This is the computer’s “short term memory”, and is designed to be able to feed information to the processor at high speed so the processor isn’t slowed down too much while waiting for it. However, this short-term memory disappears when the computer is turned off. This is why you must always save a file that you are working on before turning off the machine.
Longer-term storage is provided by your hard disk drive, floppy drive and other devices, where information is stored permanently in the form of files, ready for you to retrieve when you need it. When you want to use your spreadsheet program, for example, the computer loads the instructions that are stored on the hard disk that tell the computer how to run it, from long-term storage (your hard disk) into short-term memory.
Information Movement and Communication
The computer also controls the movement of information from place to place. It reads the information you type on the keyboard, moves it into memory and eventually displays it on the screen or stores it in a file. This movement is called input/output or I/O and is how the computer talks to you as well as devices that are connected to it.
Moving information between machines is also an important part of modern computing. The computer uses networking components, modems and cables to allow it to communicate with other machines. This is often called, unsurprisingly, communications
How the Computer Computes
At its simplest, a computer is a device that manipulates information, sometimes also called “data”. Information can and does take many forms. You can see these different forms every time you use your computer. The words you are reading right now, the signals from the keys you press on your keyboard, the files you load on your hard disk—all are different types of information that your computer manipulates.
This section takes a look at some of the basics of how computers function. These are the principles that underly everything that happens within the computer.
Digital and Analog Information
There are two ways to represent information. Information that is continuous, that is, any piece of information can take on any of an infinite set of values, is said to be analog. For example, the time, the temperature, the speed of your car—all of these have a continuous range of values. While you say, for example, that it is 55 degrees outside, it could really be 55.12492 degrees, or any value between that and
55.
Digital information is restricted to a finite set of values. For example, a traffic light is (normally) red, yellow or green; not “yellow-green” or orange. Computers use a form of digital information called binary information. Here, the information is restricted to only two values: one or zero. Computers use binary information for several reasons:
• Simplicity: It is the simplest, most compact and least ambiguous way to express information
about something: for example, zero=off and one=on could be used to represent the status of a
regular light bulb.
• Expandability: It is easy to build on and expand: you can use two binary values together to
represent the status of two light bulbs.
• Clarity: Errors are reduced when a value can only be one or zero; the computer knows there are
no values in between, which is useful when electrical signals become “dirty”. If a 0.95 value
shows up on your modem line, the computer knows it is probably really a 1, since 0.95 isn’t a
valid value. It will interpret the 0.95 as a 1, and no data will be lost as a result.
• Speed: Computers make millions of decisions a second, and these decisions are easier to make
when the number of values is small.
Digital information is often represented only in binary form, but does not have to be. A good example is compact disk audio, where sound information is stored as digital samples. The advantage of digital sampling is that the information is the same every time it is read, so there is no “loss” in quality over time as found in conventional magnetic analog storage media.
The Mathematics of Computing
Humans represent numbers using decimal notation: that is, each digit can have one of ten values, zero through nine. This is also called base 10 mathematics and no doubt arose for biological reasons (we have ten fingers). Binary information uses only ones and zeros of course, which would bebase 2 mathematics. Just as with regular numbers you start at 0, count to 9, and then reset the 9 to a 0 and add a 1 in the “tens” place, with binary information you start at 0, count to 1, then reset the 1 to a 0 and add a 1 in the “twos” place. So binary counting goes like this: 0, 1, 10, 11, 100, 101, 110, 111, 1000, etc. Each digit in a binary number is a bit, which is a contraction of “binary digit”.
The number 111 is the binary equivalent of the decimal number 7. How? Just as 111 in decimal means 100 (10 to the second power) plus 10 (10 to the first power) plus 1, in binary 111 is 4 (2 to the second power) plus 2 (2 to the first power) plus 1, which is 7. As you can see, binary numbers can get pretty long. For example, the number 181 in decimal is 10110101 in binary. This can get quite cumbersome, and large numbers are often represented using 32, 64 or even more bits.
A shorthand for binary numbers is hexadecimal notation. These are numbers in base 16 mathematics. Each digit can take on any value from 0 to 15. Since 16 is 2 to the fourth power, four bits can take on a value from 0 to 15. This means 4 binary digits can be replaced by one equivalent hexadecimal digit. So 10110101 in binary can be broken into two 4-bit pairs, 1011 and 0101. These taken individually are 11 and 5, so 10110101 in binary is (11)5 in hexadecimal notation.
You can see the problem here of course: we only have 10 different symbols to represent numbers in our language, but hexadecimal requires 16! Having to use (11) in a single digit place is confusing. To get around this, hexadecimal numbers use the letters A through F to represent 10 through 15 (0 to 9 are of course represented by 0 to 9). So instead of saying (11)5, we say the decimal number 181 is “B5” in hexadecimal notation (or hex for short).
It can sometimes be hard to tell if a number is decimal or hexadecimal just by looking at it: if you just see “44”, does that mean 44 (“44” in decimal) or 68 (“44” in hexadecimal)? To get around this problem, two common notations are used to indicate hexadecimal numbers. The first is the suffix of a lower-case “h”.
The second is the prefix of “0x”. So “B5 in hexadecimal”, “B5h” and “0xB5” all mean the same thing (as does the somewhat redundant “0xB5h”). A set of eight bits, or two hexadecimal digits, is called a byte. “B5h” is one byte of information. Bytes are commonly used when talking about how much information something can hold, because in most cases one byte is one character. Each character you read on this screen is represented by one byte (in most cases), as part of the ASCII character set.
Computer addresses are commonly expressed in hexadecimal notation. For example, the I/O port address commonly used by the computer to talk to your printer is address 378h. Note how the “h” helps you realize this is a hex number and not the decimal number “378”.
Hardware and Software
As you know, a computer is made up of hardware and software. In some ways the analogy can be made to humans that the hardware is your body and the software is your mind. If the processor is the computer’s “brain” then the software is what that brain “thinks”. Each and every thing that happens inside the computer is controlled by some form of software: from the high level spreadsheets, games and other applications, to the low-level device drivers that tell your hardware exactly what it has to do to make them work properly.
Continuing the analogy to the human body, it is important to realize that much the way humanity is comprised of both the physical and mental, a computer is nothing without both hardware and software. In fact, even many hardware items have their own controlling software. Software is starting to appear in the most amazing places!
Human Instructions and Computer Instructions
An exercise: sort the following letters into alphabetical order: G B Y R V O. Most people can perform this task in 5 to 10 seconds. A modern PC can do it in less than 1/1000th of a second. Is the PC smarter? No, not even close. In fact, the PC doesn’t know how to sort anything at all. A processor only understands a few limited instructions, which are usually quite primitive: for example, a processor can multiply two numbers, or make a decision based on the result of comparing a number against another one. All programs you use on your PC are built from these mathematical “building blocks”, even though their complex appearance makes this difficult to believe.
To get the computer to be able to sort the letters, someone has to write a program that is constructed from the processor’s simple building blocks and performs the task that is needed. Once this is done, the computer can do the work so quickly because it has such raw speed: processors can execute many millions of instructions a second. The computer is not something to be compared to a genius, but more to a hard worker that has to be shown specifically how to make something but then can make it incredibly rapidly.
Let’s take our letters again: G B Y R V O. Now, instead of sorting them alphabetically, I will tell you that each is the first letter of a common color, and I’d like you to sort them in the order you’d find them in a rainbow. A human can adapt to this changed task and perform it in less than a minute; but for the computer, it’s a totally different matter! The program written to sort the letters has no idea about colors, and has no way to start viewing the letters in that way. To accomplish this new task, a totally different program would have to be written, which would have to include information about colors and their names, what a rainbow looks like, etc. Now once written, the computer could sort these six letters from any random order you chose, a thousand times a second! But until it was written, the PC’s response to being asked to perform this task would be the computer equivalent of “Huh?”. As you can see, humans and computers excel at very different types of tasks, and the computer can only do what it is programmed to do.
One more thing: if I ask you to theorize as to the probable cause for the extinction of the dinosaurs, you can use your accumulated experience and knowledge, combine them with your personal beliefs, and give an answer. A computer not only couldn’t give an answer, it wouldn’t know where to start trying to figure it out, and there is no programmer on the planet that could make it perform this type of “computation” at all. There are some things that computers just cannot do at all—yet.
Computer Languages
The only languages that computers understand is their own binary machine language. So for example, simply to tell the computer to add the numbers 181 and 207 together, the command might be “01101001 00110100 10110101 11001101”. Who could write a 3D action game like that? Nobody, which is why a different method was invented to tell the program what to do.
Higher-level languages act as a “compromise” between what the computer understands and what the human programmer understands. They are not like natural spoken languages, but they use symbols that are relatively easy to learn. For example, in a high-level language, the command to add those numbers might be “X = 181 + 207”. C, C++, BASIC, FORTRAN and Java are examples of these sorts of languages.
But how does the computer know what to do with “X = 181 + 207”? It doesn’t. A special program called a compiler is used to translate (or compile) the high-level language instructions into a form the computer can understand. This lets both the computer and the human work in terms they can understand well.
Example: What Happens When You Press A Key
To illustrate how the computer works, let’s take a very simple example. Let’s suppose you are working in your word processor and you type the letter “M”. Here’s what happens, in general terms, when you press the “M” button:
• The keyboard sends an electrical signal, called a scan code, to the computer saying that a button was pressed. • The keyboard controller interprets the scan code and determines that the letter pressed was an “M”. It stores this “M” in a special memory location until the processor is ready to deal with it.
• The controller sends a signal to the processor, called an interrupt. An interrupt tells the processor that some part of the computer has information for it to process and wants its attention. In this case, the keyboard controller wants the processor to look at the key you just pressed.
• The processor is almost always doing many things, sharing its time among many tasks. As a result, most every event must wait its turn. The processor services interrupts based on their priority. When it is time to deal with the keypress, the processor routes it to the program for the operating system that you are using.
• Assuming you are using a multi-tasking operating system like Windows, the operating system software decides which window you pressed the key in and sends a message to that window telling it a key was pressed.
• The window decides what to do with the keypress. Since in this case it’s your word processor window, and the key you pressed was an ordinary letter, the word processor will add that letter to its working area for the file you have open. The letter will take one byte of your computer’s memory (RAM). Other keys could be handled differently (for example, if you pressed the key to tell the word processor to exit).
• The window will then call the operating system to display the letter on the screen. • The operating system will display the letter on the screen by adding it to your video card’s video memory.
• The next time the video card refreshes your monitor (re-displays what is in its video memory) the letter will appear on the screen. Most video cards refresh the monitor between 60 and 100 times per second.
Wow, a lot happens even in a simple example like this! This all appears to occur instantaneously because the computer is simply operating at a much faster speed than humans can readily perceive. But despite the illusion created by the speed of the PC, a lot of activity is going on inside the box for even the most basic activity.
In fact, even in the description above, I omitted many steps and details. To list every single step could take dozens of pages, even for just this simple example! The processor itself is handling many thousands of chores every second, and every part of the computer has a job to do on an ongoing basis. This hopefully gives you some idea of how the computer processes, moves, and stores information. Notice that in this example all three activities occurred.
You might feel a bit overwhelmed by this, and think that maybe computers are just too complicated to understand. Fortunately, we don’t really need to understand every little detail that goes on inside them to buy and use them, or even to build them. It is usually enough to know what the parts of the computer are and how they interact.
Overview of Systems and Components
One of the great strengths of the PC platform, that has led to its overwhelming success in the marketplace, is its modularity. Most PCs are made up of many different individual components, which can be mixed and matched in thousands of different configurations. This lets you customize the PC you either buy or build to meet your exact needs.
External view of a complete, modern PC system. (Micron’s New Millennia MAX)
This section discusses some of the major components of a typical, modern PC. Some PCs have some of these combined into one physical unit, but inside, somewhere, you’ll find most if not all of these pieces. (Most modern PCs also have components not listed here; I’ll be expanding this later on to include more device types.) This section is an extremely summarized short form of the Systems and Components Reference Guide.
System Case
The box or outer shell that houses most of the computer, the system case is usually one of the most overlooked parts of the PC. While it may seem inconsequential, the case actually performs several important functions for your PC, including protection for the computer circuits, cooling, and system organization. In addition, the system case is normally purchased together with the system power supply, and must also be matched with the size, shape and electrical requirements of your motherboard. Therefore, it has an impact on your options with these important components as well.
Power
Your computer is obviously an electronic device, and its many components of course require power. Like the case, most people don’t give much thought to the power supplied to the system. The power supply in your PC can be compared to the officials at a baseball game: if they are doing their jobs properly nobody really notices them, but if they aren’t, everybody knows it and isn’t very happy about it. :^)
There are two aspects to power in the PC:
• External Power: External power refers to the power that is delivered to the back of the system case. There are several considerations regarding this power and how it is supplied that will determine if your internal power supply is going to work the way it should.
• Power Supply: The power supply is the small box that sits inside your case and takes the external power you supply to the computer. Its main job is to transform this power into a form the rest of the computer can use.
Motherboard and System Devices
The motherboard is the base of the modern computer system. It is amazing how little attention this critical component gets in mainstream circles, considering how much it does—though this situation is now improving, fortunately. If the processor is the “brain” of the computer, then the motherboard is the central nervous system and circulatory system, plus much more, all rolled into one. Here are the main parts of the motherboard and its related devices:
• Motherboard: The motherboard is the main circuit board in the computer where everything comes together. This is where you plug in your processor, memory, cache, video card and other cards. It is also where you connect your peripherals.
• System Chipset and Controllers: The chipset and other motherboard circuitry are the “smarts” of the motherboard. Their job is to direct traffic and control the flow of information inside the computer. These circuits control the processor’s access to memory, the flow of data to and from peripheral devices and communications lines, and much more. The chipset is a critical part of any computer, because it plays a big role in determining what sorts of features the computer can support. For example, which processors you can use, which types of memory, how fast you can run the machine, and what kind of system buses your PC can use, are all tied in to the type of chipset the motherboard uses.
• System Buses: The system buses are the electrical channels through which various parts of the computer communicate. The physical part of these buses, the part you see, is the set of slots in the back of the machine into which you put your video card, sound card and other cards. It is over the system buses that your video card gets information from the processor, the processor saves data to your hard disk, etc. The architecture chosen for each of the system buses has a great impact on the performance of your PC, as well as dictating your choices for video cards and other devices.
• BIOS: The system BIOS (which stands for Basic Input/Output System and is pronounced “byeoss” or “bye-ose”) is a computer program that is built into the PC’s hardware. It is the lowest-level program that runs on your computer. Its job is to act as an intermediary between your system hardware (the chipset, motherboard, processor and peripherals) and your system software (the operating system). By doing this, the operating system doesn’t have to be made different for every machine, which is why DOS will load on any PC. The BIOS is what runs when you turn on your computer, and what loads your operating system (for example, DOS). The BIOS also allows you to set or change many different parameters that control how your computer will function. For example, you tell the BIOS what sort of hard drives you have so it knows how to access them.
• Cache: The system cache is a small, high-speed memory area that is placed between the processor and the system memory. The value of the cache is that it is much faster than normal system memory. Each time the processor requests a piece of data from the memory, the system first checks the cache to see if the information is there. If it is, then the value is read from cache instead of memory, and the processor can get back to work that much sooner. If it isn’t, then the data is read from memory and given to the processor, but it is also placed into the cache in case the processor needs it again in the near future.
• System Resources: System resources are not actual physical devices; they are nothing you can reach into the machine and touch. But they are very important for two reasons. First, they dictate how your PC organizes its access to various memory areas and devices. Second, they are one of the most common areas where people have problems with the setup of their PCs: so-called resource conflicts. These are the four types of resources that various parts of your computer can sometimes decide to fight over:
• Interrupts (IRQs): As described in the example in the chapter on how the PC works, a device requests time from the processor using these interrupt requests. Under traditional designs, each device has a different IRQ number. If two try to use the same one, a conflict can result. Newer technologies can allow multiple devices to share an IRQ channel.
• Direct Memory Access (DMA) Channels: Some devices have the ability to read and write directly from the system memory, instead of asking the processor to do it for them. Cutting the “middle man” out in this manner improves the efficiency of the system. Each device that does this needs its own DMA channel.
• Input/Output (I/O) Addresses: Devices exchange information with the system by putting data into certain specific memory addresses. For example, when we pressed the letter “M” in the example mentioned above, the keypress was stored in a certain memory address until it was time for the processor to deal with it. Any time information goes into or out of the machine, to your modem or hard drive or printer for example, it uses these I/O addresses. Again, each device needs its own memory area.
• Memory Addresses: Similar to I/O addresses, many devices use blocks of memory as part of their normal functioning. For example, they may map hardware programs (BIOS code) into memory, or use a memory area to hold temporary data they are using.
The Processor
One of the smallest parts of the computer but the one that gets most of the attention, the processor is often thought of as the “brain” of the computer. An extremely sophisticated piece of miniaturized electronics, the processor (often called the CPU or Central Processing Unit) is at the bottom of all tasks the PC performs. The processor reads instructions (commands) from memory that tell it what it needs to do to accomplish the work that the user wants, and then executes them.
System Memory
The system memory holds all of the “active” information that the computer is using. When you turn the computer on the memory is empty. Each program or data file you load uses part of the system memory. When you close a program the memory is freed up for other uses. Generally, the more memory your system has, the more things you can do with it simultaneously. Increasing the amount of memory in the system also improves performance in most cases
Video Cards
Your video card performs the function of displaying the screen you see on the monitor. Inside the video card is a special kind of memory called video memory, where information is stored that represents what you see on the screen. If you look closely at the screen you can see that it is made up of many dots, or pixels. Each pixel’s color and brightness is stored in the video memory.
When the computer wants to display something, it calculates how it needs to change the color and brightness of the different pixels, and changes the values in the video memory. The video card then presents the new pixels to you on the monitor. In modern computers, this calculating job is shared between the processor and the video card itself. Having the video card do the calculation can often be much faster, because the video card is specialized to do these types of calculations. Also, while the video card is doing this work, the processor can go on to other things.
Monitors
In simple terms, the monitor, sometimes also called a CRT after the main technology used in making them, is a specialized, high-resolution screen, similar to a high-quality television. Many times per second, your video card sends the contents of its video memory out to your monitor. The screen is made up of a matrix of red, green and blue dots. The information your video card sends controls which dots are lit up and how bright they are, which determines the picture you see.
Hard Disk Drives
Your hard disk drive is your computer’s main “long term memory”—it holds your operating system, programs and data files. Hard drives are the fastest form of long-term storage your computer uses. They have currently increased in size and speed to values unheard of just a few years ago. Hard disks are (usually) permanent—they stay in one place inside your computer and cannot be removed the way floppy disks or CD-ROMs can.
Floppy Disk Drives
Floppy disks are your computer’s smallest and slowest form of long-term storage. Floppy disks provide a simple, convenient way to transfer information, install new software, and back up small amounts of files. Floppy disks are not as important a part of the computer as they were many years ago. This is largely because the floppy disk still holds the same amount it did five years ago, while most users’ needs for storage, software installation and backup, have increased ten-fold or more in that period of time. One great advantage floppy drives have is universality: virtually 100% of PCs made in the last 10 years use a standard 1.44 MB floppy drive.
CD-ROM Drives
CD-ROM stands for Compact Disk - Read Only Memory. As the name implies, CD-ROM drives use compact disks, similar to the ones that hold music, to hold computer information. And also as the name implies, they are a read-only medium. You can read information from them but not write to them (except for some special exceptions). CD-ROMs are currently the most popular way that computer companies distribute applications and games, and are ideal for multimedia information like videos, music and large graphics files.
Peripheral I/O
Peripherals are external devices that you connect to your PC. (Well, technically your hard drive and CDROM etc. are peripherals too, but often people use the term to refer to devices outside the main box). There are two main ways that you can connect peripherals to your machine: through a serial connection, or through a parallel connection:
• Serial Communications: A serial connection sends information over the line one bit at a time. It is a simple way to send information in or out of the computer, but is not as fast as other ways the computer can communicate. Serial connections are typically used for devices such as mice and modems.
• Parallel Communications: A parallel connection is faster than a serial one because it sends many bits in parallel. The advantage of this is that it is faster, but the disadvantage is that it is more complicated to do. Parallel connections are used most often for printers and removable storage drives, which need more speed than serial peripherals.
Keyboards
The keyboard is the main input device for most computers. It is used to input textual information to the PC. Keyboards are pretty much standard affairs these days, although they can vary greatly in quality and appearance, and some have significant additional features.
Mice
Until the invention of graphical operating systems, the keyboard was the only way that most people input information into their PCs. Mice are used in graphical environments to let users provide simple “point and click” instructions to the computer. The main advantage of a mouse over the keyboard is simplicity. There are also some operations that are much easier to perform with a mouse than a keyboard (such as picking an item on a screen or choosing from a list of options).
PC Fundamentals
While working on rewriting some sections of the site, I realized that I was repeating myself. Not only was I repeating myself, I was being redundant. And repetitive. :^) There are many different fundamental basics of computing that are important to know when reading about PCs, but aren’t specific to any components. Rather than writing the same background material over and over, and rather than boring people who already understanding these basics of computing, I have created this section on PC fundamentals, into which I will place various pages describing different topics that are common to various aspects of computing. I will also describe here simple components and technologies that are commonly found in various parts of the PC.
Unlike most of the rest of The PC Guide, this section isn’t organized into any particular structure. Each of the topics is independent of the others, and generally linked from the relevant sections in the rest of the site where appropriate. Feel free to browse any that interest you; as you read the Reference Guide you will find yourself coming back here from time to time.
Binary vs. Decimal Measurements
One of the most confusing problems regarding PC statistics and measurements is the fact that the computing world has two different definitions for most of its measurement terms. :^) Capacity measurements are usually expressed in kilobytes (thousands of bytes), in megabytes (millions of bytes), or gigabytes (billions of bytes). Due to a mathematical coincidence, however, there are two different meanings for each of these measures.
Computers are digital and store data using binary numbers, or powers of two, while humans normally use decimal numbers, expressed as powers of ten. As it turns out, two to the tenth power, 2^10, is 1,024, which is very close in value to 1,000 (10^3). Similarly, 2^20 is 1,048,576, which is approximately 1,000,000 (10^6), and 2^30 is 1,073,741,824, close to 1,000,000,000 (10^9). When computers and binary numbers first began to be used regularly, computer scientists noticed this similarity, and for convenience, “hijacked” the abbreviations normally used for decimal numbers and began applying them to binary numbers. Thus, 2^10 was given the prefix “kilo”, 2^20 was called “mega”, and 2^30 “giga”.
This shorthand worked fairly well when used only by technicians who worked regularly with computers; they knew what they were talking about, and nobody else really cared. Over the years however, computers have become mainstream, and the dual notation has led to quite a bit of confusion and inconsistency. In many areas of the PC, only binary measures are used. For example, “64 MB of system RAM” always means 64 times 1,048,576 bytes of RAM, never 64,000,000. In other areas, only decimal measures are found—a “28.8K modem” works at a maximum speed of 28,800 bits per second, not 29,491.
Storage devices however are where the real confusion comes in. Some companies and software packages use binary megabytes and gigabytes, and some use decimal megabytes and gigabytes. What’s worse is that the percentage discrepancy between the decimal and binary measures increases as the numbers get larger: there is only a 2.4% difference between a decimal and a binary kilobyte, which isn’t that big of a deal. However, this increases to around a 5% difference for megabytes, and around 7.5% for gigabytes, which is actually fairly significant. This is why with today’s larger hard disks, more people are starting to notice the difference between the two measures. Hard disk capacities are always stated in decimal gigabytes, while most software uses binary. So, someone will buy a “30 GB hard disk”, partition and format it, and then be told by Windows that the disk is “27.94 gigabytes” and wonder “where the other 2 gigabytes went”. Well, the disk is 27.94 gigabytes—27.94 binary gigabytes. The 2 gigabytes didn’t go anywhere.
Another thing to be careful of is converting between binary gigabytes and binary megabytes. Decimal gigabytes and megabytes differ by a factor of 1,000 but of course the binary measures differ by 1,024. So this same 30 GB hard disk is 30,000 MB in decimal terms. But its 27.94 binary gigabytes are equal to 28,610 binary megabytes (27.94 times 1,024).
Windows 95 display of the capacity of an 8 GB hard disk drive. Note the difference between the number of bytes and the “GB” values, which are clearly given as binary measures.
One final “gotcha” in this area is related to arithmetic done between units that have different definitions of “mega” or “giga”. For example: most people would say that the PCI bus has a maximum theoretical bandwidth of 133.3 Mbytes/second, because it is 4 bytes wide and runs at 33.3 MHz. The problem here is that the “M” in “MHz” is 1,000,000; but the “M” in “Mbytes/second” is 1,048,576. So the bandwidth of the PCI bus is more properly stated as 127.2 Mbytes/second (4 times 33,333,333 divided by 1,048,576).
There’s potential good news regarding this whole binary/decimal conundrum. The IEEE has proposed a new naming convention for the binary numbers, to hopefully eliminate some of the confusion. Under this proposal, for binary numbers the third and fourth letters in the prefix are changed to “bi”, so “mega” becomes “mebi” for example. Thus, one megabyte would be 10^6 bytes, but one mebibyte would be 2^20 bytes. The abbreviation would become “1 MiB” instead of “1 MB”. “Mebibyte” sounds goofy, but hey, I’m sure “byte” did too, 30 years ago. ;^) Here’s a summary table showing the decimal and binary measurements and their abbreviations and values (“bytes” are shown as an example unit here, but the prefices could apply to any unit of measure):
Only time will tell if this standard, which you can read about here, will catch on—old habits die hard. I for one will be doing my share though. As I update various portions of the site, I will be changing places where I used terms such as “kB” and “MB” for binary numbers into “kiB” and “MiB”. This may be confusing at first but I think we’ll get used to it, and at least it will eliminate the current ambiguity
Basic Electrical Components
There are several important basic electrical components that are commonly found in the circuits of virtually all PC parts and peripherals. These devices are the fundamental building blocks of electrical and electronic circuits, and can be found in great numbers on motherboards, hard disk logic boards, video cards and just about everywhere else in the PC, including places that might surprise you. They can be used and combined with each other and dozens of other devices, in so many different ways that I could not even begin to describe them all. Still, it is useful to know a bit about how they work, and this page will at least provide you with a basis for recognizing some of what you see on those boards, and perhaps understanding the fundamentals of circuit schematics. Bear in mind when reading the descriptions below that it would really take several full pages to fully describe the workings of most of these components! Fortunately, this level of detail isn’t really necessary to provide the background necessary when working with PCs.
For each component, I provide a sample photo, as well as an illustration of the component’s symbol in an electrical schematic (diagram showing how a circuit is designed). There are many variants of each of the components shown below; so the diagrams should only be considered examples.
• Battery: A direct current electricity source of a specific voltage, used primarily in small circuits.
A battery (in this case, a button cell on a PC motherboard.)
Original photo © Kamco Services
Image used with permission.

Resistor: As you could probably guess from the name, a resistor increases the resistance of a circuit. The main purpose of this is to reduce the flow of electricity in a circuit. Resistors come in all different shapes and sizes. They dissipate heat as a result of their opposing electricity, and are therefore rated both in terms of their resistance (how much they oppose the flow of electrons) and their power capacity (how much power they can dissipate before becoming damaged.) Generally, bigger resistors can handle more power. There are also variable resistors, which can have their resistance adjusted by turning a knob or other device. These are sometimes called potentiometers.
Magnified surface-mount resistor from a motherboard.
These small resistors are now much more common on PC
electronics than the older, larger pin type.
Note the “R10” designation.

Capacitor: A capacitor is a component made from two (or two sets of) conductive plates with an insulator between them. The insulator prevents the plates from touching. When a DC current is applied across a capacitor, positive charge builds on one plate (or set of plates) and negative charge builds on the other. The charge will remain until the capacitor is discharged. When an AC current is applied across the capacitor, it will charge one set of plates positive and the other negative during the part of the cycle when the voltage is positive; when the voltage goes negative in the second half of the cycle, the capacitor will release what it previously charged, and then charge the opposite way. This then repeats for each cycle. Since it has the opposite charge stored in it each time the voltage changes, it tends to oppose the change in voltage. As you can tell then, if you apply a mixed DC and AC signal across a capacitor, the capacitor will tend to block the DC and let the AC flow through. The strength of a capacitor is called capacitance and is measured in farads (F). (In practical terms, usually microfarads and the like, since one farad would be a very large capacitor!) They are used in all sorts of electronic circuits, especially combined with resistors and inductors, and are commonly found in PCs.
Three capacitors on a motherboard.The two large capacitors in the background are 1500 microfarads and 2200 microfarads respectively, as you can clearly see from their labeling. The small silver-colored capacitor in the foreground is a 22 microfarad electrolytic capactor. Electrolytics are commonly used in computers because they pack a relatively high capacitance into a small package. The plus sign indicates the polarity of the capacitor, which also has its leads marked with “+” and “-”. If you look closely you can see the “+” marking on the motherboard, just to the left of the capacitor. Note that very small Capacitors are also found in surface-mount packages just like the resistor above.
• Inductor: An inductor is essentially a coil of wire. When current flows through an inductor, a magnetic field is created, and the inductor will store this magnetic energy until it is released. In some ways, an inductor is the opposite of a capacitor. While a capacitor stores voltage as electrical energy, an inductor stores current as magnetic energy. Thus, a capacitor opposes a change in the voltage of a circuit, while an inductor opposes a change in its current. Therefore, capacitors block DC current and let AC current pass, while inductors do the opposite. The strength of an inductor is called—take a wild guess—its inductance, and is measured in henrys (H). Inductors can have a core of air in the middle of their coils, or a ferrous (iron) core. Being a magnetic material, the iron core increases the inductance value, which is also affected by the material used in the wire, and the number of turns in the coil. Some inductor cores are straight in shape, and others are closed circles called toroids. The latter type of inductor is highly efficient because the closed shape is conducive to creating a stronger magnetic field. Inductors are used in all sorts of electronic circuits, particularly in combination with resistors and capacitors, and are commonly found in PCs.
A toroidal core inductor from a PC motherboard. The two bars in the symbol represent the iron core; an air-core inductor would not have the bars. Note that very small inductors are also found in surface-mount packages just like the resistor above.
Transformer: A transformer is an inductor, usually with an iron core, that has two lengths of wire wrapped around it instead of one. The two coils of wire do not electrically connect, and are normally attached to different circuits. One of the most important components in the world of power, it is used to change one AC voltage into another. As described above, when a coil has a current passed through it, a magnetic field is set up proportional to the number of turns in the coil. This principle also works in reverse: if you create a magnetic field in a coil, a current will be induced in it, proportional to the number of turns of the coil. Thus, if you create a transformer with say, 100 turns in the first or primary coil, and 50 turns in the second or secondary coil, and you apply 240 VAC to the first coil, a current of 120 VAC will be induced in the second coil (approximately; some energy is always lost during the transformation). A transformer with more turns in its primary than its secondary coil will reduce voltage and is called a step-down transformer. One with more turns in the secondary than the primary is called a step-up transformer. Transformers are one of the main reasons we use AC electricity in our homes and not DC: DC voltages cannot be changed using transformers. They come in sizes ranging from small ones an inch across to large ones that weigh hundreds of pounds or more, depending on the voltage and current they must handle.
A transformer from the interior of a PC power supply.
Note the large heat sink fins above and below it.

Diode / LED: A diode is a device, typically made from semiconductor material, that restricts the flow of current in a circuit to only one direction; it will block the bulk of any current that tries to go “against the flow” in a wire. Diodes have a multitude of uses. For example, they are often used in circuits that convert alternating current to direct current, since they can block half the alternating current from passing through. A variant of the common diode is the light-emitting diode or LED; these are the most well-known and commonly-encountered kind of diode since they are used on everything from keyboards to hard disks to television remote controls. An LED is a diode that is designed to emit light of a particular frequency when current is applied to it. They are very useful as status indicators in computers and battery-operated electronics; they can be left on for hours or days at a time because they run on DC, require little power to operate, generate very little heat and last for many years even if run continuously. They are now even being made into low-powered, long-operating flashlights.
A diode (top) and a light-emitting diode (bottom). Note the symbol on the circuit board above the diode, and the “CR3” designation. The LED shown is an older, large diode from a system case. LEDs are now more often round and usually smaller.
Fuse: A fuse is a device designed to protect other components from accidental damage due to excessive current flowing through them. Each type of fuse is designed for a specific amount of current. As long as the current in the circuit is kept below this value, the fuse passes the current with little opposition. If the current rises above the rating of the fuse—due to a malfunction of some sort or an accidental short-circuit—the fuse will “blow” and disconnect the circuit. Fuses are the “heroes” of the electronics world, literally burning up or melting from the high current, causing a physical gap in the circuit and saving other devices from the high current. They can then be replaced when the problem condition has been corrected. All fuses are rated in amps for the amount of current they can tolerate before blowing; they are also rated for the maximum voltage they can tolerate. Always replace a blown fuse only with another of the same current and voltage rating.
A fuse, sitting in its fuse holder,
from the interior of a PC power supply.

Jumpers
Jumpers are small devices that are used to control the operation of hardware devices directly, without the use of software. They have been around since the very first PCs, and are still used on many types of modern hardware today. A jumper consists of two primary components:
• Jumper: The jumper itself is a small piece of plastic and metal that is placed across two jumper pins to make a connection, or removed to break a connection. They come in a few standard sizes (and some non-standard ones I’m sure); only one or two sizes are commonly seen on PCs. Jumpers are sometimes also called shunts.
• Jumper Pins: A set of pins, across two of which a jumper is placed to make a specific connection.
Note: Some people actually call the jumper pins the “jumper”; others call the pins plus the jumper a “jumper”. The terms are used rather loosely, but it’s nothing to worry about.
A jumper is a mechanical switch that is easily modified by hand. Essentially, it’s a circuit that has been broken intentionally and a pin placed on each end of the broken connection. Placing a jumper across two pins connects them electrically, completing the circuit; removing a jumper from a set of pins breaks the circuit. Hardware engineers allow users to configure devices or change their operation by creating different sets of pins that implement different functions depending on how the jumpers are set. When power is applied to the device it detects which circuits have been closed or opened. The most common place where most folks see jumpers are in hard disk drives and motherboards. On hard disks they are typically used to tell the hard disk what role to play on the hard disk interface cable; on motherboards they control as many as a dozen different settings related to how the motherboard functions. Usually these jumper settings are printed directly on the hardware for convenience.
The main advantage of using jumpers for controlling hardware is that they are simple and straightforward: if you get the settings correct, the hardware (assuming it is not defective) will perform as it should. What you see is what you get. The biggest disadvantage associated with using jumpers is the fact that they require physical manipulation. If you need to change a jumper, you have to physically open the PC to access the device, and that’s not always easy to do. The jumpers are also very small and easy lost if you are not careful. Also, you have to make these changes with the power off. These issues are one reason why the effort was made a few years ago to move away from jumpers on hardware devices and towards software configuration of hardware using techniques such as Plug and Play.
Jumpers are given many different designations. On motherboards, it is common to see them numbered, using a sequence such as “JP1”, “JP2”, etc. For some functions, jumpers are treated as a group—multiple jumpers must be placed on particular sets of pins to enable or disable a specific function. The documentation that comes with any hardware device should tell you how to set its jumpers to control various functions; if you don’t have the documentation, check the manufacturer’s web site.
A group of jumper pins on a motherboard, showing three jumpers connected and two sets of pins “bare” (no jumpers attached). Note the “JP7” and “JP15” labels in the foreground.
Tip: One problem experienced by many who work with hardware occurs when a jumper needs
to be removed from a set of two pins to disable a function: what do you do with it? Some keep a big “box o’ miscellaneous hardware” for jumpers and similar small items, but since the jumpers are small and easy to lose, one trick that is often used is to “dangle” the shunt by connecting it to only one pin. Since the second half of the shunt is disconnected, this is electrically equivalent to removing it altogether, and ensures that it will always be there for you the next time you need it.
A jumper “dangled” from a set of pins. This is electrically equivalent to removing the jumper entirely.

Saturday, January 5, 2008

RDBMS CONCEPTS

1. What is database?
A database is a logically coherent collection of data with some inherent meaning, representing some aspect of real world and which is designed, built and populated with data for a specific purpose.

2. What is DBMS?
It is a collection of programs that enables user to create and maintain a database. In other words it is general-purpose software that provides the users with the processes of defining, constructing and manipulating the database for various applications.

3. What is a Database system?
The database and DBMS software together is called as Database system.

4. Advantages of DBMS?
  • Redundancy is controlled.
  • Unauthorised access is restricted.
  • Providing multiple user interfaces.
  • Enforcing integrity constraints.
  • Providing backup and recovery.

5. Disadvantage in File Processing System?
  • Data redundancy & inconsistency.
  • Difficult in accessing data.
  • Data isolation.
  • Data integrity.
  • Concurrent access is not possible.
  • Security Problems.

6. Describe the three levels of data abstraction?
  • The are three levels of abstraction:
  • Physical level: The lowest level of abstraction describes how data are stored.
  • Logical level: The next higher level of abstraction, describes what data are stored in database and what relationship among those data.
  • View level: The highest level of abstraction describes only part of entire database.
7. Define the "integrity rules"
There are two Integrity rules.
  • Entity Integrity: States that “Primary key cannot have NULL value”
  • Referential Integrity: States that “Foreign Key can be either a NULL value or should be Primary Key value of other relation.

8. What is extension and intension?
Extension -
It is the number of tuples present in a table at any instance. This is time dependent.
Intension -
It is a constant value that gives the name, structure of table and the constraints laid on it.

9. What is System R? What are its two major subsystems?
System R was designed and developed over a period of 1974-79 at IBM San Jose Research Center. It is a prototype and its purpose was to demonstrate that it is possible to build a Relational System that can be used in a real life environment to solve real life problems, with performance at least comparable to that of existing system.
Its two subsystems are
  • Research Storage
  • System Relational Data System.

10. How is the data structure of System R different from the relational structure?
Unlike Relational systems in System R
  • Domains are not supported
  • Enforcement of candidate key uniqueness is optional
  • Enforcement of entity integrity is optional
  • Referential integrity is not enforced

11. What is Data Independence?
Data independence means that “the application is independent of the storage structure and access strategy of data”. In other words, The ability to modify the schema definition in one level should not affect the schema definition in the next higher level.
Two types of Data Independence:
  • Physical Data Independence: Modification in physical level should not affect the logical level.
  • Logical Data Independence: Modification in logical level should affect the view level.
NOTE: Logical Data Independence is more difficult to achieve

12. What is a view? How it is related to data independence?
A view may be thought of as a virtual table, that is, a table that does not really exist in its own right but is instead derived from one or more underlying base table. In other words, there is no stored file that direct represents the view instead a definition of view is stored in data dictionary.
Growth and restructuring of base tables is not reflected in views. Thus the view can insulate users from the effects of restructuring and growth in the database. Hence accounts for logical data independence.

13. What is Data Model?
A collection of conceptual tools for describing data, data relationships data semantics and constraints.

14. What is E-R model?
This data model is based on real world that consists of basic objects called entities and of relationship among these objects. Entities are described in a database by a set of attributes.

15. What is Object Oriented model?
This model is based on collection of objects. An object contains values stored in instance variables with in the object. An object also contains bodies of code that operate on the object. These bodies of code are called methods. Objects that contain same types of values and the same methods are grouped together into classes.

16. What is an Entity?
It is a 'thing' in the real world with an independent existence.

17. What is an Entity type?
It is a collection (set) of entities that have same attributes.

18. What is an Entity set?
It is a collection of all entities of particular entity type in the database.

19. What is an Extension of entity type?
The collections of entities of a particular entity type are grouped together into an entity set.

20. What is Weak Entity set?
An entity set may not have sufficient attributes to form a primary key, and its primary key compromises of its partial key and primary key of its parent entity, then it is said to be Weak Entity set.

21. What is an attribute?
It is a particular property, which describes the entity.

22. What is a Relation Schema and a Relation?
A relation Schema denoted by R(A1, A2, …, An) is made up of the relation name R and the list of attributes Ai that it contains. A relation is defined as a set of tuples. Let r be the relation which contains set tuples (t1, t2, t3, ..., tn). Each tuple is an ordered list of n-values t=(v1,v2, ..., vn).

23. What is degree of a Relation?
It is the number of attribute of its relation schema.

24. What is Relationship?
It is an association among two or more entities.

25. What is Relationship set?
The collection (or set) of similar relationships.

26. What is Relationship type?
Relationship type defines a set of associations or a relationship set among a given set of entity types.
27. What is degree of Relationship type?
It is the number of entity type participating.

25. What is DDL (Data Definition Language)?
A data base schema is specifies by a set of definitions expressed by a special language called DDL.

26. What is VDL (View Definition Language)?
It specifies user views and their mappings to the conceptual schema.

27. What is SDL (Storage Definition Language)?
This language is to specify the internal schema. This language may specify the mapping between two schemas.

28. What is Data Storage - Definition Language?
The storage structures and access methods used by database system are specified by a set of definition in a special type of DDL called data storage-definition language.

29. What is DML (Data Manipulation Language)?
This language that enable user to access or manipulate data as organised by appropriate data model.
  • Procedural DML or Low level: DML requires a user to specify what data are needed and how to get those data.
  • Non-Procedural DML or High level: DML requires a user to specify what data are needed without specifying how to get those data.

31. What is DML Compiler?
It translates DML statements in a query language into low-level instruction that the query evaluation engine can understand.

32. What is Query evaluation engine?
It executes low-level instruction generated by compiler.

33. What is DDL Interpreter?
It interprets DDL statements and record them in tables containing metadata.

34. What is Record-at-a-time?
The Low level or Procedural DML can specify and retrieve each record from a set of records. This retrieve of a record is said to be Record-at-a-time.

35. What is Set-at-a-time or Set-oriented?
The High level or Non-procedural DML can specify and retrieve many records in a single DML statement. This retrieve of a record is said to be Set-at-a-time or Set-oriented.

36. What is Relational Algebra?
It is procedural query language. It consists of a set of operations that take one or two relations as input and produce a new relation.

37. What is Relational Calculus?
It is an applied predicate calculus specifically tailored for relational databases proposed by E.F. Codd. E.g. of languages based on it are DSL ALPHA, QUEL.

38. How does Tuple-oriented relational calculus differ from domain-oriented relational calculus
The tuple-oriented calculus uses a tuple variables i.e., variable whose only permitted values are tuples of that relation. E.g. QUEL
The domain-oriented calculus has domain variables i.e., variables that range over the underlying domains instead of over relation. E.g. ILL, DEDUCE.

39. What is normalization?
It is a process of analysing the given relation schemas based on their Functional Dependencies (FDs) and primary key to achieve the properties
  • Minimizing redundancy
  • Minimizing insertion, deletion and update anomalies.

40. What is Functional Dependency?
A Functional dependency is denoted by X Y between two sets of attributes X and Y that are subsets of R specifies a constraint on the possible tuple that can form a relation state r of R. The constraint is for any two tuples t1 and t2 in r if t1[X] = t2[X] then they have t1[Y] = t2[Y]. This means the value of X component of a tuple uniquely determines the value of component Y.

41. When is a functional dependency F said to be minimal?
  • Every dependency in F has a single attribute for its right hand side.
  • We cannot replace any dependency X A in F with a dependency Y A where Y is a proper subset of X and still have a set of dependency that is equivalent to F.
  • We cannot remove any dependency from F and still have set of dependency that is equivalent to F.

42. What is Multivalued dependency?
Multivalued dependency denoted by X Y specified on relation schema R, where X and Y are both subsets of R, specifies the following constraint on any relation r of R: if two tuples t1 and t2 exist in r such that t1[X] = t2[X] then t3 and t4 should also exist in r with the following properties
  • t3[x] = t4[X] = t1[X] = t2[X]
  • t3[Y] = t1[Y] and t4[Y] = t2[Y]
  • t3[Z] = t2[Z] and t4[Z] = t1[Z]
where [Z = (R-(X U Y)) ]
43. What is Lossless join property?
It guarantees that the spurious tuple generation does not occur with respect to relation schemas after decomposition.

44. What is 1 NF (Normal Form)?
The domain of attribute must include only atomic (simple, indivisible) values.

45. What is Fully Functional dependency?
It is based on concept of full functional dependency. A functional dependency X Y is full functional dependency if removal of any attribute A from X means that the dependency does not hold any more.

46. What is 2NF?
A relation schema R is in 2NF if it is in 1NF and every non-prime attribute A in R is fully functionally dependent on primary key.

47. What is 3NF?
A relation schema R is in 3NF if it is in 2NF and for every FD X A either of the following is true
  • X is a Super-key of R.
  • A is a prime attribute of R.
In other words, if every non prime attribute is non-transitively dependent on primary key.

48. What is BCNF (Boyce-Codd Normal Form)?
A relation schema R is in BCNF if it is in 3NF and satisfies an additional constraint that for every FD X A, X must be a candidate key.

49. What is 4NF?
A relation schema R is said to be in 4NF if for every Multivalued dependency X Y that holds over R, one of following is true
  • X is subset or equal to (or) XY = R.
  • X is a super key.

50. What is 5NF?
A Relation schema R is said to be 5NF if for every join dependency {R1, R2, ..., Rn} that holds R, one the following is true
  • Ri = R for some i.
  • The join dependency is implied by the set of FD, over R in which the left side is key of R.
51. What is Domain-Key Normal Form?
A relation is said to be in DKNF if all constraints and dependencies that should hold on the the constraint can be enforced by simply enforcing the domain constraint and key constraint on the relation.

52. What are partial, alternate,, artificial, compound and natural key?
Partial Key:
It is a set of attributes that can uniquely identify weak entities and that are related to same owner entity. It is sometime called as Discriminator.
Alternate Key:
All Candidate Keys excluding the Primary Key are known as Alternate Keys.
Artificial Key:
If no obvious key, either stand alone or compound is available, then the last resort is to simply create a key, by assigning a unique number to each record or occurrence. Then this is known as developing an artificial key.
Compound Key:
If no single data element uniquely identifies occurrences within a construct, then combining multiple elements to create a unique identifier for the construct is known as creating a compound key.
Natural Key:
When one of the data elements stored within a construct is utilized as the primary key, then it is called the natural key.

53. What is indexing and what are the different kinds of indexing?
Indexing is a technique for determining how quickly specific data can be found.
Types:
  • Binary search style indexing
  • B-Tree indexing
  • Inverted list indexing
  • Memory resident table
  • Table indexing

54. What is system catalog or catalog relation? How is better known as?
A RDBMS maintains a description of all the data that it contains, information about every relation and index that it contains. This information is stored in a collection of relations maintained by the system called metadata. It is also called data dictionary.

55. What is meant by query optimization?
The phase that identifies an efficient execution plan for evaluating a query that has the least estimated cost is referred to as query optimization.

56. What is join dependency and inclusion dependency?
Join Dependency:
A Join dependency is generalization of Multivalued dependency.A JD {R1, R2, ..., Rn} is said to hold over a relation R if R1, R2, R3, ..., Rn is a lossless-join decomposition of R . There is no set of sound and complete inference rules for JD.
Inclusion Dependency:
An Inclusion Dependency is a statement of the form that some columns of a relation are contained in other columns. A foreign key constraint is an example of inclusion dependency.

57. What is durability in DBMS?
Once the DBMS informs the user that a transaction has successfully completed, its effects should persist even if the system crashes before all its changes are reflected on disk. This property is called durability.

58. What do you mean by atomicity and aggregation?
Atomicity:
Either all actions are carried out or none are. Users should not have to worry about the effect of incomplete transactions. DBMS ensures this by undoing the actions of incomplete transactions.
Aggregation:
A concept which is used to model a relationship between a collection of entities and relationships. It is used when we need to express a relationship among relationships.

59. What is a Phantom Deadlock?
In distributed deadlock detection, the delay in propagating local information might cause the deadlock detection algorithms to identify deadlocks that do not really exist. Such situations are called phantom deadlocks and they lead to unnecessary aborts.

60. What is a checkpoint and When does it occur?
A Checkpoint is like a snapshot of the DBMS state. By taking checkpoints, the DBMS can reduce the amount of work to be done during restart in the event of subsequent crashes.

61. What are the different phases of transaction?
Different phases are
  • Analysis phase
  • Redo Phase
  • Undo phase

62. What do you mean by flat file database?
It is a database in which there are no programs or user access languages. It has no cross-file capabilities but is user-friendly and provides user-interface management.

63. What is "transparent DBMS"?
It is one, which keeps its Physical Structure hidden from user.

64. Brief theory of Network, Hierarchical schemas and their properties
Network schema uses a graph data structure to organize records example for such a database management system is CTCG while a hierarchical schema uses a tree data structure example for such a system is IMS.

65. What is a query?
A query with respect to DBMS relates to user commands that are used to interact with a data base. The query language can be classified into data definition language and data manipulation language.

66. What do you mean by Correlated subquery?
Subqueries, or nested queries, are used to bring back a set of rows to be used by the parent query. Depending on how the subquery is written, it can be executed once for the parent query or it can be executed once for each row returned by the parent query. If the subquery is executed for each row of the parent, this is called a correlated subquery.
A correlated subquery can be easily identified if it contains any references to the parent subquery columns in its WHERE clause. Columns from the subquery cannot be referenced anywhere else in the parent query. The following example demonstrates a non-correlated subquery.
E.g. Select * From CUST Where '10/03/1990' IN (Select ODATE From ORDER Where CUST.CNUM = ORDER.CNUM)

67. What are the primitive operations common to all record management systems?
Addition, deletion and modification.

68. Name the buffer in which all the commands that are typed in are stored
‘Edit’ Buffer

69. What are the unary operations in Relational Algebra?
PROJECTION and SELECTION.

70. Are the resulting relations of PRODUCT and JOIN operation the same?
No.
PRODUCT: Concatenation of every row in one relation with every row in another.
JOIN: Concatenation of rows from one relation and related rows from another.

71. What is RDBMS KERNEL?
Two important pieces of RDBMS architecture are the kernel, which is the software, and the data dictionary, which consists of the system-level data structures used by the kernel to manage the database
You might think of an RDBMS as an operating system (or set of subsystems), designed specifically for controlling data access; its primary functions are storing, retrieving, and securing data. An RDBMS maintains its own list of authorized users and their associated privileges; manages memory caches and paging; controls locking for concurrent resource usage; dispatches and schedules user requests; and manages space usage within its table-space structures
.
72. Name the sub-systems of a RDBMS
I/O, Security, Language Processing, Process Control, Storage Management, Logging and Recovery, Distribution Control, Transaction Control, Memory Management, Lock Management

73. Which part of the RDBMS takes care of the data dictionary? How
Data dictionary is a set of tables and database objects that is stored in a special area of the database and maintained exclusively by the kernel.

74. What is the job of the information stored in data-dictionary?
The information in the data dictionary validates the existence of the objects, provides access to them, and maps the actual physical storage location.

75. Not only RDBMS takes care of locating data it also
determines an optimal access path to store or retrieve the data

76. How do you communicate with an RDBMS?
You communicate with an RDBMS using Structured Query Language (SQL)

77. Define SQL and state the differences between SQL and other conventional programming Languages
SQL is a nonprocedural language that is designed specifically for data access operations on normalized relational database structures. The primary difference between SQL and other conventional programming languages is that SQL statements specify what data operations should be performed rather than how to perform them.

78. Name the three major set of files on disk that compose a database in Oracle
There are three major sets of files on disk that compose a database. All the files are binary. These are
  • Database files
  • Control files
  • Redo logs
The most important of these are the database files where the actual data resides. The control files and the redo logs support the functioning of the architecture itself.
All three sets of files must be present, open, and available to Oracle for any data on the database to be useable. Without these files, you cannot access the database, and the database administrator might have to recover some or all of the database using a backup, if there is one.

79. What is an Oracle Instance?
The Oracle system processes, also known as Oracle background processes, provide functions for the user processes—functions that would otherwise be done by the user processes themselves
Oracle database-wide system memory is known as the SGA, the system global area or shared global area. The data and control structures in the SGA are shareable, and all the Oracle background processes and user processes can use them.
The combination of the SGA and the Oracle background processes is known as an Oracle instance

80. What are the four Oracle system processes that must always be up and running for the database to be useable
The four Oracle system processes that must always be up and running for the database to be useable include DBWR (Database Writer), LGWR (Log Writer), SMON (System Monitor), and PMON (Process Monitor).

81. What are database files, control files and log files. How many of these files should a database have at least? Why?
Database Files
The database files hold the actual data and are typically the largest in size. Depending on their sizes, the tables (and other objects) for all the user accounts can go in one database file—but that's not an ideal situation because it does not make the database structure very flexible for controlling access to storage for different users, putting the database on different disk drives, or backing up and restoring just part of the database.
You must have at least one database file but usually, more than one files are used. In terms of accessing and using the data in the tables and other objects, the number (or location) of the files is immaterial.
The database files are fixed in size and never grow bigger than the size at which they were created
Control Files
The control files and redo logs support the rest of the architecture. Any database must have at least one control file, although you typically have more than one to guard against loss. The control file records the name of the database, the date and time it was created, the location of the database and redo logs, and the synchronization information to ensure that all three sets of files are always in step. Every time you add a new database or redo log file to the database, the information is recorded in the control files.
Redo Logs
Any database must have at least two redo logs. These are the journals for the database; the redo logs record all changes to the user objects or system objects. If any type of failure occurs, the changes recorded in the redo logs can be used to bring the database to a consistent state without losing any committed transactions. In the case of non-data loss failure, Oracle can apply the information in the redo logs automatically without intervention from the DBA.
The redo log files are fixed in size and never grow dynamically from the size at which they were created.

82. What is ROWID?
The ROWID is a unique database-wide physical address for every row on every table. Once assigned (when the row is first inserted into the database), it never changes until the row is deleted or the table is dropped.
The ROWID consists of the following three components, the combination of which uniquely identifies the physical storage location of the row.
  • Oracle database file number, which contains the block with the rows
  • Oracle block address, which contains the row
  • The row within the block (because each block can hold many rows)
The ROWID is used internally in indexes as a quick means of retrieving rows with a particular key value. Application developers also use it in SQL statements as a quick way to access a row once they know the ROWID

83. What is Oracle Block? Can two Oracle Blocks have the same address?
Oracle "formats" the database files into a number of Oracle blocks when they are first created—making it easier for the RDBMS software to manage the files and easier to read data into the memory areas.
The block size should be a multiple of the operating system block size. Regardless of the block size, the entire block is not available for holding data; Oracle takes up some space to manage the contents of the block. This block header has a minimum size, but it can grow.
These Oracle blocks are the smallest unit of storage. Increasing the Oracle block size can improve performance, but it should be done only when the database is first created.
Each Oracle block is numbered sequentially for each database file starting at 1. Two blocks can have the same block address if they are in different database files.

84. What is database Trigger?
A database trigger is a PL/SQL block that can defined to automatically execute for insert, update, and delete statements against a table. The trigger can e defined to execute once for the entire statement or once for every row that is inserted, updated, or deleted. For any one table, there are twelve events for which you can define database triggers. A database trigger can call database procedures that are also written in PL/SQL.

85. Name two utilities that Oracle provides, which are use for backup and recovery.
Along with the RDBMS software, Oracle provides two utilities that you can use to back up and restore the database. These utilities are Export and Import.
The Export utility dumps the definitions and data for the specified part of the database to an operating system binary file. The Import utility reads the file produced by an export, recreates the definitions of objects, and inserts the data
If Export and Import are used as a means of backing up and recovering the database, all the changes made to the database cannot be recovered since the export was performed. The best you can do is recover the database to the time when the export was last performed.

86. What are stored-procedures? And what are the advantages of using them.
Stored procedures are database objects that perform a user defined operation. A stored procedure can have a set of compound SQL statements. A stored procedure executes the SQL commands and returns the result to the client. Stored procedures are used to reduce network traffic.

87. How are exceptions handled in PL/SQL? Give some of the internal exceptions' name
PL/SQL exception handling is a mechanism for dealing with run-time errors encountered during procedure execution. Use of this mechanism enables execution to continue if the error is not severe enough to cause procedure termination.
The exception handler must be defined within a subprogram specification. Errors cause the program to raise an exception with a transfer of control to the exception-handler block. After the exception handler executes, control returns to the block in which the handler was defined. If there are no more executable statements in the block, control returns to the caller.
User-Defined Exceptions
PL/SQL enables the user to define exception handlers in the declarations area of subprogram specifications. User accomplishes this by naming an exception as in the following example:
ot_failure EXCEPTION;
In this case, the exception name is ot_failure. Code associated with this handler is written in the EXCEPTION specification area as follows:
EXCEPTION
when OT_FAILURE then
out_status_code := g_out_status_code;
out_msg := g_out_msg;
The following is an example of a subprogram exception:
EXCEPTION
when NO_DATA_FOUND then
g_out_status_code := 'FAIL';
RAISE ot_failure;
Within this exception is the RAISE statement that transfers control back to the ot_failure exception handler. This technique of raising the exception is used to invoke all user-defined exceptions.
System-Defined Exceptions
Exceptions internal to PL/SQL are raised automatically upon error. NO_DATA_FOUND is a system-defined exception. Table below gives a complete list of internal exceptions.

PL/SQL internal exceptions.

Exception Name
Oracle Error
CURSOR_ALREADY_OPEN ORA-06511
DUP_VAL_ON_INDEX ORA-00001
INVALID_CURSOR ORA-01001
INVALID_NUMBER ORA-01722
LOGIN_DENIED ORA-01017
NO_DATA_FOUND ORA-01403
NOT_LOGGED_ON ORA-01012
PROGRAM_ERROR ORA-06501
STORAGE_ERROR ORA-06500
TIMEOUT_ON_RESOURCE ORA-00051
TOO_MANY_ROWS ORA-01422
TRANSACTION_BACKED_OUT ORA-00061
VALUE_ERROR ORA-06502
ZERO_DIVIDE ORA-01476

In addition to this list of exceptions, there is a catch-all exception named OTHERS that traps all errors for which specific error handling has not been established.

88. Does PL/SQL support "overloading"? Explain
The concept of overloading in PL/SQL relates to the idea that you can define procedures and functions with the same name. PL/SQL does not look only at the referenced name, however, to resolve a procedure or function call. The count and data types of formal parameters are also considered.
PL/SQL also attempts to resolve any procedure or function calls in locally defined packages before looking at globally defined packages or internal functions. To further ensure calling the proper procedure, you can use the dot notation. Prefacing a procedure or function name with the package name fully qualifies any procedure or function reference.

89. Tables derived from the ERD
a) Are totally unnormalised
b) Are always in 1NF
c) Can be further denormalised
d) May have multi-valued attributes

(b) Are always in 1NF

90. Spurious tuples may occur due to
i. Bad normalization
ii. Theta joins
iii. Updating tables from join
a) i & ii b) ii & iii
c) i & iii d) ii & iii

(a) i & iii because theta joins are joins made on keys that are not primary keys.

91. A B C is a set of attributes. The functional dependency is as follows
AB -> B
AC -> C
C -> B
a) is in 1NF
b) is in 2NF
c) is in 3NF
d) is in BCNF

(a) is in 1NF since (AC)+ = { A, B, C} hence AC is the primary key. Since C B is a FD given, where neither C is a Key nor B is a prime attribute, this it is not in 3NF. Further B is not functionally dependent on key AC thus it is not in 2NF. Thus the given FDs is in 1NF.

92. In mapping of ERD to DFD
a) entities in ERD should correspond to an existing entity/store in DFD
b) entity in DFD is converted to attributes of an entity in ERD
c) relations in ERD has 1 to 1 correspondence to processes in DFD
d) relationships in ERD has 1 to 1 correspondence to flows in DFD

(a) entities in ERD should correspond to an existing entity/store in DFD

93. A dominant entity is the entity
a) on the N side in a 1 : N relationship
b) on the 1 side in a 1 : N relationship
c) on either side in a 1 : 1 relationship
d) nothing to do with 1 : 1 or 1 : N relationship

(b) on the 1 side in a 1 : N relationship

94. Select 'NORTH', CUSTOMER From CUST_DTLS Where REGION = 'N' Order By
CUSTOMER Union Select 'EAST', CUSTOMER From CUST_DTLS Where REGION = 'E' Order By CUSTOMER
The above is
a) Not an error
b) Error - the string in single quotes 'NORTH' and 'SOUTH'
c) Error - the string should be in double quotes
d) Error - ORDER BY clause

(d) Error - the ORDER BY clause. Since ORDER BY clause cannot be used in UNIONS

95. What is Storage Manager?
It is a program module that provides the interface between the low-level data stored in database, application programs and queries submitted to the system.
96. What is Buffer Manager?
It is a program module, which is responsible for fetching data from disk storage into main memory and deciding what data to be cache in memory.

97. What is Transaction Manager?
It is a program module, which ensures that database, remains in a consistent state despite system failures and concurrent transaction execution proceeds without conflicting.

98. What is File Manager?
It is a program module, which manages the allocation of space on disk storage and data structure used to represent information stored on a disk.

99. What is Authorization and Integrity manager?
It is the program module, which tests for the satisfaction of integrity constraint and checks the authority of user to access data.
100. What are stand-alone procedures?
Procedures that are not part of a package are known as stand-alone because they independently defined. A good example of a stand-alone procedure is one written in a SQL*Forms application. These types of procedures are not available for reference from other Oracle tools. Another limitation of stand-alone procedures is that they are compiled at run time, which slows execution.

101. What are cursors give different types of cursors.
PL/SQL uses cursors for all database information accesses statements. The language supports the use two types of cursors
  • Implicit
  • Explicit

102. What is cold backup and hot backup (in case of Oracle)?
  • Cold Backup:
  • It is copying the three sets of files (database files, redo logs, and control file) when the instance is shut down. This is a straight file copy, usually from the disk directly to tape. You must shut down the instance to guarantee a consistent copy.
  • If a cold backup is performed, the only option available in the event of data file loss is restoring all the files from the latest backup. All work performed on the database since the last backup is lost.
  • Hot Backup:
  • Some sites (such as worldwide airline reservations systems) cannot shut down the database while making a backup copy of the files. The cold backup is not an available option.
  • So different means of backing up database must be used — the hot backup. Issue a SQL command to indicate to Oracle, on a tablespace-by-tablespace basis, that the files of the tablespace are to backed up. The users can continue to make full use of the files, including making changes to the data. Once the user has indicated that he/she wants to back up the tablespace files, he/she can use the operating system to copy those files to the desired backup destination.
  • The database must be running in ARCHIVELOG mode for the hot backup option.
  • If a data loss failure does occur, the lost database files can be restored using the hot backup and the online and offline redo logs created since the backup was done. The database is restored to the most consistent state without any loss of committed transactions.

103. What are Armstrong rules? How do we say that they are complete and/or sound
The well-known inference rules for FDs
  • Reflexive rule :
  • If Y is subset or equal to X then X Y.
  • Augmentation rule:
  • If X Y then XZ YZ.
  • Transitive rule:
  • If {X Y, Y Z} then X Z.
  • Decomposition rule :
  • If X YZ then X Y.
  • Union or Additive rule:
  • If {X Y, X Z} then X YZ.
  • Pseudo Transitive rule :
If {X Y, WY Z} then WX Z.
Of these the first three are known as Amstrong Rules. They are sound because it is enough if a set of FDs satisfy these three. They are called complete because using these three rules we can generate the rest all inference rules.

104. How can you find the minimal key of relational schema?
Minimal key is one which can identify each tuple of the given relation schema uniquely. For finding the minimal key it is required to find the closure that is the set of all attributes that are dependent on any given set of attributes under the given set of functional dependency.
Algo. I Determining X+, closure for X, given set of FDs F
1. Set X+ = X
2. Set Old X+ = X+
3. For each FD Y Z in F and if Y belongs to X+ then add Z to X+
4. Repeat steps 2 and 3 until Old X+ = X+

Algo.II Determining minimal K for relation schema R, given set of FDs F
1. Set K to R that is make K a set of all attributes in R
2. For each attribute A in K
a. Compute (K – A)+ with respect to F
b. If (K – A)+ = R then set K = (K – A)+


105. What do you understand by dependency preservation?
Given a relation R and a set of FDs F, dependency preservation states that the closure of the union of the projection of F on each decomposed relation Ri is equal to the closure of F. i.e.,
((R1(F)) U … U (Rn(F)))+ = F+
if decomposition is not dependency preserving, then some dependency is lost in the decomposition.
106. What is meant by Proactive, Retroactive and Simultaneous Update.
Proactive Update:
The updates that are applied to database before it becomes effective in real world .
Retroactive Update:
The updates that are applied to database after it becomes effective in real world .
Simulatneous Update:
The updates that are applied to database at the same time when it becomes effective in real world .

107. What are the different types of JOIN operations?
Equi Join: This is the most common type of join which involves only equality comparisions. The disadvantage in this type of join is that there