Font size
WorksheetsCoding Diagnostic Exam
Total questions: 28
Worksheet time: 14mins
How does understanding digital tools contribute to coding?
It helps in memorizing code syntax
It enables effective use of software and hardware tools in coding
It has no impact on coding skills
Rewrite the following code to make it print "Positive" for any positive number:
Keep the code as it is
Change num>0 to num>=0
Change num>0 to num<0
Why is it important to use computers responsibly when coding?
To impress friends
To avoid getting in trouble
To ensure a safe and positive coding experience
What is the purpose of the following code?
User registration
Password recovery
Checking if the login is successful
Why is digital citizenship important in coding?
It's not important in coding
It emphasizes being kind and responsible online, even in coding communities
It focuses only on writing code
Which loop is used to repeat a set of instructions until a specific condition is met?
For loop
While loop
If statement
What does the following code print?
Big number
Small number
Equal number
What is digital literacy?
Writing code without errors
Understanding and using digital tools
Mastering advanced programming languages
What is the purpose of the following code snippet?
Print "Hello, World!" three times
Print numbers from 0 to 2
Print "Hello, World!" continuously
What will the following code print?
Positive
Negative
Zero
What does 'digital use' mean in coding?
Using computers to play games
Responsible use of computers and the internet for coding
Creating physical objects with code
What does the following function do?
7
12
21
How does understanding digital tools contribute to coding?
It helps in memorizing code syntax
It enables effective use of software and hardware tools in coding
It has
What is the purpose of using logical thinking in coding?
To confuse other programmers
To create complex and unnecessary code
To solve problems and write efficient code
How can responsible digital use benefit coding projects?
It speeds up the coding process
It ensures a safe and positive coding environment
It helps in avoiding coding errors
How can online tutorials and documentations support your coding journey?
They are not helpful.
They provide guidance, explanations, and examples for coding concepts.
They only confuse beginners.
Why is it important to collaborate and share ideas in a coding community?
It slows down the coding process
It creates a positive and supportive coding environment
It's not important in coding
Why is it essential to organize your coding files and folders?
It doesn't matter; coding is about writing code, not organizing files.
Organized files make it easier to find and manage code.
It makes your computer run faster.
What does being a good digital citizen mean in a coding community?
Ignoring others' code
Being kind, respectful, and responsible in online coding interactions
Only focusing on personal coding projects
What is a parameter in a function?
The result of the function
An input value that a function takes
The name of the function
What is the purpose of a function in coding?
It creates random numbers
It organizes code into reusable blocks
It displays messages on the screen
In coding, what is an event?
A birthday celebration in the coding community
An action or occurrence that can be detected and responded to
A bug in the code
What does the return statement do in a function?
It prints a message on the screen.
It stops the execution of the program.
It specifies the value that the function should output.
In coding, what is an "if statement" used for?
It's used to repeat a block of code.
It's used to make decisions based on conditions.
It's used to define functions.
How can digital literacy contribute to efficient problem-solving in coding?
By memorizing code syntax
By understanding and effectively using online resources
By avoiding coding challenges
What does it mean to give credit in a coding project?
It's not necessary in coding.
Acknowledging and citing the sources or code snippets used in your project.
Sharing your project with others.
How would you modify the following code to print numbers from 1 to 5?
Change range(5) to range(1,6)
Change range(5) to range(0,5)
Change print(i) to print(i+1)
What will be the output of the following code?
Greater than 5
Greater than 8
Less than or equal to 5
