Conditional statement

Conditional statement

Professional Development

15 Qs

quiz-placeholder

Similar activities

Grammatica 2C recupero verifica

Grammatica 2C recupero verifica

Professional Development

15 Qs

Les objets dans le sac

Les objets dans le sac

KG - Professional Development

15 Qs

¡Comprendo el ABC y los NÚMEROS en lengua de señas!

¡Comprendo el ABC y los NÚMEROS en lengua de señas!

Professional Development

10 Qs

Irodori Kanji Meaning and Usage Elementary1 L17

Irodori Kanji Meaning and Usage Elementary1 L17

University - Professional Development

11 Qs

Lesson 1 Pinyin and Tones

Lesson 1 Pinyin and Tones

Professional Development

10 Qs

Ujian Formatif 1

Ujian Formatif 1

1st Grade - Professional Development

10 Qs

Current Affairs/General Knowledge

Current Affairs/General Knowledge

Professional Development

11 Qs

Barang-barang di kantor

Barang-barang di kantor

KG - Professional Development

10 Qs

Conditional statement

Conditional statement

Assessment

Quiz

World Languages

Professional Development

Practice Problem

Medium

Created by

KEERTHI BADUGU

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q1. Which function is used to take input from the user in Python?

A) scanf()

B) input()

C) cin>>

D) get()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q2. What is the output of the following code?

print("Hello", "World")

A) HelloWorld

B) Hello, World

C) Hello World

D) Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q3. What is the default separator used by print() in Python?

A) Comma (,)

B) Newline (\n)

C) Space ( )

D) Tab (\t)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q4. How do you display output in Python without a newline?

A) print(end='')

B)print(no_newline=True)

C) echo()

D) print.line()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q5. What is the output of:

x = input("Enter a number: ") print(x * 2)

If input is 3, what will be printed?
A) 6
B) 33
C) 9
D) Error

A) 6

B) 33

C) 9

D) Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q6. Which of the following will correctly convert input to integer?

A) int(input())

B) input(int())

C) eval(input())

D) float(input())

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Q7. What does the following code do?

a = input("Enter name: ") print("Hello", a)

A) Greets the user by name

B) Prints Hello only

C) Error

D) None of the above

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?