python_basic_input_output_operators

python_basic_input_output_operators

12th Grade

15 Qs

quiz-placeholder

Similar activities

Bài tập bài 4: sử dụng biến và hằng trong chương trình

Bài tập bài 4: sử dụng biến và hằng trong chương trình

KG - 12th Grade

10 Qs

Python

Python

12th Grade

10 Qs

Java Variables, Input and Output

Java Variables, Input and Output

10th - 12th Grade

15 Qs

Basic Python Concepts and Console Interaction

Basic Python Concepts and Console Interaction

11th - 12th Grade

20 Qs

Python Interaction

Python Interaction

9th Grade - Professional Development

20 Qs

CSP-A114 Quiz

CSP-A114 Quiz

9th - 12th Grade

12 Qs

Coding Basics

Coding Basics

9th - 12th Grade

20 Qs

Flowchart

Flowchart

12th Grade

20 Qs

python_basic_input_output_operators

python_basic_input_output_operators

Assessment

Quiz

Computers

12th Grade

Hard

Created by

sudha reddy

Used 10+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to read this input which are given in same line

5@9@7@2

a,b,c,d=map(int,input().split('@'))

a,b,c,d=map(int,input().split(','))

a,b,c,d=int(input().split('@'))

a=int(input())

b=int(input())

c=int(input())

d=int(input())

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to read the input given as this

5

7

3

a,b,c=map(int,input().split())

a=int(input().split())

a=map(int,input().split())

a=int(input())

b=int(input())

c=int(input())

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

predict the output of the following code where a=5 b=6

a+=b+10

b=b<<3

a=a>>2

c=a&b

print(a,b,c)

0 48 5

5 48 0

5 40 0

48 5 15

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

predict the output of the following code where a=15 b=10

a+=2

b=b>>1

c=a&b

a=15^c

c=~c+b

b+=1

print(a,b,c)

6 3 14

6 6 6

14 6 3

14 14 3

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

predict the output of the following code where a=15, b=10

a=a^b

b=a^b

a=a^b

print(a,b)

15 10

10 15

20 15

15 20

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

predict the output of the following code for the input as 14.3 and 5

x=eval(input())

y=eval(input())

print(x+y)

20

19

19.3

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

predict the output of the following code

x=10

y=4.332

z=2.341

print("%.2f %.2f %.2f"%(x,y,z))

10.00 4.34 2.35

Error

10 4 2

10.00 4.33 2.34

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?