Explore topic-wise MCQs in Computer Science Engineering (CSE).

This section includes 713 Mcqs, each offering curated multiple-choice questions to sharpen your Computer Science Engineering (CSE) knowledge and support exam preparation. Choose a topic below to get started.

151.

The Unix slang for " #! " is

A. hash-bang
B. shboom
C. shebang
D. more than one of the above
Answer» E.
152.

Examples of repetitive tasks performed by system administrators

A. disk space inventories
B. security audits
C. system backups
D. all of the above
Answer» E.
153.

The name of the Unix scheduling utility is

A. sched
B. cron
C. sc
D. timer
Answer» C. sc
154.

What is default administrator username ?

A. administrator
B. admin
C. superuser
D. root
Answer» E.
155.

What are the files attributes for executing perl programs ?

A. 666
B. 755
C. 766
D. 777
Answer» C. 766
156.

Which of the following creates a file named file1 ?

A. cat file1
B. cat > file1
C. cat < file1
D. cat
Answer» C. cat < file1
157.

Which of the following display content of file1 ?

A. cat file1
B. cat > file1
C. cat >> file2
D. cat
Answer» B. cat > file1
158.

How do you find your own username ?

A. who
B. user
C. whoami
D. root
Answer» D. root
159.

How do you remove a file ?

A. del
B. rm
C. cd
D. rmdir
Answer» C. cd
160.

Which command is used to debug a shell script program ?

A. set
B. set -x
C. debug
D. db
Answer» C. debug
161.

Which variable contains current shell process id ?

A. $*
B. $?
C. $$
D. $!
Answer» D. $!
162.

How do you find current directory you are in ?

A. cd
B. pwd
C. chdir
D. mkdir
Answer» C. chdir
163.

What's the command to find out users on the system ?

A. who
B. whoami
C. user
D. pwd
Answer» B. whoami
164.

How do you find out what's your shell ?

A. echo $shell
B. echo $shell
C. echo $shell
D. echo shell
Answer» B. echo $shell
165.

Which of the following is not a valid data type in python ?

A. int
B. float
C. double
D. str
Answer» D. str
166.

Which of following language does not requires declarations ?

A. java
B. c++
C. python
D. vb.net
Answer» D. vb.net
167.

What is command to find out todays date ?

A. time
B. date
C. cal
D. cd
Answer» C. cal
168.

Which of the following language has an IF statement for making decision ?

A. perl chomp function will
B. c++
C. python
D. all of these
Answer» E.
169.

Which of the following procedure a true or false result ?

A. control structure
B. strong typing
C. data types
D. boolean express
Answer» E.
170.

which of the following translate and execute programe statements in sequence, instead of having separate translation and execution steps ?

A. procedure
B. interpreter
C. paradigm
D. compiler
Answer» C. paradigm
171.

In python, multi line string are given by

A. single quotes
B. double quotes
C. triple quotes
D. none of the above
Answer» D. none of the above
172.

python source code file has an extension of

A. pys
B. py
C. src
D. none of the above
Answer» C. src
173.

"**" in python is an

A. exponentiation
B. address of
C. value redirection
D. none of the above
Answer» B. address of
174.

"//" in pyhon is

A. floor division operator
B. comment
C. new line
D. none of the above
Answer» B. comment
175.

In python, the list L contains the following elements : ['A', 1,'1','George']. Which of the following ways of slicing would assign only the first two elements to the variable X ?

