What is the difference between #include <stdio.h> and #include "stdio.h"?
Q.42Hard
Consider the code: int *p; int arr[5]; p = arr; What does p[2] represent?
Q.43Hard
Which of the following will correctly allocate memory for an array of 10 integers?
Q.44Hard
What will be the output of: int x = 5; int y = x++ + ++x; ?
Q.45Hard
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?
Advertisement
Q.46Hard
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.47Hard
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.48Hard
What is a deadlock in database management?
Q.49Hard
Which of the following best describes eventual consistency in distributed databases?
Q.50Hard
In network protocols, which layer does TCP/IP operate at?
Q.51Hard
What is the primary vulnerability addressed by SQL injection prevention techniques like parameterized queries?
Q.52Hard
In the context of graph databases, what is the primary advantage over relational databases for relationship-heavy queries?
Q.53Hard
What does CAP theorem state in distributed systems?
Q.54Hard
In cybersecurity, what is a zero-day vulnerability?
Q.55Hard
What does BASE model in NoSQL stand for?
Q.56Hard
In database replication, what is the primary difference between synchronous and asynchronous replication?
Q.57Hard
Which of the following best describes a distributed transaction and its challenges in microservices architecture?
Q.58Hard
In cybersecurity, what is SQL injection and why is it a critical vulnerability in 2024?
Q.59Hard
What is the primary advantage of using GraphQL over traditional REST APIs in modern application architecture?
Q.60Hard
In a B-tree of order m, what is the maximum number of keys that a non-root node can contain?