Free Online Directory Programming MCQs - MCQs Answers

Programming MCQs

10 min Score: 0 Attempted: 0/10 Subscribe
1. Which of the following is the correct syntax for defining a function in Python?





2. In which programming language is System.out.println() used?





3. What is the output of print(“Hello” + ” World”) in Python?





4. Which of the following is not a valid data type in Python?





5. What does the following Python code do? list(range(5))





6. What is the output of 2**3 in Python?





7. How do you declare a variable in JavaScript?





8. What is the correct way to comment a single line in C++?





9. In which language is for loop syntax for (int i = 0; i < 10; i++) used?





10. What will be the output of print(0.1 + 0.2 == 0.3) in Python?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials