Top 550+ Solved Operating System Architecture MCQ Questions Answer
Q. 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
Q. 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
Q. Perl is scripting language which is based on
a. inerpreter
b. compiler
c. assembler
d. all of the above
Q. 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
Q. 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
Q. Perl uses this <=> operator for
a. equal
b. comparision
c. less than or equal
d. greater than and equal
Q. 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.
Q. Default file accessed through a print statement in perl is
a. stdin
b. stdout
c. stderr
d. all of these
Q. What is python ?
a. it is object oriented programming language
b. it is software package
c. it is intrpreter
d. it is assembly language
Q. 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