Here is a sample ITI COPA (Computer Operator and Programming Assistant) MCQ question with answer:
1- Which command is used to create a new directory in Linux?
A) rmdir
B) ls
C) mkdir
D) rm
Answer: C) mkdir
2- Which of the following is a high-level programming language?
A) C
B) Assembly language
C) Machine language
D) None of the above
Answer: A) C
3- What is the full form of HTML?
A) Hyper Text Markup Language
B) High-level Text Markup Language
C) Hyper Text Making Language
D) High-level Text Making Language
Answer: A) Hyper Text Markup Language
4- What is the full form of PDF?
A) Portable Document Format
B) Portable Data Format
C) Public Document Format
D) Public Data Format
Answer: A) Portable Document Format
5- Which command is used to print the working directory in Linux?
A) cd
B) pwd
C) ls
D) mkdir
Answer: B) pwd
6- Which operator is used for exponentiation in Python?
A) *
B) %
C) **
D) ^
Answer: C) **
7- Which command is used to compile a C program in Linux?
A) gcc
B) make
C) g++
D) cc
Answer: A) gcc
8- What is the output of the following code in Python: print(10 / 3)
A) 3
B) 3.0
C) 3.33
D) None of the above
Answer: C) 3.33
9- Which command is used to copy a file in Linux?
A) rm
B) mv
C) cp
D) None of the above
Answer: C) cp
10- What is the full form of SQL?
A) Structured Query Language
B) Simple Query Language
C) Standard Query Language
D) None of the above
Answer: A) Structured Query Language
11- Which command is used to delete a file in Linux?
A) rm
B) mv
C) cp
D) None of the above
Answer: A) rm
12- What is the output of the following code in Python: print("Hello" + " " + "World")
A) HelloWorld
B) Hello World
C) HelloWorld
D) None of the above
Answer: B) Hello World
13- Which of the following is not a data type in C?
A) int
B) float
C) double
D) string
Answer: D) string
14- Which command is used to display the contents of a file in Linux?
A) cat
B) grep
C) touch
D) None of the above
Answer: A) cat
15- Which of the following is a relational database management system?
A) MySQL
B) MongoDB
C) Redis
D) None of the above
Answer: A) MySQL
16- What is the output of the following code in Python: print(5 == "5")
A) True
B) False
C) Error
D) None of the above
Answer: B) False
17- Which command is used to move a file in Linux?
A) rm
B) mv
C) cp
D) None of the above
Answer: B) mv
18- Which of the following is not a valid variable name in Python?
A) my_var
B) _myvar
C) 1myvar
D) MYVAR
Answer: C) 1myvar
19- What is the full form of RAM?
A) Random Access Memory
B) Read Access Memory
C) Random Amplification Memory
D) None of the above
Answer: A) Random Access Memory
20- Which command is used to display the IP address in Linux?
A) ipconfig
B) ifconfig
C) netstat
D) None of the above
Answer: B) ifconfig
21- What is the output of the following code in Python: print(len("Hello World"))
A) 10
B) 11
C) 12
D) None of the above
Answer: B) 11
22- Which of the following is not a logical operator in Python?
A) and
B) or
C) not
D) xor
Answer: D) xor
23- What is the full form of CPU?
A) Central Processing Unit
B) Computer Processing Unit
C) Central Power Unit
D) Computer Power Unit
Answer: A) Central Processing Unit
24- Which command is used to list all the files and directories in Linux?
A) ls
B) pwd
C) cd
D) None of the above
Answer: A) ls
25- Which of the following is a text editor in Linux?
A) Vim
B) Nano
C) Emacs
D) All of the above
Answer: D) All of the above
26- What is the output of the following code in Python: print(7 % 3)
A) 2
B) 3
C) 2.33
D) None of the above
Answer: A) 2
27- Which of the following is a loop control statement in Python?
A) for
B) if
C) while
D) switch
Answer: C) while
28- What is the full form of GUI?
A) Graphical User Interface
B) Graphical User Interaction
C) Graphical User Input
D) Graphical Unit Interface
Answer: A) Graphical User Interface
29- Which command is used to change the permission of a file in Linux?
A) chmod
B) chown
C) chgrp
D) None of the above
Answer: A) chmod
30- What is the output of the following code in Python: print("Hello World"[-5:])
A) Hello
B) World
C) d World
D) None of the above
Answer: B) World
31- Which of the following is a web browser?
A) Chrome
B) Firefox
C) Safari
D) All of the above
Answer: D) All of the above
32- Which of the following is not a relational operator in Python?
A) ==
B) !=
C) <=
D) ><
Answer: D) ><
33- What is the full form of CSS?
A) Cascading Style Sheets
B) Cascading Style System
C) Cascading Sheet System
D) Cascading System Sheets
Answer: A) Cascading Style Sheets
34- Which command is used to create a directory in Linux?
A) mkdir
B) touch
C) cp
D) None of the above
Answer: A) mkdir
35- What is the output of the following code in Python: print(2 ** 3 ** 2)
A) 64
B) 512
C) 81
D) None of the above
Answer: A) 64
36- Which of the following is a Python library for data analysis?
A) Pandas
B) Numpy
C) Matplotlib
D) All of the above
Answer: D) All of the above
37- What is the full form of HTML?
A) Hyper Text Markup Language
B) Hyper Test Markup Language
C) Hyper Tech Markup Language
D) None of the above
Answer: A) Hyper Text Markup Language
38- Which command is used to display the contents of a file in Linux?
A) cat
B) dog
C) cow
D) None of the above
Answer: A) cat
39- What is the output of the following code in Python: print(list(range(2, 10, 2)))
A) [2, 4, 6, 8, 10]
B) [2, 4, 6, 8]
C) [2, 6]
D) None of the above
Answer: B) [2, 4, 6, 8]
40- Which of the following is a database management system?
A) MySQL
B) PostgreSQL
C) Oracle
D) All of the above
Answer: D) All of the above
41- What is the output of the following code in Python: print("Hello" + " World")
A) Hello
B) World
C) Hello World
D) None of the above
Answer: C) Hello World
42- Which of the following is a network protocol?
A) TCP
B) UDP
C) HTTP
D) All of the above
Answer: D) All of the above
43- What is the full form of HTTP?
A) Hyper Text Transfer Protocol
B) Hyper Test Transfer Protocol
C) Hyper Tech Transfer Protocol
D) None of the above
Answer: A) Hyper Text Transfer Protocol
44- Which command is used to remove a file in Linux?
A) rm
B) rmdir
C) remove
D) None of the above
Answer: A) rm
45- What is the output of the following code in Python: print(10 / 2)
A) 5.0
B) 5
C) 2.5
D) None of the above
Answer: A) 5.0
46- Which of the following is a Python library for machine learning?
A) Scikit-learn
B) TensorFlow
C) Keras
D) All of the above
Answer: D) All of the above
47- Which of the following is a programming language used for web development?
A) PHP
B) Java
C) C++
D) All of the above
Answer: A) PHP
48- What is the full form of SQL?
A) Structured Query Language
B) System Query Language
C) Systematic Query Language
D) None of the above
Answer: A) Structured Query Language
49- Which command is used to display the present working directory in Linux?
A) pwd
B) dir
C) ls
D) None of the above
Answer: A) pwd
50- What is the output of the following code in Python: print("Hello World"[:5])
A) Hello
B) World
C) d World
D) None of the above
Answer: A) Hello