Search Header Logo

OOP Self-Test Quiz

Authored by Felix Huerte

Computers

University

Used 4+ times

OOP Self-Test Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Who developed python?

James Gosling

Patrick Naughton

Guido van Rossum

Mark Zuckerberg

Answer explanation

Python is a general-purpose interpreted, interactive, object-oriented, and high- level programming language. It was created by Guido van Rossum during 1985- 1990.

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A code editor is a tool that is used to write and edit code. Below are samples of IDE, except:

IDLE

Thonny

Repl.it

Macromedia

Answer explanation

An IDE (Integrated Development Environment) understand your code much better than a text editor. It usually provides features such as build automation, code linting, testing and debugging.

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which is correct statement in printing hello world in python.

print("Hello, world!")

System.out.print("Hello, world!");

Console.Write("Hello World")

WriteLN("Hello, world!")

Answer explanation

The print() function is used to print text or other values to the console. In this case, we are passing the string "hello world" to the print() function, which will then print it to the console.

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

  1. What is the correct way to write a variable to store the value of 10?

10

int value=10

a=10

char 10

Answer explanation

The first step is to choose a name for the variable. In this case, we have chosen the name number. The next step is to assign the value of 10 to the variable. This is done using the equal sign (=).

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

  1. What is the answer to print (12/6)?

10

5

2

3

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?