St. Britto Hr. Sec. School - Madurai
12th Computer Science Weekly Test - 1 ( Python -Variables and Operators )-Aug 2020
-
-
-
-
-
-
-
-
-
-
-
-
-
-
What are the uses of logical operator? Name the operators.
-
Write a note on relational or comparative operator.
-
Write a Python program to get the following
output.
Output:
Enter Number 1 : 50
Enter Number 2 : 50
The sum of 50 and 50 is 100 -
Write a short note on comment statement.
(or)
Write a note on statement which are ignored by the Python interpreter. -
Explain Ternary operator with examples.
-
-
Identify the type of literals.
(i) OX13B (ii) i+34j (iii) 12e05
(iv) 0346 -
Fill in the blanks
(i) ___________statements are ignored by Python interpreter.
(ii) The value of an operator used is called___________.
(iii) 100//30 =___________.
-
-
How will you represent Octal, hexadecimal and long integer data?
-
-
Write the output for the following python
code.
x=10
X+=20
print ("The x += 20 is =",x)
X-=5
print ("The x -= 5 is= ",x)
x*=5
print ("The x *= 5 is= ",x)
x/=2
print ("The x /= 2 is = ",x)
x%=3
print ("The x %= 3 is= ",x)
x**=2
print ("The x **= 2 is = ",x)
x//=3
print ("The x //= 3 is= ",x) -
Explain input() and print() functions with examples.
-
-
Discuss in detail about Tokens in Python
-
Describe in detail the procedure Script mode programming