NEW
Font size
WorksheetsInfinity Code Nexus
Total questions: 40
Worksheet time: 20mins
Which data type is used to store a single character in C?
a) char
b) string
c) int
d) float
What is the output of printf("%d", 5 / 2); in C?
a) 2.5
b) 2
c) 3
d) Compilation error
Which of the following correctly declares a pointer in C?
a) int ptr;
b) int *ptr;
c) int& ptr;
d) ptr int;
Which of the following loops in C executes at least once?
a) for
b) while
c) do-while
d) foreach
What will sizeof(int) return in most modern compilers?
a) 2
b) 4
c) 8
d) Undefined
Which of these is NOT a frontend technology?
a) React.js
b) Angular
c) Express.js
d) Vue.js
Which protocol is commonly used for secure communication between frontend and backend?
a) HTTP
b) FTP
c) HTTPS
d) SMTP
8. What is the purpose of JWT in full-stack development?
a) Encrypting frontend code
b) Authenticating users
c) Creating API endpoints
d) Managing databases
Which NoSQL database is widely used in full-stack development?
a) PostgreSQL
b) MySQL
c) MongoDB
d) Oracle
What is the default HTTP method used for fetching data?
a) POST
b) GET
c) DELETE
d) PUT
What is the purpose of pandas in Python?
a) Web development
b) Machine learning
c) Data analysis
d) Image processing
Which library is used for data visualization in Python?
a) NumPy
b) Matplotlib
c) TensorFlow
d) Pandas
13. What is a common technique to handle missing data in datasets?
a) Deleting all missing values
b) Filling with mean or median
c) Ignoring the missing values
d) Changing data type
Which type of plot is used to show data distribution?
a) Line plot
b) Bar chart
c) Histogram
d) Pie chart
Which of the following is an example of structured data?
a) Social media posts
b) Images
c) SQL databases
d) Audio recordings
16 . Which ML algorithm is best suited for classification problems?
a) K-Means
b) Random Forest
c) PCA
d) Apriori
What is feature scaling in ML?
a) Removing unwanted features
b) Normalizing feature values
c) Converting categorical data
d) Increasing dataset size
Which of these is a deep learning framework?
a) NumPy
b) TensorFlow
c) Pandas
d) Matplotlib
19 . What is the main goal of reinforcement learning?
a) Minimizing model loss
b) Making sequential decisions
c) Predicting continuous values
d) Generating images
Which AI technique is used for chatbots like ChatGPT?
a) CNN
b) RNN
c) LLM (Large Language Model)
d) GAN
Which of these attacks aims to overwhelm a system with traffic?
a) SQL Injection
b) Phishing
c) DDoS
d) Cross-Site Scripting
What is the purpose of multi-factor authentication (MFA)?
a) To replace passwords
b) To verify user identity using multiple methods
c) To encrypt data
d) To log out inactive users
Which of the following is an example of social engineering?
a) Brute-force attack
b) Phishing
c) Keylogger
d) Man-in-the-middle attack
What will be the output of the following C code?
int a = 5;
printf("%d %d %d", a++, a++, ++a);
a) 7 6 6
b) Undefined behavior
c) 5 6 7
d) 7 5 6
Which sorting algorithm has the worst-case time complexity of O(n²)?
a) Quick Sort
b) Merge Sort
c) Bubble Sort
d) Heap Sort
Which of the following C operators has the highest precedence?
a) +
b) *
c) ()
d) &&
What is the output of the following code?
printf("%d", sizeof(NULL));
a) 1
b) 2
c) 4
d) Depends on system architecture
25 . What is the best case time complexity of the QuickSort algorithm?
a) O(n²)
b) O(n log n)
c) O(n)
d) O(log n)
Which loop structure ensures the body executes at least once?
a) for
b) while
c) do-while
d) if-else
What will be the output of the following code?
int i = 5;
printf("%d %d %d", i++, i--, ++i);
a) Undefined behavior
b) 5 5 5
c) 7 6 5
d) 6 5 5
What is the output of the following code?
printf("%d", sizeof(NULL));
a) 1
b) 2
c) 4
d) Depends on system architecture
32 . What is the output of the following C code?
int a = 10, b = 20;
a = a ^ b;
b = a ^ b;
a = a ^ b;
printf("%d %d", a, b);
a) 20 10
b) 10 20
c) 30 30
d) Compilation Error
Which sorting algorithm has the worst-case time complexity of O(n²)?
a) Quick Sort
b) Merge Sort
c) Bubble Sort
d) Heap Sort
What is the output of the following code?
int a = 8;
a = a << 2;
printf("%d", a);
a) 2
b) 32
c) 16
d) 4
What is the output of the following code?
int a = 10, b = 20;
int p = &a, q = &b;
p = q;
printf("%d %d", a, b);
a) 10 20
b) 20 20
c) 10 10
d) Compilation Error
Which programming language is considered the foundation of modern operating systems like Unix?
a) Java
b) Python
c) C
d) COBOL
Which company developed the first graphical user interface (GUI)?
a) Microsoft
b) Apple
c) Xerox
d) IBM
What is the name of the first computer virus?
a) ILOVEYOU
b) Melissa
c) Creeper Virus
d) Trojan Horse
Who is the creator of the C programming language?
a) Bjarne Stroustrup
b) James Gosling
c) Dennis Ritchie
d) Guido van Rossum
What does "open-source" mean in software development?
a) Software that is free to use
b) Software that can be modified and shared freely
c) Software that is only available for trial
d) Software developed only by government agencies
