Search Header Logo

JCTBP97

Authored by jata code

Computers

1st Grade

JCTBP97
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a procedure or formula for solving a problem?

Python

Process

Algorithm

Platform

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following do we write first?

Algorithm

Coding

Algorithm and Coding

none

Answer explanation

Before writing code, we plan using an algorithm.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a comment used for?

To help others read and understand the code

To criticize the code

To play games

None of these

Answer explanation

Comments explain the code for others to understand.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to show a comment in Python?


!

-

//

#

Answer explanation

In Python, a comment starts with the # symbol.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following ways of printing a program is correct?

print('Hello, '+ name)

print('Hello, ', name)

print('Hello' name)

(a) or (b) both are correct

Answer explanation

Both + and , can be used to print messages in Python.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an algorithm?

Instructions for a machine to execute

The process of writing instructions

A set of steps used to complete a specific task

None of the above

Answer explanation

An algorithm is a set of steps used to complete a specific task.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output shape of the following Python code? from turtle import * turtle=Turtle() screen=Screen() for i in range(4): turtle.forward(60) turtle.left(90)

Rectangle

Trapezium

Triangle

Square

Answer explanation

The given Python code draws a square using the turtle graphics library.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?