python

python

Professional Development

6 Qs

quiz-placeholder

Similar activities

Python Training Day-5 Quiz-5

Python Training Day-5 Quiz-5

Professional Development

10 Qs

c program -basic

c program -basic

Professional Development

10 Qs

Basic Python Data Types

Basic Python Data Types

Professional Development

8 Qs

C Language Basic Quiz

C Language Basic Quiz

7th Grade - Professional Development

10 Qs

Introducción  a la programación.

Introducción a la programación.

Professional Development

5 Qs

Quizzuizui

Quizzuizui

Professional Development

10 Qs

Demo C programming

Demo C programming

Professional Development

10 Qs

Swift Programming

Swift Programming

University - Professional Development

11 Qs

python

python

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Anandhi Technology

Used 1+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following code snippet?

print(type(5 / 2))
print(type(5 // 2))


float and int

int and float

float and float

int and int

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code snippet?

count = 0
while(True):
   if count % 3 == 0:
       print(count, end = " ")
   if(count > 15):
       break;
   count += 1

0,1,2,3,...15

Infinite loop

0,3,6,9,12,15

0,3,6,9,12

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following Python code snippet?

for i in [1, 2, 3, 4][::-1]:
    print (i)

1 2 3 4

0 1 2 3

4 3 2 1

0 2 4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python program?

z=set('abc')
z.add('san')
z.update(set(['p', 'q']))
z

{'abc','p','q','san'}

{'a','b','c','p','q','san'}

{'a','b','c','p','q','s','a','n'}

none

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. x = ['XX', 'YY']  

  2. for i in x:  

  3.     i.lower()  

  4. print(x)  

['xx','yy']

xx

yy

XX

YY

['XX','YY']

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

>>> "welcometocauvery"[5:]  

welcometocauvery

welco

mtocauvery

cauve