iGET

Computer Knowledge - MCQ Practice Questions

Practice free Computer Knowledge multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

309 questions | 100% Free

Q.1Easy

Which of the following correctly describes the difference between malloc() and calloc() in C?

Q.2Easy

Which data structure uses the LIFO (Last In First Out) principle and is commonly used for function call management in programming languages?

Q.3Easy

What is the output of the following C code? int x = 5; printf("%d", x++);

Q.4Easy

Which of the following is the correct syntax to declare a pointer in C?

Q.5Easy

What will be the size of the following array in bytes? char arr[10];

Q.6Easy

What is the purpose of the 'void' keyword in C?

Q.7Easy

What is the output of the following C code? int a = 10, b = 20; int c = (a > b) ? a : b; printf("%d", c);

Q.8Easy

What does the strlen() function return?

Q.9Easy

Which header file is required to use the printf() function in C?

Q.10Easy

Which of the following is a valid variable name in C?

Q.11Easy

What is the return type of the strlen() function?

Q.12Easy

Which operator has the highest precedence in C?

Q.13Easy

What is the size of an integer variable in most modern C compilers?

Q.14Easy

Which of the following is NOT a valid C data type?

Q.15Easy

What is the purpose of the & operator in C?

Q.16Easy

Which keyword is used to create a constant variable in C?

Q.17Easy

What is the output of sizeof(char) in C?

Q.18Easy

How many times will the loop execute? for(int i = 0; i < 5; i++)

Q.19Easy

What will be the value of x after: int x = 5; x += 3;

Q.20Easy

What is the size of int data type in a 32-bit system?