Online Quiz
1) Which OSI layer is responsible for both error control and flow control, but only within the same network and not end-to-end?
A) Transport Layer
B) Network Layer
C) Data Link Layer
D) Session Layer
2) Which of the following is a valid IPv4 address?
A) 256.34.1.1
B) 192.168.1
C) 10.0.0.1
D) 981.65.186
3) Which of the following is an incorrect C syntax?
A) int x = 5;
B) float 3.14 = pi;
C) char c = 'A';
D) printf("Hello, World!");
4) Which of the following is a primary benefit of cloud computing?
A) On-demand scalability
B) Requires no internet connection
C) Limited data storage
D) Fixed pricing model
5) Which of the following is a key feature of machine learning?
A) Predicting outcomes based on data
B) Manual programming for each task
C) Replacing human decision-makers entirely
D) Using pre-written rules for decisions
6) Which of the following is a characteristic of a distributed database?
A) Data is stored in a single location
B) Data is stored across multiple sites
C) Centralized control of data
D) No replication of data
7) Which of the following is a valid way to declare a variable in JavaScript?
A) var myVariable = 10;
B) variable myVariable = 10;
C) int myVariable = 10;
D) let 10 = myVariable;
8) Which event is triggered when a user clicks on an HTML button?
A) onload
B) onclick
C) onhover
D) onsubmit
9) Which of the following is a core feature of Object-Oriented Programming (OOP)?
A) Functions are executed in a sequence
B) Data and methods are encapsulated within classes
C) Programs are written in a single block of code
D) Data is not reusable across different objects
10) Which of the following is characteristic of the Agile software development model?
A) Linear and sequential development
B) A fixed scope and strict deadlines
C) Iterative and incremental development
D) No client involvement after requirements gathering
Submit