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.201Medium

What will be the output of the following code? int *ptr; int arr[3] = {10, 20, 30}; ptr = arr; printf("%d", *(ptr + 1));

Q.202Hard

Consider this complex code snippet: int a = 5, b = 2; int result = a * b + ++b * a--; printf("%d %d %d", result, a, b); What will be the output?

Q.203Hard

What is the output of this recursive function? int func(int n) { if(n <= 1) return 1; return n * func(n-1); } printf("%d", func(4));

Q.204Hard

What is the output of this code involving bitwise operations? int x = 5; // binary: 0101 int y = 3; // binary: 0011 printf("%d", x ^ y); // XOR operation

Q.205Easy

What will be the value of 'x' after execution of the following code? int x = 10; x += 5; x *= 2;

Q.206Medium

What is the primary difference between malloc() and calloc() functions in C?

Q.207Medium

If arr[5] = {1, 2, 3, 4, 5}, what will be the value of *(arr + 3)?

Q.208Easy

Which header file must be included to use the printf() function in C?

Q.209Medium

Consider a structure: struct Point { int x; int y; }; If p is a pointer to this structure and we want to access member x, which notation is INCORRECT?

Q.210Easy

Which normal form eliminates transitive dependencies in a database table?

Q.211Easy

What is the time complexity of a binary search algorithm on a sorted array?

Q.212Easy

Which SQL command is used to remove a table structure along with its data?

Q.213Easy

In a hash table, what is the primary cause of collision?

Q.214Easy

Which of the following is NOT a characteristic of a relational database?

Q.215Easy

What does the acronym ACID stand for in database transactions?

Q.216Medium

Which data structure is best suited for implementing a priority queue?

Q.217Medium

In SQL, what is the difference between INNER JOIN and LEFT JOIN?

Q.218Medium

Which cloud service model provides virtualized computing resources over the internet?

Q.219Medium

What is the primary purpose of database indexing?

Q.220Medium

In cybersecurity, what does encryption primarily protect against?