IT OFFICERS COMPUTERS

SATURDAY 10 March 2012

Computer Architecture and Organization Set - 1
Question 1:
Where does a computer add and compare data?
a. Hard disk
b. Floppy disk
c. CPU chip
d. Memory chip
 Question 2:
Which of the following registers is used to keep track of address of the memory location where the next instruction is located?
a. Memory Address Register
b. Memory Data Register
c. Instruction Register
d. Program Register
 Question 3:
A complete microcomputer system consists of
a. microprocessor
b. memory
c. peripheral equipment
d. all of above
 Question 4:
CPU does not perform the operation
a. data transfer
b. logic operation
c. arithmetic operation
d. all of above
 Question 5:
Pipelining strategy is called implement
a. instruction execution
b. instruction prefetch
c. instruction decoding
d. instruction manipulation
 Question 6:
A stack is
a. an 8-bit register in the microprocessor
b. a 16-bit register in the microprocessor
c. a set of memory locations in R/WM reserved for storing information temporarily during the execution of computer
d. a 16-bit memory address stored in the program counter
 Question 7:
A stack pointer is 
a. a 16-bit register in the microprocessor that indicate the beginning of the stack memory.
b. a register that decodes and executes 16-bit arithmetic expression.
c. The first memory location where a subroutine address is stored.
d. a register in which flag bits are stored
 Question 8:
The branch logic that provides decision making capabilities in the control unit is known as
a. controlled transfer
b. conditional transfer
c. unconditional transfer
d. none of above
 Question 9:
Interrupts which are initiated by an instruction are
a. internal
b. external
c. hardware
d. software
 Question 10:
A time sharing system imply
a. more than one processor in the system
b. more than one program in memory
c. more than one memory in the system
d. None of above
 Answers:
1. c              2. D             3. D             4. D             5. b
6. c              7. A             8. C             9. D             10. b

Computer Architecture and Organization Set - 2

Question 1:
Processors of all computers, whether micro, mini or mainframe must have 
a. ALU
b. Primary Storage
c. Control unit
d. All of above
 Question 2:
What is the control unit's function in the CPU?
a. To transfer data to primary storage
b. to store program instruction
c. to perform logic operations
d. to decode program instruction
 Question 3:
What is meant by a dedicated computer?
a. which is used by one person only
b. which is assigned to one and only one task
c. which does one kind of software
d. which is meant for application software only
 Question 4:
The most common addressing techiniques employed by a CPU is
a. immediate
b. direct
c. indirect
d. register
e. all of the above
 Question 5:
Pipeline implement
a. fetch instruction
b. decode instruction
c. fetch operand
d. calculate operand
e. execute instruction
f. all of abve
 Question 6:
Which of the following code is used in present day computing was developed by IBM corporation?
a. ASCII
b. Hollerith Code
c. Baudot code
d. EBCDIC code
 Question 7:
When a subroutine is called, the address of the instruction following the CALL instructions stored in/on the
a. stack pointer
b. accumulator
c. program counter
d. stack

Question 8:
A microprogram written as string of 0's and 1's is a 
a. symbolic microinstruction
b. binary microinstruction
c. symbolic microprogram
d. binary microprogram
 Question 9:
Interrupts which are initiated by  an instruction are
a. internal
b. external
c. hardware
d. software
 Question 10:
Memory access in RISC architecture is limited to instructions
a. CALL and RET
b. PUSH and POP
c. STA and LDA
d. MOV and JMP
  

Answers:

1. d      2. d     3. b     4. e      5. f      6. d     7. d     8. d     9. b    10. C




Computer Architecture and Organization Set - 3

Question 1:
A collection of 8 bits is called
a. byte
b. word
c. record
 Question 2:
The ascending order or a data Hierarchy is 
a. bit - bytes - fields - record - file - database
b. bit - bytes - record - field - file - database
c. bytes - bit- field - record - file - database
d. bytes -bit - record - field - file - database
 Question 3:
How many address lines are needed to address each memory locations in a 2048 x 4 memory chip?
a. 10
b. 11
c. 8
d. 12 
 Question 4:
A computer program that converts an entire program into machine language at one time is called a/an
a. interpreter
b. simulator
c. compiler
d. commander 
 Question 5:
In immediate addressing the operand is placed
a. in the CPU register
b. after OP code in the instruction
c. in memory
d. in stack 
 Question 6:
Microprocessor 8085 can address location upto 
a. 32K
b. 128K
c. 64K
d. 1M
 Question 7:
The ALU and control unit of most of the microcomputers are combined and manufacture on a single silicon chip. What is it called?
a. monochip
b. microprocessor
c. ALU
d. control unit 
 Question 8:
When the RET instruction at the end of subroutine is executed,
a. the information where the stack is iniatialized is transferred to the stack pointer
b. the memory address of the RET instruction is transferred to the program counter
c. two data bytes stored in the top two locations of the stack are transferred to the program counter
d. two data bytes stored in the top two locations of the stack are transferred to the stack pointer
 Question 9:
A microporgram is sequencer perform the operation  
a. read
b. write
c. execute
d. read and write
e. read and execute
 Question 10:
Interrupts which are initiated by an I/O drive are
a. internal
b. external
c. software
d. all of above 

 Answers:
1. a      2. a     3. b     4. c      5.b      6.c      7.b      8.c      9.e     10.b 





IT Test - Fundamentals of Computers eCourse Set 2

1. UNIVAC is
A) Universal Automatic Computer 
B) Universal Array Computer 
C) Unique Automatic Computer 
D) Unvalued Automatic Computer
2. The basic operations performed by a computer are
A) Arithmetic operation 
B) Logical operation 
C) Storage and retrieval
D) All the above
 3. The two major types of computer chips are
 A) External memory chip 