A. l[1:2]
B. x=l[0:1]
C. x=[l[0:2]
D. none of the above
Answer» D. none of the above
176.

What is python ?

A. it is object oriented programming language
B. it is software package
C. it is intrpreter
D. it is assembly language
Answer» B. it is software package
177.

Default file accessed through a print statement in perl is

A. stdin
B. stdout
C. stderr
D. all of these
Answer» C. stderr
178.

Which of the following statements is NOT TRUE statements ?

A. perl chomp function will not remove all whitespace characters by default
B. perl chomp function returns the number of characters removed
C. perl chomp function checks whether the last character matches the input line separator and only then it deletes it.
D. it deletes the last ending varibale character regardless of whatever it is.
Answer» E.
179.

Perl uses this operator for

A. equal
B. comparision
C. less than or equal
D. greater than and equal
Answer» C. less than or equal
180.

The logical operator op1 && op2 means

A. performs a logical not of the operand
B. performs a logical or of the two operands
C. performs a logical and of the two operands
D. performs alogical and then or of the two operands
Answer» D. performs alogical and then or of the two operands
181.

An array, in perl, is an

A. un-ordered list of scalar data
B. ordered list of scalar data
C. ordered list of numbers
D. none of the above
Answer» C. ordered list of numbers
182.

comments are placed inside a perl program file using the character

A. @
B. %
C. $
D. #
Answer» E.
183.

which is escape character in perl ?

A. //
B. !
C. \\
D. |
Answer» D. |
184.

What is the extension of the perl file ?

A. .p
B. .pl
C. .perl
D. .pe
Answer» C. .perl
185.

Perl is scripting language which is based on

A. inerpreter
B. compiler
C. assembler
D. all of the above
Answer» B. compiler
186.

Perl define scalar variable by

A. @
B. %
C. $
D. #
Answer» D. #
187.

Which of the following expression operators increments a varibale by one ?

A. ..
B. .
C. **
D. *
Answer» C. **
188.

Scalar variables

A. include string exclusively
B. are defied two discrete values
C. are the building blocks of more complicated data structure
D. always operate in the same manner as variable in algebric function
Answer» D. always operate in the same manner as variable in algebric function
189.

STDIN, or standard in, is a mechanism for

A. performing type conversion automatically
B. retrieving data from the user while a script is executing
C. prompting the user for specific information
D. outputting a string to standard out
Answer» C. prompting the user for specific information
190.

Which of the following is true of all Perl scripts ?

A. meta characters are always preceded by a forward slash
B. perl statements are always followed by a period
C. parameters must always followed by period
D. perl statements are always followed by a semicolon
Answer» E.
191.

What is the first line in every perl script that contains special instructions to the operating system ?

A. the perl interpreter line
B. the shebang line the perl statement
C. the standard out line
D. the perl statement
Answer» C. the standard out line
192.

perl

A. is an effective multi tasking langugae that requires a great deal of development time.
B. is easy to learn and use, but awkward when dealing with compex tasks.
C. is available in all major operating system, but is quite expensive
D. can handle a variety of tasks involving large amounts of data with ease
Answer» E.
193.

The print function

A. retrives data from the user while a script is executing
B. prompts the user for specific information
C. modifies a string
D. outputs a string to standard out
Answer» E.
194.

Perl stands for

A. practical extraction and report language
B. practical extraction and ready language
C. post expression and report language
D. none of the above
Answer» B. practical extraction and ready language
195.

You want to add files to a previously created tar file. You want to replace existing files with newer files, how can you do this ?

A. use the append command
B. use the tar command with the - t switch
C. use the add command
D. use the tar command with the -u switch
Answer» E.
196.

You want to view a listing of previously enetered commands. What command would you use ?

A. hist
B. histfile
C. showbuff
D. history
Answer» E.
197.

What is output of following perl program ? My $val='x'; print ref($val);

A. scalar
B. empty value
C. string
D. "not a reference"
Answer» C. string
198.

You want to install lilo. Which of the following would you do to accomplish this ?

A. lilo -u
B. remove lilo
C. uninstall lilo
D. lilo -r
Answer» B. remove lilo
199.

You want there to be 3 grace days after a password expires before an account becomes disabled. How would you do this ?

A. use the useradd command with the -f switch
B. check the delay option in user admin
C. edit the user\s user.config file
D. use the useradd command with the -d switch
Answer» B. check the delay option in user admin
200.

What option can be used with shutdown command to send a warning message alerting users that the system will be shutdown ?

A. shutdown -k
B. shutdown -w
C. shutdown -a
D. shutdown -c
Answer» B. shutdown -w