Information Technology Mixed Test - 12

Information Technology Mixed Test - 12

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

When a non-fatal I/O error has occurred in the file being currently used, then the value of ______ stream-state is 1.

  1. <span style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif";mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times" new="">eofbit
  2. <span style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif";mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times" new="">failbit
  3. badbit
  4. goodbit
Question 2 Multiple Choice (Single Answer)

What will be the main objective of a multiprogrammed operating system?

  1. To increase response time
  2. To increase CPU utilization
  3. To minimize CPU utilization
  4. Both options 1 and 2
Question 3 Multiple Choice (Single Answer)

Which one is NOT a function of a loader?

  1. Allocate space in memory for programs
  2. Physically place the machine instructions and data into memory
  3. Resolve symbolic references between objects modules
  4. None of above
Question 4 Multiple Choice (Single Answer)

Which logic gate recognizes an odd number of 1s with only words?

  1. FULL adder
  2. NAND gate
  3. Exclusive - OR gate
  4. None of these
Question 5 Multiple Choice (Single Answer)

Which of the following test and evaluation activities is typically conducted on large, complex systems such as aircraft and military acquirer activity systems?

  1. Developmental testing and evaluation
  2. Operational test and evaluation
  3. Decision support systems
  4. None of these
Question 6 Multiple Choice (Single Answer)

Which one is not possible in form of memory?

  1. 11 bit address, 1024 bit cell size, 1024 cells
  2. 10 bit address, 12 bit cell size, 1024 cells
  3. 9 bit address, 8 bit cell size, 1024 cells
  4. None of above
Question 7 Multiple Choice (Single Answer)

How many selection lines are required for 8 to 1 multiplexer?

  1. 1
  2. 2
  3. 3
  4. None of above
Question 8 Multiple Choice (Single Answer)

When an object is passed by value, _________ constructor is invoked.

  1. default
  2. copy
  3. parameterized
  4. none of the above
Question 9 Multiple Choice (Single Answer)

Which of the following expressions will result into Boolean true (1) value?

  1. !(0)
  2. !(5)
  3. !(-4)
  4. !(5>2)
Question 10 Multiple Choice (Single Answer)

Which of the following represents the constructor of the class given below?
class Student
{
private:
int roll_no;
float marks;
};

  1. int Student()
    {
    roll_no=0;
    marks=0.0;
    }
  2. void Student()
    {
    roll_no=0;
    marks=0.0;
    }
  3. Student()
    {
    roll_no=0;
    marks=0.0;
    }
  4. Students()
    {
    roll_no=0;
    marks=0.0;
    }
Question 11 Multiple Choice (Single Answer)

Which of the following statements is WRONG regarding static member functions?

  1. We declare any function to be static by putting keyword <b style="mso-bidi-font-weight:normal"><i style="mso-bidi-font-style:normal">static before the function declaration in the class.
  2. A static member can access all the members of the same class.
  3. Static member function is invoked using the class name, instead of object's name
  4. None of the above
Question 12 Multiple Choice (Single Answer)

Which of the following will result in '0' output?

  1. (6<=6)||(5<3)
  2. !(5>9)
  3. (5>3)&&(6<=6)||(5!=6)
  4. (5<3)&&(6<=6)||(5!=6)
Question 13 Multiple Choice (Single Answer)

Which of the following declarations in 'C' begins with '#' symbol?

  1. Variable
  2. Looping structure
  3. Preprocessor directive
  4. None of these
Question 14 Multiple Choice (Single Answer)

Which of the following functions defined in standard library file math.h returns the smallest integer represented as a double not less than num?

  1. atan2()
  2. fmod()
  3. ceil()
  4. pow()
Question 15 Multiple Choice (Single Answer)

Which of the following loop structures in 'C' executes a block of instruction for the specified number of time?

  1. While loop
  2. For loop
  3. Do-While loop
  4. None of these
Question 16 Multiple Choice (Single Answer)

Which of the following memory allocation functions frees a block of allocated memory in 'C'?

  1. malloc()
  2. new()
  3. free()
  4. delete()
Question 17 Multiple Choice (Single Answer)

____________ refers to the maximum no. of nodes in the tree structure.

  1. Width
  2. Depth
  3. Leaf node
  4. None of these
Question 18 Multiple Choice (Single Answer)

Which of the following file modes in 'C' is used to open a file in both read and write mode as well as to delete the previous data stored in the file?

  1. 'w'
  2. 'r'
  3. 'w+'
  4. 'a'
Question 19 Multiple Choice (Single Answer)

'Switch-Case' statement in 'C' comes under

  1. sequence structure
  2. selection structure
  3. iteration structure
  4. none of these
Question 20 Multiple Choice (Single Answer)

Which of the following functions is used in 'C' to write a single character into an output file?

  1. fgets()
  2. getc()
  3. putc()
  4. none of these
Question 21 Multiple Choice (Single Answer)

Which of the following string functions in 'C' searches for a specified character in the string?

  1. strchr()
  2. strupr()
  3. strlwr()
  4. none of these
Question 22 Multiple Choice (Single Answer)

Which of the following is also called as separator in 'C', used to separate literals, variables, statements, etc.?

  1. Label
  2. Comment
  3. Delimiter
  4. None of these
Question 23 Multiple Choice (Single Answer)

The codes given below are trying to add 'n' and the value 250 or 50 depending upon whether sales > 15000 is true or false:
CODE 1: bonus = n + sales >15000 ? 250 : 50;
CODE 2: bonus = n + (sales > 15000 ? 250 : 50);
Which code is correct?

  1. Code1
  2. Code 2
  3. Both codes 1 and 2
  4. None of the codes will give desired result
Question 24 Multiple Choice (Single Answer)

Which of the following statements is WRONG regarding static data member?

  1. There is the only one copy of the data member, maintained for the entire class.
  2. Its lifetime is same as lifetime of the object of the class
  3. Declaration is done within the class definition
  4. Definition is given outside the class definition
Question 25 Multiple Choice (Single Answer)

Which of the following represents the correct precedence order among ! (NOT), && (AND) and || (OR)?

  1. !> &&> ||
  2. !> ||> &&
  3. &&> ||> !
  4. &&> !> ||