B) Primary memory chip 
C) Microprocessor chip 
D) Both b and c
4. Microprocessors as switching devices are for which generation computers
A) First Generation 
B) Second Generation 
C) Third Generation 
D) Fourth Generation
5. What is the main difference between a mainframe and a super computer?
A) Super computer is much larger than mainframe computers 
B) Super computers are much smaller than mainframe computers 
C) Supercomputers are focused to execute few programs as fast as possible while mainframe uses its power to execute as many programs concurrently 
D) Supercomputers are focused to execute as many programs as possible while mainframe uses its power to execute few programs as fast as possible.
6. ASCII and EBCDIC are the popular character coding systems. What does EBCDIC stand for?
A) Extended Binary Coded Decimal Interchange Code 
B) Extended Bit Code Decimal Interchange Code 
C) Extended Bit Case Decimal Interchange Code 
D) Extended Binary Case Decimal Interchange Code
7. The brain of any computer system is
A) ALU 
B) Memory 
C) CPU 
D) Control unit
8. Storage capacity of magnetic disk depends on
A) Tracks per inch of surface 
B) Bits per inch of tracks 
C) Disk pack in disk surface 
D) All of above
9. The two kinds of main memory are:
A) Primary and secondary 
B) Random and sequential 
C) ROM and RAM 
D) All of above
10. A storage area used to store data to a compensate for the difference in speed at which the different units can handle data is
A) Memory 
B) Buffer 
C) Accumulator 
D) Address
Answers:
1-A
2-D
3-D
4-D
5-C
6-A
7-C
8-D
9-C
10-B
 Explanation:
 UNIVAC
 After the successful development of ENIAC and EDVAC, John Mauchly & J.P. Eckert founded their own company in 1946 and began to work on the Universal Automatic computer. UNIVAC was the first general purpose commercial computer.
Operations of Computers
Computers are magnificient devices not only to perform processing (calculation) but they are able to manage huge storage and easy retrieval.
Types of Computer Chips
After the invention of semiconductor silicon chips, it revolutionized the world of electronic. In computers, chips are basically used for primary memory. Similarly microprocessors also use the same IC chips. Read more about computer chips and how they are manufactured at Third Generation of Computers.
Microprocessors
IC Chips were developed and used in third generation of computers. However, these chips were used to build microprocessors only in fourth generation. Due to the invention of microprocessors, micro-computers were possible.
Probably the most important development in this generation is microprocessor. The Intel 4004 chip, developed in 1971, took the integrated circuit one step further by locating all the components of a computer (central processing unit, memory, and input and output controls) on a minute chip.  Whereas previously the integrated circuit had had to be manufactured to fit a special purpose, now one microprocessor could be manufactured and then programmed to meet any number of demands.  Soon everyday household items such as microwave ovens, television sets, and automobiles with electronic fuel injection incorporated microprocessors 
Mainframe Computers and Super Computers
Super Computers are not the largest computers but they are often classified on the basis of size. Super computers are considered better for the speed and power. This speed is achieved from the fact that they are designed to run small number of programs but with utmost speed whereas, mainframe computers are designed to run as many programs as possible to support multiple users.
EBCDIC
Extended Binary Coded Decimal Interchange Code (EBCDIC) is an 8-bit character encoding used mainly on IBM mainframe and IBM midrange computer operating systems. EBCDIC descended from the code used with punched cards and the corresponding six bit binary-coded decimal code used with most of IBM's computer peripherals of the late 1950s and early 1960s. It is also employed on various non-IBM platforms such as Fujitsu-Siemens' BS2000/OSD, HP MPE/iX, and Unisys MCP.

Brain of Computer
Because CPU performs thinking, remembering and controlling the whole system, it is often called the brain of Computer System.
Storage Capacity of Disks
It is fairly obvious that more data can be stored in a disk if there are more tracks per inch of disk surface, more bits can be accomodated in every inch of track and many disk packs are used. 
Two kind of main memory
Main memory or primary memory are of two types - ROM and RAM. ROM is used to store permanent type of programs such as POST (Power On Self Test), BIOS (Basic Input Output Systems). RAM is used to load user programs and is erased automatically when power supply is cut off.
Buffer
Buffer is a storage area used to store data to a compensate for the difference in speed at which the different units can handle data. It will collect until the prespecified amount of data to allow processing it as a unit. 


IT Test - Fundamentals of Computers eCourse Set 2

1. What do you call the programs that are used to find out possible faults and their causes?
A) Operating system 
B) Cookies 
C) Diagnostic software 
D) Boot diskettes
2. Who invented the high level language C?
A) Dennis M. Ritchie 
B) Niklaus Writh 
C) Seymour Papert 
D) Donald Kunth
3. Which of the following is not a type of Software
A) System Software 
B) Application Software 
C) Utility Software 
D) Entertainment Software
4. Which of the following is not the classification of computers based on application?
A) Electronic Computers 
B) Analog Computers 
C) Digital Computers 
D) Hybrid Computers
5. Which of the following registers is used to keep track of address of the memory location where the next instruction is located?
A) Memory address register 
B) Memory data register 
C) Instruction register 
D) Program counter
6. Networking such as LAN, MAN started from
A) First generation 
B) Second generation 
C) Third generation 
D) Fourth generation
7. Which characteristic of computer distinguishes it from electronic calculators?
A) Accuracy 
B) Storage 
C) Versatility 
D) Automatic
8. Which of the following is the largest manufacturer of Hard Disk Drives?
A) IBM 
B) Seagate 
C) Microsoft 
D) 3M
9. LSI, VLSI & ULSI chips were used in which generation?
A) First 
B) Second 
C) Third 
D) Fourth
10. Which is the type of memory for information that does not change on your computer?
A) RAM 
B) ROM 
C) ERAM 
D) RW / RAM
Answers:
1-C
2-C
3-D
4-C
5-D
6-B
7-B
8-B
9-C
10-D
 Explanation:
