iGET

Computer Knowledge - MCQ Practice Questions

Computer Science questions in competitive exams stay close to fundamentals, which is good news if you revise the right five subjects. Coverage includes data structures, algorithms and complexity, operating systems, database management systems, computer networks, and computer organisation. Explanations show the trace or the state table where one helps, since seeing the intermediate steps is what makes the concept stick.

304 questions | 100% Free

Q.141Medium

Which of the following correctly represents a structure declaration in C?

Q.142Hard

What does the 'volatile' keyword indicate in C?

Q.143Hard

Consider: int *ptr; int arr[] = {1,2,3}; ptr = arr; What is ptr[1]?

Q.144Medium

Which of the following operators has the highest precedence in C?

Q.145Easy

Which of the following is true about the 'break' statement in C?

Q.146Medium

What will be printed: int i = 0; while(i < 3) { printf("%d ", i); i++; }

Q.147Medium

What is the correct syntax to free dynamically allocated memory in C?

Q.148Medium

What does the following code do: int *ptr = NULL;

Q.149Medium

What is the output of: printf("%f", );

Q.150Easy

Which of the following correctly declares a 2D array in C?

Q.151Medium

What does the sizeof() operator return in C?

Q.152Hard

What is the difference between getchar() and scanf("%c", &ch); in C?

Q.153Easy

What will be the memory size occupied by: int arr[5][3];?

Q.154Medium

What does the modulus operator (%) return when applied to negative numbers?

Q.155Medium

Which of the following statements about pointers is correct?

Q.156Medium

What is the correct way to declare a constant in C?

Q.157Easy

Which loop construct in C guarantees execution at least once?

Q.158Easy

What is the scope of a variable declared inside a block?

Q.159Medium

How many times will the following loop execute: for(int i=0; i<5; i++) { if(i==3) break; }

Q.160Medium

Which of the following is a correct way to initialize a pointer to NULL?