0% found this document useful (0 votes)
2 views1 page

Quizizz Sample

The document contains a series of multiple-choice questions related to computer programming concepts, including variables, data types, process management, and the use of libraries like Tkinter in Python. Each question includes options for answers, the correct answer, and a time limit for response. The questions cover fundamental programming principles and practices, aimed at assessing knowledge in the field.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Quizizz Sample

The document contains a series of multiple-choice questions related to computer programming concepts, including variables, data types, process management, and the use of libraries like Tkinter in Python. Each question includes options for answers, the correct answer, and a time limit for response. The questions cover fundamental programming principles and practices, aimed at assessing knowledge in the field.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Question Text Question Type Option 1 Option 2 Option 3 Option 4 Option 5 Correct Answer Time in seconds Image Link

Text of the question Question Type Text for option 3 Text for option 4 Text for option 5 Link of the image
Text for option 1 Text for option 2 The correct option choice Time in seconds
(between 1-5).
(required) (default is Multiple (optional) (optional) (optional) (optional)
(required in all cases (required in all cases (optional, default value
Choice)
except open ended except open ended Leave blank for "Open-Ended", is 30 seconds)
questions) questions) "Poll", and "Fill-in-the-Blank".
What is the correct sequence of steps for Execute, type command, Type command, wait for Wait for response, type Type command, execute,
interacting with a computer program? Multiple Choice wait for response response, execute command, execute wait for response 4 45
An input device used to
What is a variable in computer A fixed value that cannot enter data into the A type of loop used for A named place in the
programming? Multiple Choice be changed computer repeating code memory to store data 4 45
Variable names can
include letters, numbers,
Only letters are allowed, It is allowed to start a or underscores, but must
What are the rules for naming variables not numbers or Variable names are not variable name with a start with a letter or
in computer programming? Multiple Choice underscores case sensitive number underscore 4 45
A combination of
operator and its operand
(s), where the operator is
a symbol indicating a
What is a statement in computer A variable used to store A function that performs A type of loop used for calculation, and there is
programming? Multiple Choice data temporarily a specific task repeating code one or more operands 4 45
Which of the following values represent
a Boolean variable in computer
programming? Multiple Choice int char float TRUE FALSE 4,5 45
What is an integer variable in A variable used to A variable that can only A type of loop used for A variable that can
computer programming? Multiple Choice store text data hold a value of 0 or 1 repeating code hold whole numbers 4 45
What data type in computer
programming is typically used to
store decimal numbers with digits
and exponents? Multiple Choice char bool double float 4 45
Which of the following functions can be
used to check inheritance in Python? Multiple Choice isinstance() isinherit() issuper() issubclass() 4 45
By adding more base
How does Python support multiple By adding more methods By creating new classes By overriding methods in classes into the
inheritance? Multiple Choice to a single base class from existing classes parent classes parentheses 4 45
They promote
They allow for more They provide additional modularity, reusability,
What are some reasons why modules are They improve program complex programming syntax for built-in shareability, and
important in Python? Multiple Choice speed and efficiency logic functions maintainability of code 4 45
A bunch of related
modules organized into
A set of built-in modules A collection of unrelated sub-packages, sub-
that come pre-installed modules bundled together A type of file format used sub-packages and
In Python, what is a package? Multiple Choice with Python for convenience to distribute Python code more 4 45
Files are everything in
Files are similar to UNIX, and files are
Files are a type of object databases and can store named locations on
Files can only contain that can be passed as large amounts of disk used to store
What is true about files in Python? Multiple Choice text data, not binary data arguments to functions structured data information 4 45
To store temporary files To optimize system To provide a hierarchical
What is the primary purpose of used by the operating To act as a repository for performance through file structure for organizing
directories in computer systems? Multiple Choice system user passwords compression data 4 45
Keyboard input buffer, Hard disk storage
What components are typically network socket System clock rate, CPU capacity, disk Processor state, file
included in the execution state of a connections, and display temperature, and fan fragmentation status, and descriptors, and memory
process? Multiple Choice output buffer speed read/write speeds allocation 4 45
Creating, executing,
What are the five basic states of a Initial, active, paused, Active, standby, pending, pausing, stopping, New, ready, running,
process? Multiple Choice suspended, complete scheduled, finished closing waiting, terminated 4 45
The process scheduler is
The process scheduler is a part of the operating
The process scheduler is The process scheduler responsible for choosing system that decides
What is the role of process scheduler in a responsible for executing determines how much the order in which the which processes to be
computer system that has multiple all processes memory each process processes are installed on executed at a certain
processes running at the same time? Multiple Choice simultaneously. should be allocated. the system. time. 4 45
The PCB typically
The PCB only contains The PCB only contains contains information
information about the information about the A PCB only contains about the process state,
What are the key components of a process's input/output amount of CPU time a information about the priority, and allocated
Process Control Block (PCB)? Multiple Choice operations. process has used. process name and ID. resources. 4 45
The PCB is used to
store and manage
information about a
The PCB is used to The PCB is used to process, including its
What is the primary function of a manage network The PCB is used to store allocate memory to state, priority, allocated
Process Control Block (PCB) in an connections between configuration settings for device drivers in the resources, and other
operating system? Multiple Choice processes. the operating system. system. relevant details. 4 45
Which function is used to execute a shell
command from within a program in an
operating system? Multiple Choice popen() fork() exec() system() 4 45
popen allows a user to popen creates a new popen retrieves popen provides a way to
What is the purpose of the system popen open a file with write process in the operating information about a file execute shell commands
function in operating systems? Multiple Choice permissions system in the operating system from within a C program 4 45
The GIL was introduced
to simplify memory
management in Python
by allowing only one
The GIL was introduced The GIL was introduced The GIL was introduced thread to execute at a
to make it easier to write to allow multiple threads to improve performance time, ensuring thread
Why was the Global Interpreter Lock concurrent programs in to execute in multi-threaded safety and avoiding
(GIL) introduced in Python? Multiple Choice Python. simultaneously. programs. potential race conditions. 4 45
A thread is a single flow
A thread is a type of of execution that belongs
A thread is a separate A thread is a type of data input/output operation to a process and can be
process running on the structure used to organize used to communicate considered as a
What is a thread in computer science? Multiple Choice computer. code within a program. with hardware devices. lightweight process. 4 45
A single-threaded process A single-threaded process
A single-threaded process is a type of process that A single-threaded process is a default type of
is a type of process that can run on multiple is a type of process that is process in which only
What is a single-threaded process in uses multiple threads to processors specifically designed for one thread per process is
operating systems? Multiple Choice execute code. simultaneously. parallel computing. executed. 4 45
A single stack refers to a
memory management
system that uses only one
stack for storing program
data, including the Single
text section (code),
A single stack is a type of A single stack is a type of Single data section
data structure used for A single stack is a type of programming language (global data), and Single
What is a single stack in computer handling network hardware device used for designed specifically for heap (dynamic
programming? Multiple Choice requests. processing graphics. web development. allocation). 4 45
A multi-threaded process
has more than one thread
Threads in a multi- per process, and all
Each thread in a multi- Multi-threaded processes threaded process cannot threads share the same
What is a characteristic of a multi- threaded process has its can only have one thread share data with each PCB (Process Control
threaded process? Multiple Choice own separate PCB running at a time. other. Block). 4 45
In a multi-threaded
process, each thread has
its own stack and
processor state (such as
the program counter and
Multi-threaded processes In a single-threaded registers), whereas in a
can only run on a single Multi-threaded processes process, the main thread single-threaded process
What is a difference between a multi- core, whereas single- always have better is always given priority there is only one stack
threaded process and a single-threaded threaded processes can performance than single- over any additional and processor state for
process? Multiple Choice run on multiple cores. threaded processes. threads. the entire process. 4 45
Multi-processes allow for Multi-threading allows
resource sharing among Both multi-threading and for resource sharing
What is the key difference between threads while multi- Both multi-threading and multi-processing allow among threads while
multi-threading and multi-processing in threading relies on multi-processing rely on for resource sharing multi-processes rely on
terms of resource management? Multiple Choice resource cloning. resource cloning. among threads. resource cloning. 4 45
Increased responsiveness,
Reduced responsiveness improved performance,
What are some benefits of using multi- and increased Improved resource resource sharing, and
threading in software development? Multiple Choice performance. cloning. Limited scalability. scalability. 4 45
What are some reasons why a developer Multi-threading always Multi-threading is the Synchronization between
might not choose to use multi-threading results in deterministic only way to achieve Deadlocks never occur in threads can be difficult
in software development? Multiple Choice code. optimal performance. multi-threaded programs. and error-prone. 4 45
Simple User Interface Graphical User Interface
What are two common types of Basic User Interface and and Complex User Textual User Interface and Command Line
interfaces used in software applications? Multiple Choice Advanced User Interface Interface and Audio User Interface Interface 4 45
GUIs are user-friendly
and intuitive for
newcomers, easy to learn
without the need to
What are some advantages of using a GUIs require users to GUIs are difficult to learn remember complex
Graphical User Interface (GUI) in remember complex and not intuitive for new GUIs can only handle commands, and allow for
software applications? Multiple Choice commands. users. one task at a time. better multitasking. 4 45
Tkinter is simple,
flexible, and focuses on
What are some advantages of using the Tkinter is inflexible and providing an easy-to-
Tkinter library in Python for building Tkinter is very complex does not offer many Tkinter is not designed learn interface for
graphical interfaces? Multiple Choice and difficult to learn. customization options. for new users. newcomers. 4 45
What are two important components of
the Tkinter library in Python for building
graphical interfaces? Multiple Choice Window and Menu Slider and Checkbox Label and Textbox Window and Widgets 4 45
.pack() centers the widget
both horizontally and
.pack() uses absolute .place() uses row and .grid() uses absolute vertically with alignment
What are the key differences between the coordinates, while . column coordinates, coordinates, while .pack() direction, while .place()
.pack(), .place(), and .grid() methods in place() and .grid() use while .grid() and .pack() and .place() use relative and .grid() use specific
the Tkinter library in Python? Multiple Choice relative coordinates. use absolute coordinates. coordinates. coordinates. 4 45
Inheritance involves
creating a child class
with a superclass in
parentheses. This
To inherit from a allows all methods and
Inheritance in Python is superclass, you must attributes from the
achieved by copying and manually copy all its Inheritance in Python superclass to be
How would you define inheritance in pasting code from one methods and attributes only works for methods, inherited by the
Python? Multiple Choice class to another. into the subclass. not attributes. subclass. 4 45
In object-oriented programming, what is
the default access level for class fields
and methods in most programming No access level specified
languages? Multiple Choice Private by default Protected by default by default Public by default 4 45
A module is a reusable
piece of code that can be
from external sources or
a regular .py file with
definitions and classes. It
A module is a term used allows you to organize
A module is a built-in to describe the process of your code, make it more
data structure in Python compiling Python code modular, and easily reuse
A module is a type of for storing multiple into machine code for functionality across
What is a module in Python? Multiple Choice variable in Python. values. execution. multiple projects. 4 45
Files are used in
Python to store data
Files are used in Python persistently while
Files are used in Python to enable the creation of storing data in RAM is
Files are used in Python to provide a way to store graphical user interfaces volatile and is erased
to speed up program data temporarily while a (GUIs) for desktop when the program
Why are files used in Python? Multiple Choice execution. program is running. applications. exits. 4 45
A type of data structure A physical component of A set of instructions A program that is
What is the definition of a "process" in used to store and a computer that performs written in a programming currently being executed
computer science? Multiple Choice organize information arithmetic operations language by the operating system 4 45
Process scheduling
The main characteristic maximizing CPU,
The primary goal of Process scheduling of process scheduling is ensuring
process scheduling is to always gives highest to allocate more CPU responsiveness,
make sure that only one priority to low-level time to processes that enabling multitasking,
process is running at a system tasks such as have been running for a and balancing resource
What are some characteristics of process time, to avoid conflicts managing memory and long time, to ensure they usage across
scheduling in computing? Multiple Choice between them. hardware resources. complete their tasks. processes. 4 45
What is one reason why developers GIL improves GIL ensures thread safety GIL allows multiple GIL limits concurrency
should avoid using the Global Interpreter performance in multi- and prevents data threads to access the and can cause
Lock (GIL) in Python Multiple Choice threaded applications. corruption. same shared memory. performance bottlenecks. 4 45
Both multi-threaded Both multi-threaded Both multi-threaded
and multi-process and multi-process and multi-process can
decrease CPU decrease system do several things at the
utilization, do several responsiveness, do same time, increase
What is the similarity between multi- things at the same several things at the Both multi-threaded and CPU utilization,
threaded and multi-process approaches time, increase system same time, increase multi-process run tasks increase system
to running tasks on a computer? Multiple Choice responsiveness. CPU utilization. sequentially. responsiveness. 4 45

You might also like