Fundamentals of Programming - MCQs
Java MCQs
1. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
2. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
3. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
4. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
5. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
6. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Fundamentals of Programming - MCQs
Answer: Sun Microsystems
7. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
8. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
9. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
10. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
11. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
12. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
Fundamentals of Programming - MCQs
13. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
14. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
15. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
16. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
17. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
18. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
19. Which company developed Java?
Fundamentals of Programming - MCQs
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
20. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
21. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
22. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
23. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
24. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
25. Which keyword is used for inheritance in Java?
a. extends
Fundamentals of Programming - MCQs
b. inherit
c. super
d. implements
Answer: extends
26. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
27. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
28. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
29. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
30. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
31. Which company developed Java?
a. Sun Microsystems
b. Microsoft
Fundamentals of Programming - MCQs
c. Google
d. Apple
Answer: Sun Microsystems
32. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
33. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
34. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
35. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
36. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
37. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
Fundamentals of Programming - MCQs
d. None
Answer: Java Virtual Machine
38. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
39. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
40. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
41. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
42. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
43. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Fundamentals of Programming - MCQs
Answer: Use of pointers
44. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
45. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
46. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
47. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
48. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
49. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
Fundamentals of Programming - MCQs
50. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
51. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
52. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
53. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
54. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
55. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
56. Which keyword is used for inheritance in Java?
Fundamentals of Programming - MCQs
a. extends
b. inherit
c. super
d. implements
Answer: extends
57. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
58. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
59. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
60. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
61. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
62. Which of the following is not a Java feature?
a. Object-oriented
Fundamentals of Programming - MCQs
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
63. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
64. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
65. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
66. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
67. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
68. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
Fundamentals of Programming - MCQs
c. Java Verified Method
d. None
Answer: Java Virtual Machine
69. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
70. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
71. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
72. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
73. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
74. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
Fundamentals of Programming - MCQs
d. Apple
Answer: Sun Microsystems
75. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
76. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
77. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
78. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
79. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
80. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Fundamentals of Programming - MCQs
Answer: Sun Microsystems
81. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
82. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
83. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
84. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
85. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
86. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
Fundamentals of Programming - MCQs
87. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
88. Which keyword is used for inheritance in Java?
a. extends
b. inherit
c. super
d. implements
Answer: extends
89. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
90. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
91. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
92. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
93. Which company developed Java?
Fundamentals of Programming - MCQs
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
94. Which company developed Java?
a. Sun Microsystems
b. Microsoft
c. Google
d. Apple
Answer: Sun Microsystems
95. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
96. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
97. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
98. Which of the following is not a Java feature?
a. Object-oriented
b. Platform independent
c. Use of pointers
d. Dynamic
Answer: Use of pointers
99. Which keyword is used for inheritance in Java?
a. extends
Fundamentals of Programming - MCQs
b. inherit
c. super
d. implements
Answer: extends
100. What is JVM in Java?
a. Java Virtual Machine
b. Java Variable Memory
c. Java Verified Method
d. None
Answer: Java Virtual Machine
Python MCQs
1. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
2. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
3. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
4. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
5. Which method is used to remove whitespace in Python?
Fundamentals of Programming - MCQs
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
6. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
7. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
8. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
9. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
10. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
11. What is the output of type([]) in Python?
a. list
Fundamentals of Programming - MCQs
b. dict
c. tuple
d. set
Answer: list
12. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
13. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
14. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
15. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
16. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
17. What keyword is used to define a function in Python?
a. function
b. def
Fundamentals of Programming - MCQs
c. fun
d. define
Answer: def
18. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
19. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
20. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
21. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
22. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
23. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
Fundamentals of Programming - MCQs
d. clean()
Answer: strip()
24. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
25. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
26. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
27. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
28. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
29. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Fundamentals of Programming - MCQs
Answer: list
30. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
31. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
32. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
33. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
34. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
35. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
Fundamentals of Programming - MCQs
36. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
37. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
38. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
39. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
40. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
41. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
42. Which method is used to remove whitespace in Python?
Fundamentals of Programming - MCQs
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
43. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
44. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
45. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
46. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
47. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
48. What keyword is used to define a function in Python?
a. function
Fundamentals of Programming - MCQs
b. def
c. fun
d. define
Answer: def
49. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
50. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
51. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
52. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
53. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
54. What keyword is used to define a function in Python?
a. function
b. def
Fundamentals of Programming - MCQs
c. fun
d. define
Answer: def
55. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
56. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
57. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
58. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
59. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
60. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
Fundamentals of Programming - MCQs
d. clean()
Answer: strip()
61. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
62. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
63. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
64. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
65. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
66. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Fundamentals of Programming - MCQs
Answer: def
67. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
68. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
69. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
70. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
71. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
72. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
Fundamentals of Programming - MCQs
73. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
74. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
75. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
76. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
77. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
78. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
79. Which module is used for regular expressions in Python?
Fundamentals of Programming - MCQs
a. re
b. regex
c. reg
d. pyregex
Answer: re
80. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
81. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
82. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
83. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
84. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
85. What is the output of type([]) in Python?
a. list
Fundamentals of Programming - MCQs
b. dict
c. tuple
d. set
Answer: list
86. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
87. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
88. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
89. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
90. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
91. What keyword is used to define a function in Python?
a. function
b. def
Fundamentals of Programming - MCQs
c. fun
d. define
Answer: def
92. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
93. Which method is used to remove whitespace in Python?
a. strip()
b. trim()
c. remove()
d. clean()
Answer: strip()
94. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
95. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
96. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
97. What keyword is used to define a function in Python?
a. function
b. def
c. fun
Fundamentals of Programming - MCQs
d. define
Answer: def
98. Which module is used for regular expressions in Python?
a. re
b. regex
c. reg
d. pyregex
Answer: re
99. What is the output of type([]) in Python?
a. list
b. dict
c. tuple
d. set
Answer: list
100. What keyword is used to define a function in Python?
a. function
b. def
c. fun
d. define
Answer: def
C++ MCQs
1. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
2. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
3. Which of these is not a standard C++ library?
a. iostream
b. vector
Fundamentals of Programming - MCQs
c. math
d. string
Answer: math
4. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
5. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
6. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
7. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
8. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
9. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
Fundamentals of Programming - MCQs
d. Guido van Rossum
Answer: Bjarne Stroustrup
10. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
11. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
12. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
13. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
14. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
15. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Fundamentals of Programming - MCQs
Answer: new
16. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
17. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
18. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
19. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
20. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
21. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
Fundamentals of Programming - MCQs
22. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
23. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
24. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
25. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
26. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
27. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
28. Who developed C++?
Fundamentals of Programming - MCQs
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
29. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
30. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
31. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
32. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
33. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
34. Which operator is used for memory allocation in C++?
a. new
Fundamentals of Programming - MCQs
b. malloc
c. alloc
d. create
Answer: new
35. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
36. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
37. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
38. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
39. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
40. Which of these is not a standard C++ library?
a. iostream
b. vector
Fundamentals of Programming - MCQs
c. math
d. string
Answer: math
41. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
42. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
43. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
44. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
45. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
46. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
Fundamentals of Programming - MCQs
d. create
Answer: new
47. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
48. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
49. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
50. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
51. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
52. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Fundamentals of Programming - MCQs
Answer: new
53. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
54. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
55. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
56. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
57. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
58. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
Fundamentals of Programming - MCQs
59. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
60. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
61. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
62. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
63. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
64. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
65. Who developed C++?
Fundamentals of Programming - MCQs
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
66. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
67. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
68. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
69. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
70. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
71. Who developed C++?
a. Bjarne Stroustrup
Fundamentals of Programming - MCQs
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
72. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
73. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
74. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
75. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
76. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
77. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
Fundamentals of Programming - MCQs
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
78. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
79. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
80. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
81. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
82. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
83. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
Fundamentals of Programming - MCQs
d. .class
Answer: .cpp
84. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
85. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
86. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
87. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
88. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
89. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Fundamentals of Programming - MCQs
Answer: new
90. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
91. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
92. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
93. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
94. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
95. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math
Fundamentals of Programming - MCQs
96. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
97. Which operator is used for memory allocation in C++?
a. new
b. malloc
c. alloc
d. create
Answer: new
98. Who developed C++?
a. Bjarne Stroustrup
b. Dennis Ritchie
c. James Gosling
d. Guido van Rossum
Answer: Bjarne Stroustrup
99. What is the extension of a C++ source file?
a. .cpp
b. .java
c. .py
d. .class
Answer: .cpp
100. Which of these is not a standard C++ library?
a. iostream
b. vector
c. math
d. string
Answer: math