Information Technology Mixed Test - 12
Information Technology Mixed Test - 12
Questions
When a non-fatal I/O error has occurred in the file being currently used, then the value of ______ stream-state is 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
- <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
- badbit
- goodbit
What will be the main objective of a multiprogrammed operating system?
- To increase response time
- To increase CPU utilization
- To minimize CPU utilization
- Both options 1 and 2
Which one is NOT a function of a loader?
- Allocate space in memory for programs
- Physically place the machine instructions and data into memory
- Resolve symbolic references between objects modules
- None of above
Which logic gate recognizes an odd number of 1s with only words?
- FULL adder
- NAND gate
- Exclusive - OR gate
- None of these
Which of the following test and evaluation activities is typically conducted on large, complex systems such as aircraft and military acquirer activity systems?
- Developmental testing and evaluation
- Operational test and evaluation
- Decision support systems
- None of these
Which one is not possible in form of memory?
- 11 bit address, 1024 bit cell size, 1024 cells
- 10 bit address, 12 bit cell size, 1024 cells
- 9 bit address, 8 bit cell size, 1024 cells
- None of above
How many selection lines are required for 8 to 1 multiplexer?
- 1
- 2
- 3
- None of above
When an object is passed by value, _________ constructor is invoked.
- default
- copy
- parameterized
- none of the above
Which of the following expressions will result into Boolean true (1) value?
- !(0)
- !(5)
- !(-4)
- !(5>2)
Which of the following represents the constructor of the class given below?
class Student
{
private:
int roll_no;
float marks;
};
- int Student()
{
roll_no=0;
marks=0.0;
} - void Student()
{
roll_no=0;
marks=0.0;
} - Student()
{
roll_no=0;
marks=0.0;
} - Students()
{
roll_no=0;
marks=0.0;
}
Which of the following statements is WRONG regarding static member functions?
- 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.
- A static member can access all the members of the same class.
- Static member function is invoked using the class name, instead of object's name
- None of the above
Which of the following will result in '0' output?
- (6<=6)||(5<3)
- !(5>9)
- (5>3)&&(6<=6)||(5!=6)
- (5<3)&&(6<=6)||(5!=6)
Which of the following declarations in 'C' begins with '#' symbol?
- Variable
- Looping structure
- Preprocessor directive
- None of these
Which of the following functions defined in standard library file math.h returns the smallest integer represented as a double not less than num?
- atan2()
- fmod()
- ceil()
- pow()
Which of the following loop structures in 'C' executes a block of instruction for the specified number of time?
- While loop
- For loop
- Do-While loop
- None of these
Which of the following memory allocation functions frees a block of allocated memory in 'C'?
- malloc()
- new()
- free()
- delete()
____________ refers to the maximum no. of nodes in the tree structure.
- Width
- Depth
- Leaf node
- None of these
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?
- 'w'
- 'r'
- 'w+'
- 'a'
'Switch-Case' statement in 'C' comes under
- sequence structure
- selection structure
- iteration structure
- none of these
Which of the following functions is used in 'C' to write a single character into an output file?
- fgets()
- getc()
- putc()
- none of these
Which of the following string functions in 'C' searches for a specified character in the string?
- strchr()
- strupr()
- strlwr()
- none of these
Which of the following is also called as separator in 'C', used to separate literals, variables, statements, etc.?
- Label
- Comment
- Delimiter
- None of these
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?
- Code1
- Code 2
- Both codes 1 and 2
- None of the codes will give desired result
Which of the following statements is WRONG regarding static data member?
- There is the only one copy of the data member, maintained for the entire class.
- Its lifetime is same as lifetime of the object of the class
- Declaration is done within the class definition
- Definition is given outside the class definition
Which of the following represents the correct precedence order among ! (NOT), && (AND) and || (OR)?
- !> &&> ||
- !> ||> &&
- &&> ||> !
- &&> !> ||