All Free Computer Science and IT MCQs with Answers
Every Computer Science and IT question in the bank, across all chapters, each with the correct answer and a written explanation. Free and unlimited, with no account needed.
2,221 questions · page 70 of 112
- A. 8
- B. 4
- C. 2
- D. 16
Explanation: In conclusion, the double data type typically takes 8 bytes of memory in most computer systems.
Correct answer: 8- A. Cancellation error
- B. Arithmetic underflow
- C. Arithmetic overflow
- D. Logical Error
Explanation: The correct answer is: (b) Arithmetic underflow.Arithmetic underflow occurs in computer arithmetic when the result of an operation is too…
Correct answer: Arithmetic underflow- A. Reserved words
- B. Keywords
- C. Programming words
- D. Both (a) and (b)
Explanation: The correct answer is (d) Both (a) and (b).(a) Keywords and (b) Reserved words are different terms for the same concept in C programming.
Correct answer: Both (a) and (b)- A. Value
- B. Name
- C. Data type
- D. Both (b) and (c)
Explanation: The correct answer is (d) Both (a) and (b).(a) Keywords and (b) Reserved words are different terms for the same concept in C programming.
Correct answer: Both (b) and (c)- A. Operator
- B. Constant
- C. Comments
- D. Variable
Explanation: The correct option is (d), Variable.A variable is a named storage location that can hold a value during program execution.
Correct answer: Variable- A. 34
- B. 62
- C. 39
- D. 32
Explanation: The exact number of keywords in C can vary slightly depending on the compiler and system being used, but it is generally between 32 and…
Correct answer: 32- A. Symbol
- B. Values
- C. Data
- D. Operator
Explanation: The correct answer is: (d) Operator.Operators are special symbols that represent operations to be performed on one or more operands…
Correct answer: Operator- A. >
- B. =
- C. %
Explanation: The correct option is (c), %.Arithmetic operators are symbols used to perform basic mathematical operations on numbers.
Correct answer: %- A. 2
- B. 3
- C. 4
- D. 5
Explanation: The correct answer is (c) 4.In C programming, there are four basic relational operators used for comparing values:Equal to (==): This…
Correct answer: 4- A. 6
- B. 2
- C. 9
- D. All of the above
Explanation: The correct answer is: (a) 6.C supports six basic relational operators for comparing values:== (equal to)!= (not equal to)< (less than)>…
Correct answer: 6- A. True/False
- B. 1/0
- C. 2/4
Explanation: The correct option is (b), 1/0.In most programming languages, dividing a number by zero (1/0) will result in a division by zero error.
Correct answer: 1/01392. Which of the following variable statements does not only declare the variable but also define it?
- A. Assignment
- B. Compiling
- C. Linking
- D. Declaration
Explanation: Assigning a value to a variable declaration initializes the variable and defines its state in the program.
Correct answer: Assignment- A. (a=10)
- B. int m;
- C. int (d=10;)
- D. int (p,q;)
Explanation: correctly declares the variable d with the data type int and assigns it the initial value of 10. This is a valid initialization statement.
Correct answer: int (d=10;)- A. Letters
- B. Digits
- C. Underscore
- D. All of the above
Explanation: Answer: The correct answer is (d) All of the above.In C programming, a valid variable name can consist of:Letters (a-z, A-Z)Digits…
Correct answer: All of the above- A. +
- B. =
- C. ==
- D. !=
Explanation: An assignment operator is a symbol that assigns a value to a variable. In the case of option (b), =, it takes the value on the right side…
Correct answer: =- A. Two
- B. Three
- C. Any wont operators present in C?
- D. One
Explanation: The correct answer is (d) One.The increment operator (++) in C programming is a unary operator that increases the value of its operand by…
Correct answer: One- A. 2kgms
- B. #house
- C. Roll no
- D. ABC
Explanation: The correct answer is: (d) _ABC(a) 2kgms - Variable names cannot start with a number.(b) #house - While some languages allow the use of…
Correct answer: ABC- A. +
- B. *
- C. +=
- D. %
Explanation: The correct answer is: (c) +=Compound assignment operators are a shorthand way to combine an arithmetic or bitwise operation with an…
Correct answer: +=- A. !.
- B. <
- C. and
- D. +
Explanation: The correct answer is (a) !.In C programming, the precedence level determines the order in which operations are evaluated within an…
Correct answer: !.- A. Variable
- B. Identifier
- C. Operator
- D. constant
Explanation: A constant is a fixed value that cannot be modified during the program's execution.
Correct answer: constant