1. Which of the command is used to remove files ?
a. erase
b. rm
c. delete
d. dm
Ans: b
2. Which of the following command is used to count just the number of lines contained in a file ?
a. wc-1
b. wc-w
c.wc-c
d. wc-r
Ans: a
3. Which command is used to copy a file wb with the same name from the programs directory to the misc. directory ?
a. copy programs/wb misc/wb
b. cp programs/wb misc
c. copy a:programs/wb b:misc/wb
d. tar programs/wb misc/wb
Ans: b
4. The commonly used UNIX commands like date, Is, cat, etc. are stored in
a. /dev directory
b. /bin and /usr/bin directories
c. /unix directory
d. /tmp directory
Ans: b
5. Which of the following directories contain all the files created by a user, including his login directory ?
a. /tmp
b. /usr
c. /etc
d. /dev
Ans: b
6. Which command is used to copy the three files wb, colllect and mon into the misc directory, under the same, when you were currently in the programs directory ?
a. copy wb collect mon/misc
b. cp wb collect mon ../misc
c. copy wb ../misc collect ../misc mon ../misc
d. tar wb collect mon/misc
Ans: b
7. Which of the following command is used to display the directory attributes rather than its contents ?
a. 1s-1-d
b. Is-x
c. Is-1
d. is-F
Ans: a
8. Which command is used to remove a directory
a. rd
b. dldir
c. rmdir
d. rdir
Ans: c
9. Which command is used to list out all the hidden files along with the other files ?
a. Is-1
b. Is-F
c. Is-x
d Is-a
Ans: d
10. The file that contains a set of instructions which are performed when a user logs in, is
a) .exrc
b) .profile
c) autoexec.bat
d) .autoexec
Ans: b
Thursday, December 10, 2009
Operating System Questions
1. Which of the following command can be used to get information about all user who are currently logged into the system ?
a. which
b. who am i
c. who
d. 1/u
Ans: c
2. The command used to remove the directory is
a. rmdir
b. remove
c. rd
d. rdir
Ans: a
3. Which of the following command can be used to get information about yourself
a. who am i
b. pwd
c. i/4
d. which
Ans: a
4. Which of the following command is used to summarize the disk usage ?
a. chkdsk
b. du
c. fdisk
d. disk
Ans: b
5. Which of the following commands is used to copy directory structures in and out ?
a. cp
b. cp-p
c. cpio
d. copy
Ans: c
6. Which of the following signs is used to backup over typing errors in vi ?
a. @
b. $
c. #
d. !
Ans: c
7. Which of the following commands is used to change the working directory ?
a. cd
b. chdir
c. changedir
d. cdir
Ans: a
8. Which of the following signs is used to erase or kill an entire line you have typed and start you are on a new line(but not display a new prompt) ?
a. @
b. $
c. #
d. !
Ans: a
9. Which of the following commands is used to count the total number of lines, words and characters contained in a file.
a. count p
b. wcount
c. wc
d. countw
Ans: c
10. Which of the following commands is used to list contents of directories ?
a. 1s
b. dir
c. 1p
d. tar
Ans: a
a. which
b. who am i
c. who
d. 1/u
Ans: c
2. The command used to remove the directory is
a. rmdir
b. remove
c. rd
d. rdir
Ans: a
3. Which of the following command can be used to get information about yourself
a. who am i
b. pwd
c. i/4
d. which
Ans: a
4. Which of the following command is used to summarize the disk usage ?
a. chkdsk
b. du
c. fdisk
d. disk
Ans: b
5. Which of the following commands is used to copy directory structures in and out ?
a. cp
b. cp-p
c. cpio
d. copy
Ans: c
6. Which of the following signs is used to backup over typing errors in vi ?
a. @
b. $
c. #
d. !
Ans: c
7. Which of the following commands is used to change the working directory ?
a. cd
b. chdir
c. changedir
d. cdir
Ans: a
8. Which of the following signs is used to erase or kill an entire line you have typed and start you are on a new line(but not display a new prompt) ?
a. @
b. $
c. #
d. !
Ans: a
9. Which of the following commands is used to count the total number of lines, words and characters contained in a file.
a. count p
b. wcount
c. wc
d. countw
Ans: c
10. Which of the following commands is used to list contents of directories ?
a. 1s
b. dir
c. 1p
d. tar
Ans: a
Wednesday, December 9, 2009
Relational Database Design and SQL Questions
1. In a relational schema, each tuple is divided into fields called
a. Relations
b. Domains
c. Queries
d. All of the above
Ans: b
2. A logical schema
a. is the entire database
b. is a standard way of organizing information into accessible parts
c. describes how data is actually stored on disk
d. all of the above
Ans: b
3. A form defines
a. where data are placed on the screen
b. the width of each field
c. both (a) and (b)
d. All of the above
Ans: c
4. A top-to-bottom relationship among the items in a database is established by a
a. Hierarchical Schema
b. Network Schema
c. Relational Schema
d. All of the above
Ans: b
5. A good query system
a. can accept English language commands
b. allows non-programmers to access information stored in a database
c. can be accessed only by data processing professionals
d. Both (a) and (b)
Ans: b
6. A report form
a. appears on the computer monitor during data entry
b. is used during report generation to format data
c. Both a and b
d. All of the above
Ans: b
7. A list consists of last names, first names, addresses and pincodes if all people in the list have the same last and the same pincode, a useful key would be
a. the pincode
b. the last name
c. a compound key consisting of the first name and the last name
d. all of the above
Ans: c
8. A command that lets you change one or more fields in a record is
a. Insert
b. Modify
c. Look-up
d. All of the above
Ans: b
10. Which of the following contains a complete record of all activity that affected the contents of a database during a certain period of time ?
a. Report writer
b. Query language
c. Data manipulation language
d. Transaction Log
Ans: d
a. Relations
b. Domains
c. Queries
d. All of the above
Ans: b
2. A logical schema
a. is the entire database
b. is a standard way of organizing information into accessible parts
c. describes how data is actually stored on disk
d. all of the above
Ans: b
3. A form defines
a. where data are placed on the screen
b. the width of each field
c. both (a) and (b)
d. All of the above
Ans: c
4. A top-to-bottom relationship among the items in a database is established by a
a. Hierarchical Schema
b. Network Schema
c. Relational Schema
d. All of the above
Ans: b
5. A good query system
a. can accept English language commands
b. allows non-programmers to access information stored in a database
c. can be accessed only by data processing professionals
d. Both (a) and (b)
Ans: b
6. A report form
a. appears on the computer monitor during data entry
b. is used during report generation to format data
c. Both a and b
d. All of the above
Ans: b
7. A list consists of last names, first names, addresses and pincodes if all people in the list have the same last and the same pincode, a useful key would be
a. the pincode
b. the last name
c. a compound key consisting of the first name and the last name
d. all of the above
Ans: c
8. A command that lets you change one or more fields in a record is
a. Insert
b. Modify
c. Look-up
d. All of the above
Ans: b
10. Which of the following contains a complete record of all activity that affected the contents of a database during a certain period of time ?
a. Report writer
b. Query language
c. Data manipulation language
d. Transaction Log
Ans: d
Monday, December 7, 2009
Computer Networking Objective Type Question Answer
1. How many pairs of stations can simultaneously communicate on Ethernet LAN ?
Ans: 1
2. A modem that is attached to the telephone system by jamming the phone's handset into two flexible receptacles in the coupler ?
a. gateway
b. time-divison multiplexer
c. acoustic coupler
d. bridge
Ans: c
3. Which of the following allows devices on one network to communicate with devices on another network ?
a. multiplexer
b. gateway
c. t-switch
d. modem
Ans: b
4. A station in a network forwards incoming packets by placing them on its shortest output queue. What routing algorithm is being used ?
a. flooding
b. hot potato routing
c. static routing
d. delta routing
Ans: b
5. The communication mode that supports data in both directions at the same time is
a. simplex
b. half-simplex
c. full-duplex
d. multiplex
Ans: c
6. Modulation is the process of
a. sending a file from one computer to another computer
b. converting digital signals to analog signals
c. converting analog signals to digital signals
d. echoing every character that is received
7. The signal to noise ratio for a voice grade line is 30.1 db or a power ration of 1023:1. The maximum achievable data rate on this line whose spectrum ranges from 300 Hz to 4300 Hz is
a. 6200 bps b. 34000 bps
c. 9600 bps d. 31000 bps
ANs: d
8. Which of the following is used for modulation and demodulation ?
a. modem
b. protocol
c. gateway
d. multiplexer
Ans: a
9. A software that allows a personal computer to pretend is as a terminal is
a. auto-dialing
b. bulletin-board
c. modem
d. terminal emulation
ANs: a
10. Which of the following refers to the terms "residual error rate" ?
a. the number of bit error per twenty four hours of continuous operation on an asynchronus line
b. the probability that one or more errors will be undetected when an error detection scheme is used
c. the probability that one or more errors will be detected when an error detection mechanism is used
d. signal to noise ratio divided by the ratio of energy per bit to noise per hertz
Ans: b
Ans: 1
2. A modem that is attached to the telephone system by jamming the phone's handset into two flexible receptacles in the coupler ?
a. gateway
b. time-divison multiplexer
c. acoustic coupler
d. bridge
Ans: c
3. Which of the following allows devices on one network to communicate with devices on another network ?
a. multiplexer
b. gateway
c. t-switch
d. modem
Ans: b
4. A station in a network forwards incoming packets by placing them on its shortest output queue. What routing algorithm is being used ?
a. flooding
b. hot potato routing
c. static routing
d. delta routing
Ans: b
5. The communication mode that supports data in both directions at the same time is
a. simplex
b. half-simplex
c. full-duplex
d. multiplex
Ans: c
6. Modulation is the process of
a. sending a file from one computer to another computer
b. converting digital signals to analog signals
c. converting analog signals to digital signals
d. echoing every character that is received
7. The signal to noise ratio for a voice grade line is 30.1 db or a power ration of 1023:1. The maximum achievable data rate on this line whose spectrum ranges from 300 Hz to 4300 Hz is
a. 6200 bps b. 34000 bps
c. 9600 bps d. 31000 bps
ANs: d
8. Which of the following is used for modulation and demodulation ?
a. modem
b. protocol
c. gateway
d. multiplexer
Ans: a
9. A software that allows a personal computer to pretend is as a terminal is
a. auto-dialing
b. bulletin-board
c. modem
d. terminal emulation
ANs: a
10. Which of the following refers to the terms "residual error rate" ?
a. the number of bit error per twenty four hours of continuous operation on an asynchronus line
b. the probability that one or more errors will be undetected when an error detection scheme is used
c. the probability that one or more errors will be detected when an error detection mechanism is used
d. signal to noise ratio divided by the ratio of energy per bit to noise per hertz
Ans: b
Saturday, December 5, 2009
Some 'C' Programming objective type questions
1. The recursive form of algebric formula
y=(x1,+x2+x3... +xn) is
a. y=x+n-1 xi i=1
b. y=xn+n xi i=1
c. y=xn+xi
d. y=xn+n-1 i=1 xi
e. none of the above
Ans: d
2. Which of the folowing, is a storage class specification of C ?
a. Automatic
b. Mean
c. External
d. String
e. none of the above
Ans: d
3. The statement following else in an 'if-else' construct are executed when
a. the conditional statement following the 'if' is false
b. the conditional statement following the 'if' is teue
c. the conditional statement following the 'else' is false
d. the conditional statement following the 'else' is true
e. none of the above
Ans: a
4. Given these variables
char ch;
short i;
unsigned long u1;
float f;
the overall type of this expression is
a. char
b. unsigned
c. float
d. double
e. none of the above
Ans: c
5. What will this program display ?
#include
main()
{
float f;
f= 10/3;
printf("%f", f);
}
a. 3.3
b. 3.000000
c. 3
d. 3.1
Ans: b
y=(x1,+x2+x3... +xn) is
a. y=x+n-1 xi i=1
b. y=xn+n xi i=1
c. y=xn+xi
d. y=xn+n-1 i=1 xi
e. none of the above
Ans: d
2. Which of the folowing, is a storage class specification of C ?
a. Automatic
b. Mean
c. External
d. String
e. none of the above
Ans: d
3. The statement following else in an 'if-else' construct are executed when
a. the conditional statement following the 'if' is false
b. the conditional statement following the 'if' is teue
c. the conditional statement following the 'else' is false
d. the conditional statement following the 'else' is true
e. none of the above
Ans: a
4. Given these variables
char ch;
short i;
unsigned long u1;
float f;
the overall type of this expression is
a. char
b. unsigned
c. float
d. double
e. none of the above
Ans: c
5. What will this program display ?
#include
main()
{
float f;
f= 10/3;
printf("%f", f);
}
a. 3.3
b. 3.000000
c. 3
d. 3.1
Ans: b
Friday, December 4, 2009
Objective Type Questions on Loop
1. The general form of the conditional expression is
a. expression 1 ? expression 2 :expression 3
b. expression 2 ? expression 3 ?expression 1
c. expression 3 ? expression 2 :expression 1
d. expression 1 ? expression 2 ?expression 3
Ans: a
2. Any program in C, has access to three standard files
a. standrad input file, standard output file, standard error file
b. stdin, stdout, stderr
c. keyboard, screen, screen
d. all of the above
e. none of the above
Ans: d
3. In a simple 'if' statement with no 'else', what happens if the condition following the 'if' is false ?
a. The program searches for the last else in the program
b. Nothing
c. Control 'falls through' to the statement folowing 'if'
d. The body of the statement is executed
Ans: c
4. A while loop is more appropriate than a for loop when
a. the body of the loop will be executed at last once
b. the terminating condition occurs unexpectedly
c. the program will be executed at least once
d. the number of times the loop will be executed is known before the loop is executed
e. none of the above
Ans: b
5. The comma operator(,) is used to
a. permit two different expressions to appear in situations where only once expression would ordinarily be used
b. terminate loops or to exit from switch
c. alter the normal sequence of program execution by transferring control to some other part of the program
d. carry out a logical test and then take one of two possible actions, depending upon the outcome of the test
Ans: a
a. expression 1 ? expression 2 :expression 3
b. expression 2 ? expression 3 ?expression 1
c. expression 3 ? expression 2 :expression 1
d. expression 1 ? expression 2 ?expression 3
Ans: a
2. Any program in C, has access to three standard files
a. standrad input file, standard output file, standard error file
b. stdin, stdout, stderr
c. keyboard, screen, screen
d. all of the above
e. none of the above
Ans: d
3. In a simple 'if' statement with no 'else', what happens if the condition following the 'if' is false ?
a. The program searches for the last else in the program
b. Nothing
c. Control 'falls through' to the statement folowing 'if'
d. The body of the statement is executed
Ans: c
4. A while loop is more appropriate than a for loop when
a. the body of the loop will be executed at last once
b. the terminating condition occurs unexpectedly
c. the program will be executed at least once
d. the number of times the loop will be executed is known before the loop is executed
e. none of the above
Ans: b
5. The comma operator(,) is used to
a. permit two different expressions to appear in situations where only once expression would ordinarily be used
b. terminate loops or to exit from switch
c. alter the normal sequence of program execution by transferring control to some other part of the program
d. carry out a logical test and then take one of two possible actions, depending upon the outcome of the test
Ans: a
Wednesday, December 2, 2009
Technical Questions for PSU's
1. The operators << (left shift) and >> (right shift) are
a. assignment operators
b. relational operators
c. logical operators
d. bitwise logical operators
Ans: d
2. The values that can legally appear to the right of the assignment operator are called
a. rvalues
b. int values
c. variables
d. constants
Ans: a
3. The string containing certain required formating information is called
a. argument
b. character array
c. character string
d. control string
Ans: d
4. In C, the NULL statement which does nothing is just
(a.) a., (b) ;
(c) : (d) .
Ans: (b)
5. The general form of do-while statement is
a. do expression while statement;
b. do while expression;
c. do statement while expression;
d. do statement while statement;
Ans: c
6. The two statement that can be used to change the flow of control are
a. if and switch
b. if and while
c. switch and do-while
d. break and continue
Ans: a
7. In printf(), the appearance of the output can be affected by
a. field width
b. conversion character
c. flag
d. all of the above
e. none of the above
Ans: d
8. The conversion character 's' for data input means that the data item is
a. an unsigned decimal integer
b. a short integer
c. a hexadecimal integer
d. a string followed by whitespace character
Ans: d
9. The conversion character for data input which indicates that the data item is a floating-point values is
(a) f
(b) g
(c) e
(d) All of the above
Ans: d
10. The conversion character 'i' for data output means that the data item is displayed as -
(a) a floating point value with an exponent
(b) an unsigned decimal integer
(c) a signed decimal integer
(d) an octal integer
Ans: c
a. assignment operators
b. relational operators
c. logical operators
d. bitwise logical operators
Ans: d
2. The values that can legally appear to the right of the assignment operator are called
a. rvalues
b. int values
c. variables
d. constants
Ans: a
3. The string containing certain required formating information is called
a. argument
b. character array
c. character string
d. control string
Ans: d
4. In C, the NULL statement which does nothing is just
(a.) a., (b) ;
(c) : (d) .
Ans: (b)
5. The general form of do-while statement is
a. do expression while statement;
b. do while expression;
c. do statement while expression;
d. do statement while statement;
Ans: c
6. The two statement that can be used to change the flow of control are
a. if and switch
b. if and while
c. switch and do-while
d. break and continue
Ans: a
7. In printf(), the appearance of the output can be affected by
a. field width
b. conversion character
c. flag
d. all of the above
e. none of the above
Ans: d
8. The conversion character 's' for data input means that the data item is
a. an unsigned decimal integer
b. a short integer
c. a hexadecimal integer
d. a string followed by whitespace character
Ans: d
9. The conversion character for data input which indicates that the data item is a floating-point values is
(a) f
(b) g
(c) e
(d) All of the above
Ans: d
10. The conversion character 'i' for data output means that the data item is displayed as -
(a) a floating point value with an exponent
(b) an unsigned decimal integer
(c) a signed decimal integer
(d) an octal integer
Ans: c
Subscribe to:
Posts (Atom)



