Home

Computer Science Principles MCQ Question with Answer

Computer Science Principles MCQ with detailed explanation for interview, entrance and competitive exams. Explanation are given for understanding.

Download Computer Science Principles MCQ Question Answer PDF

Question No : 22
What is the purpose of an array in programming?

To store a single value
To store a collection of values of the same data type
To perform mathematical calculations
To create graphics

Question No : 23
What is the purpose of the continue statement in programming?

To exit a loop prematurely
To define a function
To print output to the console
To create a loop

Question No : 24
Which programming language is often used for web development?

Python
Java
HTML
C++

Question No : 25
What is the purpose of a compiler in programming?

To execute code line by line
To translate high-level code into machine code
To debug code
To create user interfaces

Question No : 26
What is a function signature in programming?

A unique identifier for a function
The name of a function
The body of a function
A comment within a function

Question No : 27
Which of the following is a valid way to comment out code in Python?

/* This is a comment */
// This is a comment
# This is a comment

Question No : 28
What does IP stand for in the context of computer networking?

Internet Protocol
Internal Processor
Information Provider
Internet Program