Diagnostic Software
A diagnostic program is a program written for the express purpose of locating problems with the software, hardware, or any combination thereof in a system, or a network of systems. Preferably, diagnostic programs provide solutions to the user to solve issues. MemTurbo, Registry Repair Wizard, Disk Cleaner etc are some examples of diagnostic software.
Inventor of Programming Language C
C was created in 1972 by Ken Thompson and Dennis Ritchie, researchers at AT&T's Bell Labs in Murray Hill, New Jersey who also invented the UNIX operating system (a program used to operate computer systems). After creating UNIX, the two programmers needed to enable it for use on many different kinds of computers. Improving upon a language called B that Thompson had developed, they created C to accomplish this task. By doing so, they created the first portable operating system, and UNIX became the first major program to be written in the C language. According to C Programming by Augie Hansen, C went through a long period of development before it was released in Brian Kernighan and Dennis Ritchie's 1978 book The C Programming Language. Later, the American National Standards Institute (ANSI) developed a standardized version of the language to make it more acceptable for international use.
Types of Software
Software are generally categorized into two types, (1) system software - programs that are required to run computer and (2) application software - programs that are used to perform user tasks. So, operating systems, programming languages, language processors and utility programs are system software. WordProcessing, spreadsheet calculation, presentation, database management, multimedia applications and so on are application software.
Some people prefer to classify computers into three types - system, application and utility software but we don't have a type called 'Entertainment Software'.
Classification of Computers Based on Application
There are three classes of computers based on application - Analog, Digital and Hybrid. 
Program Counter
 Program counter holds the address of either the first byte of the next instruction to be fetched for execution or the address of the next byte of a multi byte instruction, which has not been completely fetched. In both the cases it gets incremented automatically one by one as the instruction bytes get fetched. Also Program register keeps the address ofthe next instruction.
Program counter is 16 bit register which hold the address of next instruction to be executed.



THURSDAY 08 March 2012
Computer Networking MCQ Set - 1
Question 1:
In OSI network architecture, the dialogue control and token management are responsibility of
a. session layer
b. network layer
c. transport layer
d. data link layer
e. none of above
 Question 2:
In OSI network architecture, the routing is performed by
a. network layer
b. data link layer
c. transport layer
d. session layer
e. none of above
 Question 3:
Which of the following performs modulation and demodulation?
a. fiber optics
b. satellite
c. coaxial cable
d. modem
e. none of the above


Question 4:
The process of converting analog signals into digital signals so they can be processed by a receiving computer is referred to as:
a. modulation
b. demodulation
c. synchronizing
d. digitising
 Question 5:
How many OSI layers are covered in the X.25 standard?
a. Two
b. Three
c. Seven
d. Six
e. None of above
 Question 6:
Layer one of the OSI model is
a. physical layer
b. link layer
c. transport layer
d. network layer
e. none of above
 Question 7:
The x.25 standard specifies a 
a. technique for start-stop data
b. technique for dial access
c. DTE/DCE interface
d. data bit rate
e. none of above
 Question 8:
Which of the following communication modes support two-way traffic but in only one direction at a time?
a. simplex
b. half duplex
c. three-quarters duplex
d. all of the above
e. none of the above
 Question 9:
Which of the following might be used by a company to satisfy its growing communications needs?
a. front end processor
b. multiplexer
c. controller
d. concentrator
e. all of the above
 Question 10:
What is the number of separate protocol layers at the serial interface gateway specified by the X.25 standard?
a. 4
b. 2
c. 6
d. 3
3. none of the above
Correct Answers:
1. a
2. a
3. d
4. d
5. b
6. a
7. c
8. b
9. e
10. d



Computer Networking MCQ Set - 2

Question 1:
The interactive transmission of data within a time sharing system may be best suited to 
a. simplex lines
b. half-duplex lines
c. full duplex lines
d. biflex-lines
 Question 2:
Which of the following statement is incorrect?
a. The difference between synchronous and asynchronous transmission is the clocking derived from the data in synchronous transmission.
b. Half duplex line is a communication line in which data can move in two directions, but not at the same time.
c. Teleprocessing combines telecommunications and DP techniques in online activities
d. Batch processing is the prefered processing mode for telecommunication operation.
 Question 3:
Which of hte following is considered a broad band communication channel?
a. coaxial cable
b. fiber optics cable
c. microwave circuits
d. all of above
 Question 4:
Which of the following is not a transmission medium?
a. telephone lines
b. coaxial cables
c. modem
d. microwave systems
 Question 5:
Which of the following does not allow multiple uses or devices to share one communication line?
a. doubleplexer
b. multiplexer
c. concentrator
d. controller
 Question 6:
Which of the following signal is not standard RS-232-C signal?
a. VDR
b. RTS
c. CTS
d. DSR
 Question 7:
Which of the following statement is incorrect?
a. Multiplexers are designed to accept data from several I/O devices and transmit a unified stream of data on one communication line
b. HDLC is a standard synchronous communication protocol.
c. RTS/CTS is the way the DTE indicates that it is ready to transmit data and the way the DCW indicates that it is ready to accept data
d. RTS/CTS is the way the terminal indicates ringing
Question 8:
Which of the following is an advantage to using fiber optics data transmission?
a. resistance to data theft
b. fast data transmission rate
c. low noise level
d. all of above
 Question 9:
Which of the following is required to communicate between two computers?
a. communications software
b. protocol
c. communication hardware
d. all of above including access to transmission medium
 Question 10:
The transmission signal coding method of TI carrier is called
a. Bipolar
b. NRZ
c. Manchester
d. Binary
 Answers:
1. b              2. D             3. D             4. C             5. a
6. a              7. D             8. D             9. D             10. a



Computer Networking MCQ Set - 3

Question 1:
Which data communication method is used to transmit the data over a serial communication link?
a. simplex
b. half-duplex
c. full-duplex
d. b and c
e. None of above
 Question 2:
What is the minimum number of wires needed to send data over a serial communication link layer?
a. 1
b. 2
c. 4
d. 6
e. none of above
 Question 3:
Which of the following types of channels moves data relatively slowly?
a. wide band channel
b. voice band challen
c. narrow band channel
 Question 4:
Most data communications involving telegraph lines use:
a. simplex lines
b. wideband channel
c. narrowband channel
d. dialed service
 Question 5:
A communications device that combines transmissions from several I/O devices into one line is a 
a. concentrator
b. modifier
c. multiplexer
d. full-duplex line
 Question 6:
How much power (roughly) a light emitting diode can couple into an optical fiber?
a. 100 microwatts
b. 440 microwatts
c. 100 picowatts
d. 10 miliwatts
 Question 7:
The synchronous modems are more costly than the asynchronous modems because
a. they produce large volume of data
b. they contain clock recovery circuits
c. they transmit the data with stop and start bits
d. they operate with a larger bandwidth
e. none of above

Question 8:
Which of the following statement is correct?
a. terminal section of a synchronous modem contains the scrambler
b. receiver section of a synchronous modem contains the scrambler
c. transmission section of a synchronous modem contains the scrambler
d. control section of a synchronous modem contains the scrambler
e. none of the above
 Question 9:
In a synchronous modem, the digital-to-analog converter transmits signal to the 
a. equilizer
b. modulator
c. demodulator
d. terminal
e. none of aobve
 Question 10:
Which of the following communications lines is best suited to interactive processing applications?
a. narrow band channel
b. simplex lines
c. full duplex lines
d. mixed band channels
 Answers
1. c              2. B             3. C             4. C             5. c
6. a              7. B             8. C             9. A             10. c

Computer Networking MCQ Set - 4

Question:1
A remote batch-processing operation in which data is solely input to a central computer would require
a. telegraphp line
b. simplex lines
c. mixed bad channel
d. all of above
 Question 2:
A band is always equivalent to 
a. a byte
b. a bit
c. 100 bits
d. none of above
 Question 3:
The loss in signal power as light travels down the fiber is called
a. attenuation
b. progragation
c. scattering
d. interruption
 Question 4:
Avalanche photodiode receivers can detect bits of transmitted data by receiving
a. 100 photons
b. 200 photons
c. 2000 photons
d. 300 photons
 Question 5:
Communiction circuits that transmit data in both directions but not at the same time are operating in
a. a simplex mode
b. a half duplex mode
c. a full duplex mode
d. an asynchronous mode
 Question 6:
An example of a medium speed, switched communications service is
a. series 1000
b. data phone 50
c. DDD
d. All of the above
 Question 7:
In communication satellite, multiple repeaters are known as
a. detector
b. modulator
c. stations
d. transponders
 Question 8:
While transmitting odd-parity coded symbols, the number of zeros in each symbol is
a. odd
b. even
c. a and b both
d. unknown
 Question 9:
Data communications monitors available on the software marked include
a. ENVIRON/1
b. TOTAL
c. BPL
d. Telnet
 Question 10:
An example of an analog communication method is
a. laser beam
b. microwave
c. voice grade telephone line
d. all of the above

Answers

1. b              2. D             3. A             4. B             5. b
6. c              7. D             8. D             9. A             10. d



Computer Networking MCQ Set - 5

Question:1
Number of bits per symbol used in Baudot code is
a. 7
b. 5
c. 8
d. 9

Question 2:
What is the main difference between DDCMP and SDLC?
a. DDCMP does not need special hardware to final the beginning of a message
b. DDCMP has a message header
c. SDLC has a IP address
d. SDLC does not use CRC

Question 3:
An example of digital, rather than analog, communication is
a. DDD
b. DDS
c. WATS
d. DDT

Question 4:
Terminals are required for 
a. real-time, batch processing & time-sharing
b. real time, time-sharing & distributed message processing
c. real time, distributed processing & manager inquiry
d. real-time,  time sharing & message switching

Question 5:
The receive equilizer reduces delay distortions using a
a. tapped delay lines
b. gearshift
c. descrambler
d. difference engine

Question 6:
Ina synchronous modem, the receive equilizer is known as
a. adaptive equilizer
b. impariment equilizer
c. statistical equilizer
d. compromise equilizer 

Question 7:
The channel in the data communication model can be
a. postal mail services
b. telephone lines
c. radio lines
d. any of the above

Question 8:
A data terminal serves as an
a. Effector
b. sensor
c. both a and b
d. neither a nor b

Question 9:
Which of the following transmission systems provide the highest data rate to in individual device?
a. computer bus
b. telephone lines
c. voice and mode
d. lease lines

Question 10:
A protocol is a set of rules governing a time sequence of events that must take place
a. between peers
b. between an interface
c. between modems
d. across an interface

Answers

1. b
2. a
3. b
4. d
5. a
6. a
7. d
8. c
9. a
10. a



WEDNESDAY 07 March 2012
MS-DOS-Objective Questions with Solutions and Explanations -Set 1

1.    In MS-Dos 6.22, which part identifies the product uniquely
 
a.    MS
b.    DOS
c.    Ms-DOS
d.    6.22
Correct Answer: d. 6.22
Explanation: MS stands for Microsoft, DOS is the name of operating system Disk Operating System, 6.22 is the version number that identifies the product.

2.    In Ms-Dos what command you will use to display system date?
a.    Date command
b.    Ver command
c.    Disk command
d.    Format command
Correct Answer: a. Date command
Explanation: Ver command displays the version number of Dos. There is no command as Disk. Format command prepares a disk to be used with DOS. Thus Date is the command that lets you to display and/or change the system date.

3.    While working with Ms-Dos which command transfers a specific file from one disk to another?
a.    Copy
b.    Diskcopy
c.    Time
d.    Rename

Correct Answer: a. Copy
For a specific file to copy from one disk to another disk, Copy command should be used. Diskcopy copies whole disk into new disk. Time command is to display system time and Rename command just changes the name of a file.
  
4.    If you don’t know the current time, which command will you use to display
a.    Copy
b.    Ver
c.    Time
d.    Format

Correct Answer: c. Time
Explanation: Time command displays and allows you to change system time. TIME only displays the system time and TIME <time> is used to set new time as system time.

5.    Which command divides the surface of the blank disk into sectors and assign a unique address to each one
a.    Ver
b.    Format
c.    Fat
d.    Chkdsk

Correct Answer: b. Format
Explanation: Ver is used to display the version number of DOS in use. Fat command does not exist and Chkdsk is to check disk errors and fix it. Thus dividing surface into sectors is done by Format command.

6.    Each time you turn on your computer, it will check on the control file
a.    Command.com, io.sys
b.    Command.com, date.com, dir.com
c.    Command.com, io.sys, msdos.sys
d.    Chkdsk.exe

Correct Answer: c. command.com, io.sys, msdos.sys
Explanation: command.com, io.sys and msdos.sys are the essential system files of MS-Dos. Loading these files from disk into memory is known as booting. Booting is the process of preparing your computer to work.
  
7.    If you need to duplicate the entire disk, which command will you use?
a.    Copy
b.    Diskcopy
c.    Chkdsk
d.    Format

Correct Answer: b. Diskcopy
Explanation: Diskcopy is used to perform track-by-track copy of a disk into another. Copy command copies selected files; chkdsk and format commands are not for copying purpose.

8.    Which of the following extensions suggest that the file is a backup copy
a.    Bak
b.    Bas
c.    Com
d.    Txt

Correct Answer: a. Bak
Explanation: Bak extension is commonly used to store backup copies of files so that it can be restored later when original file is corrupted or deleted. Bas extension indicates the file is a BASIC program source file, com is command file and txt is plain text file.

9.    Which command lists the contents of current directory of a disk
a.    Copy
b.    Tree
c.    Cd
d.    Dir

Correct Answer: Dir
Explanation: Dir command lists the directory of current location. It includes the files, subdirectories and some other system information. Tree command is used to list the directory structure in tree diagram; CD command to change directory and Copy command to copy a file into another.

10.Only filenames and extensions are to be displayed in wide format, which command you’ll use?
a.    Dir/w
b.    Dir a:
c.    Dir/s
d.    Dir/b

Correct Answer: Dir/w

Explanation: Dir/w only displays the file names and extensions excluding file created date/time, file size. Second option dir a: will list the contents of A drive (floppy drive), third dir/s lists current directory and its subdirectories too, dir/b displays bare format, that means, it just makes a list of files, no more information.

MS-DOS-Objective Questions with Solutions and Explanations- Set 2

 

11.    Which command displays all the files having the same name but different extensions?
a.    Dir filename.*
b.    Dir filename.ext
c.    Dir *.sys
d.    Dir *.ext

Correct Answer: a. Dir filename.*
Explanation: * is a wild card character that stands for all any character. When you specify filename.*, it meant filename should be specified one but extension can be any. Second option lists only the specified filename.exe and third and fourthcommands lists all files with sys extension and specified extension.

 

12.    Which command displays only file and directory names without size, date and time information?
a.    Dir/w
b.    Dir a:
c.    Dir /b
d.    Dir /s

Correct Answer: dir/b
Explanation: dir/b command barely lists the names of files and directories without any other information like size, date, time etc.

13.    Which command displays comma for thousand separating on file size while listing?
a.    Dir/w
b.    Dir/s
c.    Dir/b
d.    Dir/c

Correct Answer: d. Dir/c
Explanation: Using comma for separating thousand in file size is by default on. You can use dir/-c to remove comma from the listing. /C stands for comma.
  
14.    Which command is used to display all the files having the (.exe) extension but different filename?
a.    Dir filename.*
b.    Dir filename.ext
c.    Dir *.sys
d.    Dir *.ext

Correct Answer: d. Dir *.ext
Explanation: First two options are obviously wrong since specifying filename will list for that filename only. Since we need to list only with .ext extension fourth option is correct. Third option displays all files with sys extension.

15.    Which command should be used to display all files within the specified subordinate directory of the subdirectory?
a.    Dir \ pathname
b.    Dir \ pathname\pathname
c.    Dir / ch
d.    Dir \pathname\filename

Correct Answer: b. Dir \pathname\pathname
Explanation: The subordinate directory of subdirectory can be accessed through the path sequence pathname\pathname and dir command lists the files of that location.

16.    Which command displays the directory list including files in tree structure?
a.    Dir/s/f
b.    Tree/f
c.    Tree/s/f
d.    Dir/f

Correct Answer: b. Tree/f
Explanation: Tree command lists the directory structure in tree structure and /f switch of tree command includes the filenames in the structure.
   
17.    Which command will be used to display a file within the specified directory of pathname?
a.    Dir \pathname
b.    Dir \pathname\pathname
c.    Dir/ch
d.    Dir \pathname\filename

Correct Answer: d. Dir \pathname\filename
Explanation: Displaying a file which is inside specified directory can be done by specifying a directory name \ and filename.

18.    Which command creates a directory or subdirectory?
a.    Dir
b.    Mkdir
c.    Md
d.    Both b and c

Correct Answer: d. Both b and c
Explanation: MK command and MKDIR both commands are equivalent and can be used to create subdirectories. Dir only lists directory but can’t create.
 
19.    Which command displays current directory name or change from one to another?
a.    Chdir
b.    Cd
c.    Mkdir
d.    Both a and b

Correct Answer: d. Both a and b
Explanation: CD and CHDIR commands are equivalent and both used to change current working directory to another one. MKDIR creates a new directory and can’t be used to change.
20. Which command is used to delete the directory that is empty?
a.    Del *.*
b.    RD
c.    Erase
d.    MD

Correct Answer: b. RD
Explanation: RD command or RMDIR commands can be used to remove a directory if it is empty. Del command and Erase commands are used to delete files not directories. MD creates a new directory and can’t remove directory.

MS-DOS-Objective Questions (MCQ) with Solutions and Explanations -Set 3

 

1. An entire path name, consisting of several sub-directory names can contain upto
a. 13 character
b. 36 character
c. 63 character
d. 53 character
Correct Answer: c

 2. In which year the first operating system was developed
a. 1910
b. 1940
c. 1950
d. 1980
Correct Answer: c
  
3. MS-DOS developed in
a. 1991
b. 1984
c. 1971
d. 1961
Correct Answer: b
  
4. Maximum length of DOS command using any optional parameter is
a. 26 characters
b. 87 characters
c. 127 characters
d. None of above
Correct Answer: c
  
5. In which version of DOS. CHKDSK command has been changed to SCANDISK?
a. 5.0
b. 6.2
c. 6.0
d. 6.2
Correct Answer: d
  
6. CHKDSK command is used to
a. Analyze the hard disk error
b. Diagnose the hard disk error
c. Report the status of files on disk
d. All of the above
Correct Answer: d

 7. Which file is the batch file that is read while booting a computer?
a. Autoexec.bat
b. Auto-batch
c. Autoexecutive.bat
d. Auto.bat
Correct Answer: a

8. Which command is used to backup in DOS 6+ Version
a. BACKUP
b. MSBACKUP
c. MSBACKEDUP
d. All of the above
Correct Answer: b

9. Copy and Xcopy are same in the sense
a. Both are internal command of DOS
b. Both are external commands of DOS
c. Both can be used to copy file or group of files
d. Both a and b
Correct Answer: c

10. Which command is used to clear the screen
a. Cls
b. Clear
c. Clscreen
d. All of above
Correct Answer: a

11. internal command in Dos are
a. Cls, rd label
b. Dir, ren, sys
c. Time, type, dir
d. Del, disk copy, label
Correct Answer: c

12. Which command is used to copy files?
a. Copy
b. Diskcopy
c. Type
d. All of the above
Correct Answer: a

13. To copy the hidden system files of DOS to another disk you can use the command
a. Copy
b. Ren
c. Sys
d. Diskcopy
Correct Answer: c

14. Disk copy command in DOS is used to
a. Copy a file
b. Copy contents of one floppy disk to another
c. Copy contents of CD-ROM to another
d. All of the above
Correct Answer: b
  
15. SYS command is used to
a. Copy DOS system files to new disk
b. Copy DOS configuration files to a new disk
c. Update the DOS system files
d. None of above
Correct Answer: a
  
16. The command used to copy a file named temp.doc from drive C: to drive A: is
a. Copy temp.doc to a:
b. Copy c:\temp.doc a:
c. Copy c: a:
d. Copy temp a: c:
Correct Answer: b

 17. External command in DOS are
a. Copy, edit, sys, format
b. Edit, sys, chkdsk
c. Chkdsk, prompt, date
d. Sys, ver, vol
Correct Answer: b
  
18. Which keys can be pressed quit without saving in DOS
a. Ctrl + A
b. Ctrl + B
c. Ctrl + C
d. Ctrl + D
Correct Answer: c
  
19. Which command is used to get the current date only?
a. Date
b. Time
c. Second
d. All of the above
Correct Answer: a
  
20. Generally, the DATE is entered in the form
a. DD-YY-MM
b. YY-DD-MM
c. MM-YY-DD
d. MM-DD-YY
Correct Answer: d 

 

21. DEL command is used to
a. Delete files
b. Delete directory
c. Delete labels
d. Delete contents of file
Correct Answer: a
  
22. Which command be used to ask you to confirm that you want to delete the directory?
a. Deltree
b. Deltree/f
c. Del *.*/p
d. Erase *.*
Correct Answer: c
  
23. Which statement is correct?
a. Directories can be kept inside a file
b. Files can not be kept inside a directory
c. 1 millisec = 10 ^ 3 sec
d. None of above
Correct Answer: c
  
24. CHKDSK can be used to find
a. Disk’s bad portion
b. Occupied space
c. Free space
d. All of above
Correct Answer: d
  
25. DIR command is used to
a. Display a list of files in a directory
b. Display contents of files in directory
c. Display type of files in a sub directory
d. All of above
Correct Answer: a

26. The deleted file in MS-DOS can be recovered if you use the command mention below immediately, the command is:
a. DO NOT DELETE
b. NO DELETE
c. UNDELETE
d. ONDELETE
Correct Answer: c

 27 To copy the file command.com from drive c: to drive a:
a. Drive c: copy drive a:\command.com
b. C:A: copy command.com
c. Copy c:\command.com a:
d. Both b and c
Correct Answer: c
  
28. While working with MS-DOS which key is used to get the p[revious command used:
a. F3
b. F1
c. F6
d. F9
Correct Answer: a
  
29. FAT stands for
a. File Accomodation Table
b. File Access Tape
c. File Allocation Table
d. File Activity Table
Correct Answer: c

30. xcopy command can copy
a. individual files or group of files
b. directories including subdirectories
c. to diskette of a different capacity
d. all of above
Correct Answer: d
  
31. Which command is used to make a new directory?
a. Md
b. Cd
c. Rd
d. None of above
Correct Answer: a
 32. Full form of MS-DOS is
a. Micro System Disk Operating System
b. Micro Simple Disk Operating System
c. Micro Soft Disk Operating System
d. Micro Sort Disk Operating System
Correct Answer: c
  
33. Operating System is like a
a. Parliament
b. Secretary
c. Government
d. None of the above
Correct Answer: c
  
34. Format command is used to
a. Prepare a blank disk
b. Create a new blank disk from a used one
c. Both of above
d. None of above
Correct Answer: c
  
35. The following command set is correct according to their function
a. RD can MD
b. DEL and ERASE
c. CD and RD
d. COPY and RENAME
Correct Answer: b

 36. Which command is used to change the file name?
a. Ren
b. Rename
c. Both of above
d. None of above
Correct Answer: c

37. While working with MS-DOS, which command is used to copying the files to transfer from one PC to another one?
a. Rename
b. Path
c. Dir
d. Copy
Correct Answer: d

38. RESTORE command is used to
a. Restore files from disks made using the BACKUP command
b. Restore files which are deleted
c. Restore files from recycle bin
d. Restore files which are deleted recently
Correct Answer: a

39. The vol command is used to
a. see the value of list
b. see the veriety of language
c. see the disk volume label
d. see the volume of largest
Correct Answer: c

40. In MS-DOS you can use small or capital letter of combination of both to enter a command but internally MS-DOS work with.
a. Small letter
b. Capital letter
c. Both a and b
d. None of above
Correct Answer: b

41. The maximum length in DOS commands is
a. 80 chars
b. 127 chars
c. 100 chars
d. 8 chars
Correct Answer: b

42. The time command is used to display _____ time.
a. US time
b. Greenwich Mean Time
c. Julian Time
d. System Time
Correct Answer: d 

43. Which command be used to clear the screen and display the operating system prompt on the first line of the display?
a. Cd
b. Md
c. Rename
d. cls
Correct Answer: d







06 March 2012
Basics of C++ - Objective Questions

SET I

Question 1.

What is the correct value to return to the operating system upon the successful completion of a program?
A. -1
B. 1
C. 0
D. Programs do not return a value.
 Question 2.
What is the only function all C++ programs must contain?
A. start()
B. system()
C. main()
D. program()
 Question 3.
What punctuation is used to signal the beginning and end of code blocks?
A. { }
B. -> and <-
C. BEGIN and END
D. ( and )
 Question 4.
What punctuation ends most lines of C++ code?
A. . (dot)
B. ; (semi-colon)
C. : (colon)
D. ' (single quote)
 Question 5.
Which of the following is a correct comment?
A. */ Comments */
B. ** Comment **
C. /* Comment */
D. { Comment }
 Question 6.
Which of the following is not a correct variable type?
A. float
B. real
C. int
D. double
 Question 7.
Which of the following is the correct operator to compare two variables?
A. :=
B. =
C. equal
D. ==

Question 8.

Which of the following is true?
A. 1
B. 66
C. .1
D. -1
E. All of the above
 Question 9.
Which of the following is the boolean operator for logical-and?
A. &
B. &&
C. |
D. |&
 Question 10.
Evaluate !(1 && !(0 || 1)).
A. True
B. False
C. Unevaluatable

Answers


1. C. 0
2. C. main()
3. A. { }
4. B. ;
5. C. /* Comment */
6. B. real
7. D. ==
8. E. All of the above
9. B. &&
10. A. True



Set 2

Question 1

Identify the correct statement
a. Programmer can use comments to include short explanations within the source code itself.
b. All lines beginning with two slash signs are considered comments.
c. Comments very important effect on the behaviour of the program
d. both
 Question 2
The directives for the preprocessors begin with
a.    Ampersand symbol (&)
b.    Two Slashes (//)
c.    Number Sign (#)
d.    Less than symbol (<)
 Question 3
The file iostream includes
a.    The declarations of the basic standard input-output library.
b.    The streams of includes and outputs of program effect.
c.    Both of these
d.    None of these
 Question 4
There is a unique function in C++ program by where all C++ programs start their execution
a.    Start()
b.    Begin()
c.    Main()
d.    Output()
 Question 5
Every function in C++ are followed by
a.    Parameters
b.    Parenthesis
c.    Curly braces
d.    None of these
 Question 6
Which of the following is false?
a.    Cout represents the standard output stream in c++.
b.    Cout is declared in the iostream standard file
c.    Cout is declared within the std namespace
d.    None of above
 Question 7
Every statement in C++ program should end with
a.    A full stop (.)
b.    A Comma (,)
c.    A Semicolon (;)
d.    A colon (:)
 Question 8
Which of the following statement is true about preprocessor directives?
a.    These are lines read and processed by the preprocessor
b.    They do not produce any code by themselves
c.    These must be written on their own line
d.    They end with a semicolon
 Question 9
A block comment can be written by
a.    Starting every line with double slashes (//)
b.    Starting  with /* and ending with */
c.    Starting with //* and ending with *//
d.    Starting with <!- and ending with -!>
 Question 10 : When writing comments you can
a.    Use code and  /* comment on the same line
b.    Use code and // comments on the same line
c.    Use code and //* comments on the same line
d.    Use code and <!- comments on the same line
Answers
1.    b.  All lines beginning with two slash signs are considered comments.
2.    c. Number Sign (#)
3.    a. The declarations of the basic standard input-output library.
4.    c. Main()
5.    b. Parenthesis
6.    d. None of above
7.    c. A semicolon
8.    d. They end with a semicolon
9.    b. Starting  with /* and ending with */
10.    b. Use code and // comments on the same line

Set 3

Question 1

 A variable is/are
        a.    String that varies during program execution
        b.    A portion of memory to store a determined value
        c.    Those numbers that are frequently required in programs
        d.    None of these

Question 2

 Which of the following can not be used as identifiers?
 a.    Letters
 b.    Digits
 c.    Underscores
d.    Spaces

Question 3

 Which of the following identifiers is invalid?
 a.    papername
 b.    writername
 c.    typename
 d.    printname
 Question 4
 Which of the following can not be used as valid identifier?
 a.    bitand
 b.    bittand
 c.    biand
 d.    band
 Question 5
 The difference between x and ‘x’ is
 a.    The first one refers to a variable whose identifier is x and the second one refers to the character constant x
 b.    The first one is a character constant x and second one is the string literal x
 c.    Both are same
 d.    None of above
 Question 6
 Which of the following is not a valid escape code?
 a.    \t
 b.    \v
 c.    \f
 d.    \w
 Question 7
 Which of the following statement is true?
 a.    String Literals can extend to more than a single line of code by putting a backslash sign at the end of each unfinished line.
 b.    You can also concatenate several string constants separating them by one or several blank spaces, tabulators, newline or any other valid blank character
 c.    If we want the string literal to explicitly made of wide characters, we can precede the constant with the L prefix
 d.    All of above
 Question 8
 Regarding #difine which of the following statement is false?
 a.    It is not C++ statement but the directive for the preprocessor
 b.    This does not require a semicolon at the end of line
 c.    It is a C++ statement that declares a constant in C++
 d.    None of the above
 Question 9
 Regarding following statement  which of the statements is true?
 const int pathwidth=100;
 a.    Declares a variable pathwidth with 100 as its initial value
 b.    Declares a construction pathwidth with 100 as its initial value
 c.    Declares a constant pathwidth whose value will be 100
 d.    Constructs an integer type variable with pathwidth as identifier and 100 as value
 Question 10
 In an assignment statement
 a.    The lvalue must always be a variable
 b.    The rvalue might be a constant, a variable, an expression or any combination of these
 c.    The assignment always takes place from right to left and never the other way
 d.    All of above
Answers
1.     b. A portion of memory to store a determined value
 2.     d.  Spaces
 3.     c. Typename
 4.     a. Bitand

5.     a. The first one refers to a variable whose identifier is x and the second one refers to the character constant x
 6.     d. \w
 7.     d. All of above
 8.     c. It is a C++ statement that declares a constant in C++
 9.    c. Declares a constant pathwidth whose value will be 100
 10. d. All of above



Set 4

Question 1

In an assignment statement
a=b;
Which of the following statement is true?
a.    The variable a and the variable b are equal.
b.    The value of b is assigned to variable a but the later changes on variable b will not effect the value of variable a
c.    The value of b is assigned to variable a and the later changes on variable b will effect the value of variable a
d.    The value of variable a is assigned to variable b and the value of variable b is assigned to variable a.
Question 2
All of the following are valid expressions in C++
a  =  2 + (b = 5);
a  = b = c = 5;
a  = 11 % 3
a.    True
b.    False
 Question 3:
To increase the value of c by one which of the following statement is wrong?
a.    c++;
b.    c = c + 1;
c.    c + 1 => c;
d.    c += 1

Question 4:

When following piece of code is executed, what happens?
b = 3;
a = b++;
a.    a contains 3 and b contains 4
b.    a contains 4 and b contains 4
c.    a contains 4 and b contains 3
d.    a contains 3 and b contains 3

Question 5:

The result of a Relational operation is always
a.    either True or False
b.    is less than or is more than
c.    is equal or less or more
d.    All of these

Question 6:

Which of the following is not a valid relational operator?
a.    ==
b.    =>
c.    >=
d.    >=

Question 7:

What is the final value of x when the code int x; for(x=0; x<10; x++) {} is run?
A. 10
B. 9
C. 0
D. 1

Question 8:

When does the code block following while(x<100) execute?
A. When x is less than one hundred
B. When x is greater than one hundred
C. When x is equal to one hundred
D. While it wishes

Question 9:

Which is not a loop structure?
A. for
B. do while
C. while
D. repeat until

Question 10:

How many times is a do while loop guaranteed to loop?
A. 0
B. Infinitely
C. 1
D. Variable
 Answers
1.    b. The value of b is assigned to variable a but the later changes on variable b will not effect the value of variable a
2.    a. True
3.    c. c + 1 => c;
4.    a. a contains 3 and b contains 4
5.    a. either True or False
6.    b. =>
7.    A. 10
8.    A. When x is less than one hundred
9.    D. Repeat Until
10.    C. 1


Set 5

Question 1

Streams are
a.       Abstraction to perform input and output operations in sequential media
b.      Abstraction to perform input and output operations in direct access media
c.       Objects  where a program can either insert or extract characters to and from it
d.      Both a and c 

Question 2

Which of the following is known as insertion operator?
a.       ^
b.      v
c.       << 
d.      >> 
 Question 3:
Regarding the use of  new line character (/n) and endl manipulator with cout statement
a.       Both ways are exactly same
b.      Both are similar but endl additionally performs flushing of buffer
c.       endl can’t be used with cout
d.      \n can’t be used with cout

Question 4:

Which of the following is output statement in C++?
a.       print
b.      write
c.       cout
d.      cin

Question 5:

Which of the following is input statement in C++?
a.       cin
b.      input
c.       get
d.      none of above 
 Question 6:
By default, the standard output device for C++ programs is
a.       Printer
b.      Monitor
c.       Modem
d.      Disk

Question 7:

By default, the standard input device for C++ program is
a.       Keyboard
b.      Mouse
c.       Scanner
d.      None of these
 Question 8:
Which of the following statement is true regarding cin statement?
a.       cin statement must contain a variable preceded by >> operator
b.      cin does not process the input until user presses RETURN key
c.       you can use more than one datum input from user by using cin
d.      all of above
 Question 9:
Which of the following is extraction operator in C++?
a.       ^
b.      v
c.       << 
d.      >> 
 Question 10:
When requesting multiple datum, user must separate each by using
a.       a space
b.      a tab character
c.       a new line character
d.      all of above
Answers
      1.       d. Both a and c
2.       c. <<
3.       b. Both are similar but endl additionally performs flushing of buffer
4.       c. Cout
5.       a. Cin
6.       b. Monitor
7.       a. Keyboard
8.       d. All of above
9.       d. >>
10.   d. all of above

No comments: