Operating System Architecture Set 23

On This Page

This set of Operating System Architecture Multiple Choice Questions & Answers (MCQs) focuses on Operating System Architecture Set 23

Q1 | Which of the following is true of all Perl scripts ?
  • meta characters are always preceded by a forward slash
  • perl statements are always followed by a period
  • parameters must always followed by period
  • perl statements are always followed by a semicolon
Q2 | Scalar variables                      
  • include string exclusively
  • are defied two discrete values
  • are the building blocks of more complicated data structure
  • always operate in the same manner as variable in algebric function
Q3 | Which of the following expression operators increments a varibale by one ?
  • ..
  • .
  • **
  • *
Q4 | STDIN, or standard in, is a mechanism for
  • performing type conversion automatically
  • retrieving data from the user while a script is executing
  • prompting the user for specific information
  • outputting a string to standard out
Q5 | Perl is scripting language which is based on
  • inerpreter
  • compiler
  • assembler
  • all of the above
Q6 | Perl define scalar variable by                  
  • @
  • %
  • $
  • #
Q7 | What is the extension of the perl file ?
  • .p
  • .pl
  • .perl
  • .pe
Q8 | which is escape character in perl ?
  • //
  • !
  • \\
  • |
Q9 | comments are placed inside a perl program file using the character
  • @
  • %
  • $
  • #
Q10 | An array, in perl, is an              
  • un-ordered list of scalar data
  • ordered list of scalar data
  • ordered list of numbers
  • none of the above
Q11 | The logical operator op1 && op2 means
  • performs a logical not of the operand
  • performs a logical or of the two operands
  • performs a logical and of the two operands
  • performs alogical and then or of the two operands
Q12 | Perl uses this <=> operator for              
  • equal
  • comparision
  • less than or equal
  • greater than and equal
Q13 | Which of the following statements is NOT TRUE statements ?
  • perl chomp function will not remove all whitespace characters by default
  • perl chomp function returns the number of characters removed
  • perl chomp function checks whether the last character matches the input line separator and only then it deletes it.
  • it deletes the last ending varibale character regardless of whatever it is.
Q14 | Default file accessed through a print statement in perl is              
  • stdin
  • stdout
  • stderr
  • all of these
Q15 | What is python ?
  • it is object oriented programming language
  • it is software package
  • it is intrpreter
  • it is assembly language
Q16 | 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 ?
  • l[1:2]
  • x=l[0:1]
  • x=[l[0:2]
  • none of the above
Q17 | //" in pyhon is                    
  • floor division operator
  • comment
  • new line
  • none of the above
Q18 | **" in python is an                    
  • exponentiation
  • address of
  • value redirection
  • none of the above
Q19 | In python, multi line string are given by
  • single quotes
  • double quotes
  • triple quotes
  • none of the above
Q20 | python source code file has an extension of
  • pys
  • py
  • src
  • none of the above
Q21 | which of the following translate and execute programe statements in sequence, instead of having separate translation and execution steps ?
  • procedure
  • interpreter
  • paradigm
  • compiler
Q22 | Which of the following procedure a true or false result ?
  • control structure
  • strong typing
  • data types
  • boolean express
Q23 | Which of the following language has an IF statement for making decision ?
  • perl chomp function will
  • c++
  • python
  • all of these
Q24 | Which of following language does not requires declarations ?
  • java
  • c++
  • python
  • vb.net
Q25 | Which of the following is not a valid data type in python ?
  • int
  • float
  • double
  • str