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
What will be the output of the following code? int *ptr; int arr[3] = {10, 20, 30}; ptr = arr; printf("%d", *(ptr + 1));
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?
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));
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
What will be the value of 'x' after execution of the following code? int x = 10; x += 5; x *= 2;
What is the primary difference between malloc() and calloc() functions in C?
If arr[5] = {1, 2, 3, 4, 5}, what will be the value of *(arr + 3)?
Which header file must be included to use the printf() function in C?
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?
Which normal form eliminates transitive dependencies in a database table?
What is the time complexity of a binary search algorithm on a sorted array?
Which SQL command is used to remove a table structure along with its data?
In a hash table, what is the primary cause of collision?
Which of the following is NOT a characteristic of a relational database?
What does the acronym ACID stand for in database transactions?
Which data structure is best suited for implementing a priority queue?
In SQL, what is the difference between INNER JOIN and LEFT JOIN?
Which cloud service model provides virtualized computing resources over the internet?
What is the primary purpose of database indexing?
In cybersecurity, what does encryption primarily protect against?