Computer Science Ics Part 1 Online Test With Answers

Computer Science Ics Part 1 Online Test

Sr. # Questions Answers Choice
1

What is the output ofprint  ("Hello" end “!”)?

<p>Hello!</p> <p>Hello</p> <p>Error</p> <p>Hello on !</p>
2

Why ar eror messages important.

<p>Slow down the process</p> <p>Helps locate problems</p> <p>Not useful</p> <p>Indicate success</p>
3

What does pdb do.

<p>Compiles code</p> <p>Steps through and inspects code</p> <p>Writes tests</p> <p>Optimizes performance</p>
4

What is a common debugging technique.

<p>Writing more code</p> <p>Print statement</p> <p>Ignoring errors</p> <p>Frequent compiling</p>
5

What is debugging.

<p>Writing new code</p> <p>Finding and fixing errors</p> <p>Compiling</p> <p>Running test</p>
6

What is regression testing.

<p>Testing new features</p> <p>Ensuring no breakages in functionality</p> <p>UI testing</p> <p>Performace &nbsp;testing</p>
7

What is functional testing.

<p>Speed testing</p> <p>Validating usr behaavior</p> <p>Syntax checking</p> <p>Database testing</p>
8

What does integration testing check

<p>Individual functions</p> <p>User experience</p> <p>Code interaction</p> <p>Performance</p>
9

What is unit testing?

<p>Testing the whle app</p> <p>Testing parts i isolation&nbsp;</p> <p>User interaction testing</p> <p>Performance testing</p>
10

What is the goal of testing.

<p>Write more code</p> <p>Find and fix issues</p> <p>Optimize performance</p> <p>Deputy code</p>
11

What is testing in programming.

<p>writing code</p> <p>Running code with inputs</p> <p>Compiling</p> <p>Debugging</p>
12

What is the result of dividing by zero in Python

<p>Returns zero</p> <p>Raises an error</p> <p>Returns infinity</p> <p>Terminates the program</p>
13

How do you append data to a file

<p>Open in read mode</p> <p>Open in write mode</p> <p>Open in append mode</p> <p>Open in execuge mode</p>
14

How mode is used to overwite a file

<p>read (r)</p> <p>Write (w)</p> <p>append (a)</p> <p>excute (x)</p>
15

What does the with statemetn do when handling files.

<p>Keeps the file open</p> <p>Ensures the file is closed</p> <p>Delects the file</p> <p>Reades the file</p>
Download This Set

Is this page helpful?