wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Long Quiz(CC106)

Total questions: 35

Worksheet time: 18mins

Name
Class
Date
1.

What is the correct structure for declaring a function in Python code.

a)

function myFunction():

b)

def myFunction():

c)

create myFunction():

d)

func myFunction():

2.

Identify the valid class-declaration statement in Python from the choices below.

a)

class MyClass[]:

b)

class MyClass:

c)

MyClass class:

d)

def class MyClass():

3.

Which syntax element is required when building a class that inherits functionality from another in Python?

a)

inherits

b)

extends

c)

derive

d)

class Child(Parent):

4.

In object-oriented Python, what is the benefit of calling super() in a subclass?

a)

To call a method from the child class

b)

To delete an object

c)

To call a method from the parent class

d)

To initialize a class

5.

What’s the proper method for creating a class-based object in Python code?

a)

object = MyClass[]

b)

object = new MyClass()

c)

object = MyClass()

d)

object = class MyClass()

6.

How does Python interpret the statement range(5)?

a)

[1, 2, 3, 4, 5]

b)

[0, 1, 2, 3, 4]

c)

(0, 1, 2, 3, 4)

d)

0 to 5

7.

What mechanism enables structured error handling in Python code?

a)

try/except

b)

do/catch

c)

try/catch

d)

handle/error

8.

Why might a Python programmer use the pass keyword in a code block?

a)

To pass control to the next function

b)

To skip the current iteration

c)

To define an empty class or function

d)

To exit a loop

9.

What built-in function is used to place an item at the end of a list?

a)

append()

b)

add()

c)

push()

d)

insert()

10.

Which type of information does len() extract from a string or list?

a)

Number of variables in the program

b)

Memory size

c)

C) Number of characters/items in an object

d)

CPU cycles

11.

At what point in the SDLC are system requirements identified and feasibility studies performed?

a)

Design

b)

Planning

c)

Deployment

d)

Maintenance

12.

How is a use case defined in the context of designing software systems

a)

A user interface sketch

b)

A written description of user-system interaction

c)

A marketing document

d)

A backup plan

13.

When developing Android apps, what language is most frequently chosen by developers?

a)

Swift

b)

Java

c)

Ruby

d)

PHP

14.

What does the UAT phase aim to confirm before handing over the system to production?

a)

To test server configurations

b)

To confirm system security

c)

To validate the software with end users

d)

To measure system performance

15.

What tool is widely used for version control?

a)

Jira

b)

Trello

c)

Git

d)

Xcode

16.

Why is a Battery Management System or Protection Circuit Module used in rechargeable battery setups?

a)
  • Enhance Wi-Fi signals

b)
  • Prevent overcharging and short circuits in battery packs

c)
  • Measure ambient temperature

d)
  • Provide cloud data storage

17.

What component is commonly used to control large electrical currents or fluid flow in a system?

a)
  • Servo Motor

b)
  • Solenoid Valve

c)
  • Stepper Motor

d)
  • Gyroscope

18.

In low-energy, extended-range IoT systems, what wireless standard is typically used?

a)
  • A) Bluetooth

b)
  • B) Wi-Fi

c)
  • C) LoRa

d)
  • D) Zigbee

19.

Which type of environmental detection is the MQ-2 module commonly used for?

a)
  • Distance measurement

b)
  • Gas detection (LPG, smoke)

c)
  • Humidity sensing

d)
  • Light sensing

20.

What form of detection is the primary function of a passive infrared (PIR) sensor?

a)

Humidity

b)
  • Light intensity

c)

Motion via infrared radiation

d)
  • Sound

21.

Which programming syntax is typically used for writing ESP32 code in the Arduino environment?

a)

Python

b)

Java

c)

C++

d)

JavaScript

22.

Upon powering up the ESP32, which routine runs first by default?

a)

loop()

b)

setup()

c)

main()

d)

begin()

23.

In Arduino sketches, what baud rate is most often used to establish serial communication for testing?

a)

4800

b)

57600

c)

9600

d)

115200

24.

What role does the loop() block serve in the overall flow of an Arduino sketch?

a)

Initializes pins

b)

Runs once at boot

c)

Runs continuously after setup()

d)

Connects to WiFi

25.

In Arduino programming, what command is used to define whether a pin acts as an input or output?

a)

setPin()

b)

pinMode()

c)

configurePin()

d)

definePin()

26.

Which line of code sets pin 5 to output a voltage level corresponding to HIGH?

a)

pinMode(5, ON);

b)

digitalWrite(5, HIGH);

c)

setPin(5, HIGH);

d)

writePin(5, true);

27.

To connect the ESP32 to a Wi-Fi network, what library must your code reference?

a)

#include <WiFiClient.h>

b)

#include <ESP32WiFi.h>

c)

#include <WiFi.h>

d)

#include <Internet.h>

28.

How do you print information to the Serial Monitor in an Arduino sketch?

a)

printSerial()

b)

Serial.output()

c)

Serial.writeLine()

d)

Serial.println()

29.

How do you create a delay in Arduino for a certain duration measured in milliseconds?

a)

wait(ms)

b)

sleep(ms)

c)

pause(ms)

d)

delay(ms)

30.

In Arduino, which library provides functions for retrieving data from the DHT11 sensor?

a)

#include <Sensor.h>

b)

#include <DHT.h>

c)

#include <TempSensor.h>

d)

#include <Humidity.h>

31.

Which option best represents the nature of Alternating Current in a circuit?

a)

A type of current that flows in one direction only.

b)

A current that increases and decreases in strength but never changes direction.

c)

A type of current in which electrons periodically reverse their direction of flow.

d)

A current that stops and starts rapidly based on the power source.

32.

Among the following, which one regularly delivers alternating current?

a)

A car battery

b)

A wall outlet

c)

A phone battery

d)

A laptop battery

33.

What purpose does a resistor serve when added to an electronic system?

a)

To increase the overall voltage in a circuit

b)

To convert electrical energy into motion

c)

To store electrical charge for later use

d)

To limit or regulate the flow of current

34.

What measurement unit is used for determining resistance in a circuit?

a)

A. Volts (V)

b)

B. Amperes (A)

c)

C. Ohms (Ω)

d)

D. Watts (W)

35.

In a schematic, how can you tell if two intersecting wires are connected?

a)

There will be no visual indication—it is always assumed they are connected.

b)

The wires must intersect at exactly 90 degrees.

c)

A dot or node at the intersection indicates a connection.

d)

The wires will be curved slightly when they intersect.