Computer Science Objective Questions
Computer Science Objective Questions
Number system
Multiple Choice Questions:-
1. Unit of measurement used in computer………………..
(a)Byte (b) Megabyte (c) Bits (d) All of these
2. In binary calculations 1 + 1 =………….
(a) 2 (b) 0 (c) 1 (d) None of these
3. Hexadecimal representation of 11 is.
(a) A (b) B (c)C (d) None of these
4. 1 Byte is equal to
(a)1024 bits (b) 656 bits (c) 8 bits (d) 656 bytes
5. 1 Mega Byte is equal to.
(a)8 X 1024 bytes (b) 8 bits (c) 1024 X 1024 bytes (d) 8 Bytes
6. 1 Kilo Byte is equal to…………..
(a)4 bits (b) 8 bits (c) 1024 bytes (d) 8 Bytes
7. Decimal number (25)10 is equal to Binary number(………..)2
(a) 11001 (b) 10101 (c) 10001 (d) 11011
8. How many bits make a half byte?
(a)2 (b) 4 (c) 6 (d) 8
9. Which one of the below is a valid binary number?
(a) 1010 (b) 10120 (c) 120 (d) 459
10. 23 will be written in binary as.
(a)10111 (b) 11111 (c) 10011 (d) 11011
11. The Base of Binary number system is….
(a) 2 (b) 10 (c) 8 (d) 0 & 1
12. The Base of Octal number system is….
(a) 2 (b) 10 (c) 8 (d) 0 & 1
13. A group of 4 bits is called
(a) MB (b) clusters (c) Byte (d) Nibble
14. 1 Byte is equal to
(a) 4 Bits (b) 6 bits (c) 8 bits (d) 10 bits
15. (84)10 is equal to
(a) 1110 1002 (b) 11001002 (c) 10101002 (d) 1101102
16. (14)10 is equal to
(a) 1110 2 (b) 11002 (c) 10102 (d) 11012
17. 1101 series of four bits is known as ………….
(a)Byte (b) Nibble (c) Bit (d) All of these
18. To perform calculation on stored data computer uses………………...
(a) decimal (b) Binary (c)hexadecimal (d) octal
19. 1 MB is equal to
(a)1024 KB (b) 1000 byte (c) 1024 GB (d) 1024 bytes
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi✆: 9631085086 (Akbar sir) Page 1
COMPUTER SCIENCE
Objective Questions An ISO9001-2008 Certified Institution
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi✆: 9631085086 (Akbar sir) Page 2
COMPUTER SCIENCE
Objective Questions An ISO9001-2008 Certified Institution
Short Questions:
1. Find the decimal equivalent of the following binary numbers?
(a)10110 (b)101011 (d)0.111 (g)11001.1101
2. Convert the decimal number into their binary equivalent?
(a)25(b)283(e)38.625 (f)45.4
3. Convert the decimal number into their octal equivalent?
(a)759 (b)1598 (e)22.21875 (f)715.4
4. Convert the binary number into their octal equivalent?
(a)11101 (e)10111.1101 (f)1110.1001 (g)11001.1101
5. Convert the decimal number into their hexadecimal equivalent?
(b)1795(c)47.375 (d)0.875 (g)76
6. Convert the hexadecimal number into their decimal equivalent?
(a)9D (d)2C9.4 (f)9A (g)7D4
7. Convert the hexadecimal number into their binary equivalent?
(a)59F (c)5D.8F (d)CA (f)[Link]
8. Convert the octal number into their decimal equivalent?
(a)235.21 (b)57.2 (f)72.12 (g)76
9. What is 1’s complement? Find the 1’s complement of following negative values:
(a)-13 (b)-4 (c)-18 (d)-6
10. What is 2’s complement? Find the 2’s complement of following negative values:
(a)-13 (b)-4 (c)-18 (e) -17
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi✆: 9631085086 (Akbar sir) Page 3
COMPUTER SCIENCE
Objective Questions An ISO9001-2008 Certified Institution
Fundamental of computer
1. The brain of the computer is the
(a) CPU (b) control unit (c) ALU (d) All of these
2. The first commercial computer delivered to a business client is ……………
(a)ENIAC (b) EDSAC (c) UNIVEC (d) All of these
3. Which memory device is generally made of semiconductors?
(a) RAM (b) Hard disk (c) CD (d) Floppy disk
4. Which of the following is designed to control the operations of a computer?
(a)Application software (b) system software (c) Utility software (d) User
5. A computer language is/are………...
(a)Machine language (b) assembly language (c) high level language (d) All of these
6. Computer system is a combination of …………..and software.
(a) Hardware (b) Program (c) Memory (d) None of these
7. Loading of operating system into main memory is called……………
(a)Pulling (b) Backing (c) Hanging (d) Booting
8. A computer that deals with physical quantities is called ………….Computer.
(a) Analog (b) Hybrid (c) Digital (d) Desktop
9. …....can contain files as well as folders.
(a)Other Files (b) Folder (c) Both a & b (d) None of these
10. A computer cannot ‘ boot’ if does not have the ………...
(a)Operating system (b) Compiler (c) Loader (d) Assembler
11. Computer language used on internet is ………………...
(a)Pascal (b)java (c) basic (d) Logo
12. LISP is designed for.
(a)Artificial intelligence (b) GUI (c) CUI (d) FORTRAN
13. Row facts figures are called……..
(a) Data (b) Item (c) Value (d) Record
14. It is the first program run on a computer, when the computer boots up.
(a) System software (b) Operating system (c) processing system (d) memory system
15. …… is a least expensive medium for strong data and files.
(a) Flash drive (b) disk (c) hard disk (d) Magnetic tape
16. Computer language used for scientific calculation is.
(a) LOGO (b) FORTRAN (c) PASCAL (d) C++
17. The language used for developing of various games is ……………
(a)C (b) C++ (c) SQL (d) java
18. Which of the following is a system software.
(a) Compiler (b) database program (c) word processor (d) spreadsheet
19. An ………………………… converts and executes one statementat a time.
(a)converter (b) interpreter (c) compiler (d) instructor
20. Memory unit that communicates directly with the CPU is called ………...
(a)Register (b) Main memory (c) Secondary memory (d) Auxiliary memory
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi✆: 9631085086 (Akbar sir) Page 4
COMPUTER SCIENCE
Objective Questions An ISO9001-2008 Certified Institution
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi✆: 9631085086 (Akbar sir) Page 5
COMPUTER SCIENCE
Objective Questions An ISO9001-2008 Certified Institution
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi✆: 9631085086 (Akbar sir) Page 6
COMPUTER SCIENCE
Objective Questions An ISO9001-2008 Certified Institution
60. DBMS is
(a) Database Management system (b) Database Management System
(c) Data Being Managed System, (d) all the above
61. A …………….. is smallest possible block in magnetic disk.
(a) Block (b) Track (c) Sector (d) Cluster
62. A hard disk is so called because it is hard to ………….
(a) Format (b) Carry (c) Access (d) Handle
63. SMTP means
(a) Simple Mail Trapping Protocol (b) Simple Mail Transport Protocol
(c) Simple Mail Transpose Protocol (d) Simple Mail Transpose Protocol
64. Information is
(a) Processed Data (b) Meaningful data (c) Both (a) and (b) (d) None of the above
65. The first microprocessor was …………...
(a) Intel 4004 (b) 8080 (c) 8085 (d) 4008
66. The Full form of USB is ………….
(a) Universal serial bus (b) Universal size bus (c) Unique serial bus (d) none of these
67. PCI means
(a) Peripheral component Interconnect (b) Peripheral computer Interconnect
(c) Peripheral component Internet (d) Peripheral cable Interconnect
68. Assembler is used as a translator for
(a) C++ (b) COBOL (c) Assembler (d) high level language
69. Magnetic tapes, floppy disk, optical disk, flash memory and hard disk are example of …………...
(a) Auxiliary memory (b) Primary memory (c) Cache memory (d) flash memory
70. The Symbol that is represented using rectangle in a flowchart is ………….
(a) Terminal (b) Decision (c) Activity/ Process (d) Input / output
71. The Symbol that is represented using parallelogram in a flowchart is ………….
(a) Terminal (b) Decision (c) Activity/ Process (d) Input / output
72. Which of the following is not a part of control panel?
(a) My document (b) add and remove program
(c) Date and Time (d) Display
73. Which of the following key is used to refresh the active window
(a) F5 (b) F6 (c) F9 (d) F7
74. ………..is the layer of a computer system between the hardware and the user program
(a) Operating system (b) system environment (c) operating Environment (d) None
75. Which of the following windows version support 54 bit processor ………….
(a) window 95 (b) Window 2000 (c) window XP (d) Window 1998
76. Which special character is use in wild card ………….
(a) (*) (b) (?) (c) Both a and b (d) None of these
77. Who represent the physical and tangible components of the computer………….
(a) Software (b) Hardware (c) Both a and b (d) none
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi✆: 9631085086 (Akbar sir) Page 7
COMPUTER SCIENCE
Objective Questions An ISO9001-2008 Certified Institution
78. MICR is
(a) Magnetic ink character reader (b) Magnetic ink code reader
(c) Magnetic ink cases reader (d) None of these
79. SSI means
(a) Small scale intension (b) Small scale internet (c) Small scale integration (d) None
80. BIOS is stored in ………….
(a) ROM (b) RAM (c) Hard Disk (d) None of these
81. UNIVAC means
(a) Universal Array computer (b) Universal Automatic computer
(c) Unique automatic computer (d) Unvalued automatic computer
82. Icon represents
(a) Window elements (b) software (c) Picture (d) None of the above
83. Laser printer is…………...
(a) Impact printer (b)Non Impact printer (c) Both a and b (d) None
84. The Full form of CVT ………….
(a) Constant voltage transformer (b) Constant volt transfer(c) Cons voltage transform (d) none
85. POST means
(a) Power On Self Test (b) Power Off Self Test
(c) Power off Self Turn (d) Power On Self Turn
86. Fifth generation computer language
(a) ALGOL (b) COBOL (c) LISP (d) SNOBOL
87. The technology used in first generation …………...
(a) Vacuum tube (b) Transistors (c) ICs (d) None
88. A cooling device attached to microprocessor is called
(a) Thermo sink (b) Hydro sink (c) Heat sink (d) Temper sink
89. Example of open source operating system
(a) UNIX (b) LINUX (c) WINDOWS (d) Restricted
90. The language processor are….
(a) Compiler (b) interpreter (c) Assembler (d) All
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi✆: 9631085086 (Akbar sir) Page 8
COMPUTER SCIENCE
Objective Questions An ISO9001-2008 Certified Institution
INTRODUCTION TO C++
1. C++ was developed by………………..
(a)Ken Thompson (b) Dennis Ritchie (c) BajarneStroustrup (d) Pascal
2. Which of the following approach is adapted by C++
(a)Bottom up (b) Top down (c) Both (a) and (b) (d) None of these
3. The smallest individual unit of program is called………….
(a) Keyword (b) Variable (c) Tokens (d) Literal
4. Not Equal to operator is …………….
(a) != (b) == (c) <= (d) None of these
5. Folder is a location where we can store ……………….
(a)Files (b) Other Folders (c) Both a & b (d) None of these
6. The Increment operator (++) is also called ……………..operator.
(a)Unary (b) Relational (c) Arithmetic (d) Binary
7. C++ programs are converted into machine language with the help of
(a)Interpreter (b) Compiler (c) Assembler (d) None of these
8. ………. Function is used to clear the output screen.
(a) getch() (b) main() (c) clscr() (d) clrscr()
9. …….. helps to move to next line..
(a) “\n” (b) “\h” (c) “/n” (d) “\t”
10. Comments in C++ is given by …………
(a)// (b)/* */ (c) Both (a) & (b) (d) None of these
11. ‘==’ Operator is…………Operator.
(a)Assignment (b) Relational (c) Logical (d) None of these
12. …….. helps to compile the program.
(a) Alt + C (b) Alt + R (c) Alt + X (d) None of these
13. Integer Occupies ………Bytes of memory space.
(a)1 (b) 4 (c) 2 (d) 8
14. C++ is an extension to ……… programming language.
(a)Pascal (b) java (c) C (d) B
15. The class definition ends by a……….
(a) } (b) ; (c) , (d) ? ;
16. main () function returns an ………….value in C++.
(a) Char (b) slot (c) float (d) integer
17. getchar() is a…………. based function.
(a) Number (b) Integer (c) Float (d) Character
18. Call by reference is achieved by applying ……………….
(a)Pointer (b) Address (c) Reference (d) Float
19. The last character in a string is a ……….. Character.
(a) NULL (b) 0 (c) Space (d) Subscript
20. puts() is a…………. based function.
(a) String (b) Integer (c) Float (d) Character
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi✆: 9631085086 (Akbar sir) Page 9
COMPUTER SCIENCE
Objective Questions An ISO9001-2008 Certified Institution
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi✆: 9631085086 (Akbar sir) Page 10
COMPUTER SCIENCE
VOL. – 02 (XI) An ISO9001-2008 Certified Institution
Accr. No. M3111204IN
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi-834001 ✆: 9631085086 Page 11
COMPUTER SCIENCE
VOL. – 02 (XI) An ISO9001-2008 Certified Institution
Accr. No. M3111204IN
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi-834001 ✆: 9631085086 Page 12
COMPUTER SCIENCE
VOL. – 02 (XI) An ISO9001-2008 Certified Institution
Accr. No. M3111204IN
i = 5/2 a = 5/2
i = 5.0/2 a = 5.0/2
i = 5/2.0 a = 5/2.0
i = 5.0/2.0 a = 5.0/2.0
i = 2/5 a = 2/5
i = 2.0/5.0 a = 2.0/5.0
10. What is the header file? Name the header file to which the following built in functions belong
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi-834001 ✆: 9631085086 Page 14
COMPUTER SCIENCE
VOL. – 02 (XI) An ISO9001-2008 Certified Institution
Accr. No. M3111204IN
To find output
a) void main() b) void main()
{ {
intx,y,z; intx,y,z;
x=y=z=1; x=y=z=1;
z=++x || ++y && ++z; z=++x && ++y || ++z;
cout<<x<<y<<z; cout<<x<<y<<z;
} }
c) void main() d) void main()
{ {
intx,y,z; int x;
x=y=z= -1; x=-3+4-7*8/5%10;
z=++x || ++y && ++z; cout<<”x=”<<x;
cout<<x<<y<<z; getch();
} }
a) void main() b) void main()
{ {
int x=5,y=5; int a=5,b=5;
cout<<x++<<”,”; cout<<a++<<", "<<++a;
cout<<--x<<”,”; cout<<b++<<", "<<++b;
cout<<y--<<”,”<<--y; getch();
} }
e) void main() c) void main()
{ {
int a, mb=3,k=4; int a=5;
a= mb * 3/4 + k/4 + 8 – mb + 5/8; cout<<a++<<", "<<++a;
cout<<”a=”<<a; cout<<a++<<", "<<++a;
} }
d) void main() e) void main()
{ {
int x=5,y=5; clrscr();
cout<<x++<<”,”; inti=0;
cout<<--x<<”,”; cout<<i++<<" "<<i++<<” “<<i++<<endl;
cout<<y++<<”,”<<--y; cout<<++i<<" "<<++i<<” “<<++i<<endl;
getch(); getch();
} }
f) void main(); g) void main()
{ {
int x=5,y=5; int n=5;
cout<<x--<<”,”; cout<<”Line 1:”<<++n<<endl;
cout<<--x<<”,”; cout<<”Line 2:”<<n++<<endl;
cout<<y--<<”,”<<--y; cout<<”Line 3:”<<++n<<endl;
getch(); getch();
} }
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi-834001 ✆: 9631085086 Page 15
COMPUTER SCIENCE
VOL. – 02 (XI) An ISO9001-2008 Certified Institution
Accr. No. M3111204IN
j) void main() k)
{ void main()
intval,res,n=1000; {
cin>>val; int a=10,b=6,c=4,r;
res =n+val>1750?400:200; r=(((a<b)&&(a>c))||(b+7>c-3));
cout<res; cout<<r;
} }
If val =2000If val = 1000 If val = 500
l)
a) void main() void main()
{ {
int x=10,y=100%90; inti=0;
if(x!=y); cout<<i++<<" "<<i++<<” “<<i++<<endl;
cout<<”x=”<<x<<”y=”<<y; cout<<++i<<" "<<++i<<” “<<++i<<endl;
} getch();
}
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi-834001 ✆: 9631085086 Page 16
COMPUTER SCIENCE
VOL. – 02 (XI) An ISO9001-2008 Certified Institution
Accr. No. M3111204IN
Max Foundation, B. S. Bhawan, Near Jharkhand Hospital, KantaToli, Ranchi-834001 ✆: 9631085086 Page 17