wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Infinity Code Nexus

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.
  1. Which data type is used to store a single character in C?

a)

a) char

b)

b) string

c)

c) int

d)

d) float

2.
  1. What is the output of printf("%d", 5 / 2); in C?

a)

a) 2.5

b)

b) 2

c)

c) 3

d)

d) Compilation error

3.
  1. Which of the following correctly declares a pointer in C?

a)

a) int ptr;

b)

b) int *ptr;

c)

c) int& ptr;

d)

d) ptr int;

4.
  1. Which of the following loops in C executes at least once?

a)

a) for

b)

b) while

c)

c) do-while

d)

d) foreach

5.
  1. What will sizeof(int) return in most modern compilers?

a)

a) 2

b)

b) 4

c)

c) 8

d)

d) Undefined

6.
  1. Which of these is NOT a frontend technology?

a)

a) React.js

b)

b) Angular

c)

c) Express.js

d)

d) Vue.js

7.
  1. Which protocol is commonly used for secure communication between frontend and backend?

a)

a) HTTP

b)

b) FTP

c)

c) HTTPS

d)

d) SMTP

8.

8. What is the purpose of JWT in full-stack development?

a)

a) Encrypting frontend code

b)

b) Authenticating users

c)

c) Creating API endpoints

d)

d) Managing databases

9.
  1. Which NoSQL database is widely used in full-stack development?

a)

a) PostgreSQL

b)

b) MySQL

c)

c) MongoDB

d)

d) Oracle

10.
  1. What is the default HTTP method used for fetching data?

a)

a) POST

b)

b) GET

c)

c) DELETE

d)

d) PUT

11.
  1. What is the purpose of pandas in Python?

a)

a) Web development

b)

b) Machine learning

c)

c) Data analysis

d)

d) Image processing

12.
  1. Which library is used for data visualization in Python?

a)

a) NumPy

b)

b) Matplotlib

c)

c) TensorFlow

d)

d) Pandas

13.

13. What is a common technique to handle missing data in datasets?

a)

a) Deleting all missing values

b)

b) Filling with mean or median

c)

c) Ignoring the missing values

d)

d) Changing data type

14.
  1. Which type of plot is used to show data distribution?

a)

a) Line plot

b)

b) Bar chart

c)

c) Histogram

d)

d) Pie chart

15.
  1. Which of the following is an example of structured data?

a)

a) Social media posts

b)

b) Images

c)

c) SQL databases

d)

d) Audio recordings

16.

16 . Which ML algorithm is best suited for classification problems?

a)

a) K-Means

b)

b) Random Forest

c)

c) PCA

d)

d) Apriori

17.
  1. What is feature scaling in ML?

a)

a) Removing unwanted features

b)

b) Normalizing feature values

c)

c) Converting categorical data

d)

d) Increasing dataset size

18.
  1. Which of these is a deep learning framework?

a)

a) NumPy

b)

b) TensorFlow

c)

c) Pandas

d)

d) Matplotlib

19.

19 . What is the main goal of reinforcement learning?

a)

a) Minimizing model loss

b)

b) Making sequential decisions

c)

c) Predicting continuous values

d)

d) Generating images

20.
  1. Which AI technique is used for chatbots like ChatGPT?

a)

a) CNN

b)

b) RNN

c)

c) LLM (Large Language Model)

d)

d) GAN

21.
  1. Which of these attacks aims to overwhelm a system with traffic?

a)

a) SQL Injection

b)

b) Phishing

c)

c) DDoS

d)

d) Cross-Site Scripting

22.
  1. What is the purpose of multi-factor authentication (MFA)?

a)

a) To replace passwords

b)

b) To verify user identity using multiple methods

c)

c) To encrypt data

d)

d) To log out inactive users

23.
  1. Which of the following is an example of social engineering?

a)

a) Brute-force attack

b)

b) Phishing

c)

c) Keylogger

d)

d) Man-in-the-middle attack

24.
  1. What will be the output of the following C code?

    int a = 5;

    printf("%d %d %d", a++, a++, ++a);

a)

a) 7 6 6

b)

b) Undefined behavior

c)

c) 5 6 7

d)

d) 7 5 6

25.
  1. Which sorting algorithm has the worst-case time complexity of O(n²)?

a)

a) Quick Sort

b)

b) Merge Sort

c)

c) Bubble Sort

d)

d) Heap Sort

26.
  1. Which of the following C operators has the highest precedence?

a)

a) +

b)

b) *

c)

c) ()

d)

d) &&

27.
  1. What is the output of the following code?

    printf("%d", sizeof(NULL));

a)

a) 1

b)

b) 2

c)

c) 4

d)

d) Depends on system architecture

28.

25 . What is the best case time complexity of the QuickSort algorithm?

a)

a) O(n²)

b)

b) O(n log n)

c)

c) O(n)

d)

d) O(log n)

29.
  1. Which loop structure ensures the body executes at least once?

a)

a) for

b)

b) while

c)

c) do-while

d)

d) if-else

30.
  1. What will be the output of the following code?

    int i = 5;

    printf("%d %d %d", i++, i--, ++i);

a)

a) Undefined behavior

b)

b) 5 5 5

c)

c) 7 6 5

d)

d) 6 5 5

31.
  1. What is the output of the following code?

    printf("%d", sizeof(NULL));

a)

a) 1

b)

b) 2

c)

c) 4

d)

d) Depends on system architecture

32.

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)

a) 20 10

b)

b) 10 20

c)

c) 30 30

d)

d) Compilation Error

33.
  1. Which sorting algorithm has the worst-case time complexity of O(n²)?

a)

a) Quick Sort

b)

b) Merge Sort

c)

c) Bubble Sort

d)

d) Heap Sort

34.
  1. What is the output of the following code?

    int a = 8;

    a = a << 2;

    printf("%d", a);

a)

a) 2

b)

b) 32

c)

c) 16

d)

d) 4

35.
  1. 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)

a) 10 20

b)

b) 20 20

c)

c) 10 10

d)

d) Compilation Error

36.
  1. Which programming language is considered the foundation of modern operating systems like Unix?

a)

a) Java

b)

b) Python

c)

c) C

d)

d) COBOL

37.
  1. Which company developed the first graphical user interface (GUI)?

a)

a) Microsoft

b)

b) Apple

c)

c) Xerox

d)

d) IBM

38.
  1. What is the name of the first computer virus?

a)

a) ILOVEYOU

b)

b) Melissa

c)

c) Creeper Virus

d)

d) Trojan Horse

39.
  1. Who is the creator of the C programming language?

a)

a) Bjarne Stroustrup

b)

b) James Gosling

c)

c) Dennis Ritchie

d)

d) Guido van Rossum

40.
  1. What does "open-source" mean in software development?

a)

a) Software that is free to use

b)

b) Software that can be modified and shared freely

c)

c) Software that is only available for trial

d)

d) Software developed only by government agencies