-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
- Which of the following symbol are used for comment in python ?
A. #
B. " " "
C. A and B
D. None of the above. - Most of the programming languages like C, C++, and Java use braces { } to define a block of code. Python, however, uses ________.
A. Indentation
B.Semi-Colon
C.Parentheses
D.None of the above - Which of the following will give error?
A. a=b=c=1
B. a,b,c=1
C. a,b,c=1, "Hello", 1.5
D. None of the above - Which one of the following is correct way of declaring and initialising a variable, x with value 5?
A. int x
x=5
B. int x=5
C. x=5
D.declare x=5 - In Python, a variable must be declared before it is assigned a value:
A. True.
B. False
Metadata
Metadata
Assignees
Labels
No labels