CS 201 Quiz # 2
1) Which one of the following is used to perform bit-wise exclusive OR operation>
- |
- ^
- ||
- ~
2) Structures are syntactically defined with the word __________.
- Struct
- Struc
- Structure
- None of the given
3) A character is stored in the memory in ________.
- Byte
- Integer
- String
- None of the given option
4) a = a|b; can be written as ____________.
- a |=b;
- a ==b;
- a =|b;
- a=b;
5) eof is used to check for the ________ of file when a file is being read.
- End
- Name
- Start
- Middle
6) Which of the following code segment represents a left shift operator
- Cin >> number:
- Result=number <<1:
- Result = Number >>1:
- Cout<<1:
7) Strings are accessed by variable of type ______.
- Int
- Char
- None of given
- Double
8) We have opened a file stream my file for reading (getting), my file. Tellg () gives us the current get position of the file pointer. It returns a whole return of type _______.
- Long
- Double
- Int
- Short
9) Each array deceleration must provide the information about all these things expect______.
- Type of data stored in the array
- Name of array
- Number of elements of the array
- The location of the first element to be stored
10) Which mode of file is used to open a file or stream for interaction
- Out
- App
- In
- Ate