
python_basic_input_output_operators

Quiz
•
Computers
•
12th Grade
•
Hard
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
Similar Resources on Wayground
15 questions
C - Language Quiz

Quiz
•
12th Grade
18 questions
FOR and WHILE loop in Python

Quiz
•
9th - 12th Grade
20 questions
PLTW CSE Essentials - Review for EOC #1

Quiz
•
9th - 12th Grade
20 questions
structure de données rappel 1

Quiz
•
12th Grade
10 questions
แบบทดสอบที่ 5 เรื่องการรับค่าในภาษาไพทอน (รายกลุ่ม)

Quiz
•
7th Grade - University
16 questions
Lesson Plan 2.2

Quiz
•
9th - 12th Grade
20 questions
คำสั่งพื้นฐานในภาษา Python (เก็บคะแนนครั้งที่ 2)

Quiz
•
12th Grade
20 questions
Unit 3 Python TEST

Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade