Computer Science Ics Part 1 Chapter 2 Online Test With Answers

Computer Science Ics Part 1 Chapter 2 Online Test

Sr. # Questions Answers Choice
1

What is Python 's standard library.

<p>Built-in modules</p> <p>External libraties</p> <p>Code database&nbsp;</p> <p>Debugging tool</p>
2

How does modular programming benefit developers.

<p>Complicates management</p> <p>Independent work</p> <p>No functions</p> <p>Less reuse</p>
3

Why is the main () function important.

<p>Faster execution</p> <p>Organizes code</p> <p>Infiniteloops</p> <p>Not important</p>
4

What is the main function in Python?

<p>Background functions</p> <p>Starting point</p> <p>Imports modules</p> <p>Error handler</p>
5

What is modular programming.

<p>One file</p> <p>Smaller modules</p> <p>No functions</p> <p>Single data structure</p>
6

What is the third elements of [10,20,30,40]'?

<p>10</p> <p>20</p> <p>30</p> <p>40</p>
7

Why practice indexing and slicaing 

<p>Not important</p> <p>Retrieve elemets efficiently</p> <p>Only for lists</p> <p>Only for strings</p>
8

What is the purpoe of slicing ?

<p>Access elemetns</p> <p>Create a list</p> <p>Subset of sequence</p> <p>Sort &nbsp;a list</p>
9

How can you access the last elements of a list

<p>Index -1</p> <p>Index -0</p> <p>Length -1</p> <p>Both a and c</p>
10

What is the key difference between a tuplc and a list.

<p>Mutable vs iimmutable</p> <p>Variable declaration</p> <p>Data type</p> <p>Syntax</p>
11

Which method adds an item to the end of a list

<p>Append</p> <p>Insert</p> <p>Add</p> <p>Extend</p>
12

How do you creae a list in Python.

<p>Curly braces</p> <p>Paretheses</p> <p>Square brackets</p> <p>Angle brackets</p>
13

Whcih of the following is a built -in data structue in Python.

<p>List</p> <p>Array</p> <p>Set</p> <p>Stack</p>
14

Why are pakages useful in Python.

<p>To &nbsp;make code messy</p> <p>To group modules and improve order</p> <p>To delete old code</p> <p>To slow down execution</p>
15

What are default parameters in functions.

<p>Parameters that can't change</p> <p>Parameters with preset values</p> <p>Paramegters that break code</p> <p>Must use parameters</p>
Download This Set

Is this page helpful?