-
Which of the following is not a token?
A)
Keywords
done
clear
B)
Operators
done
clear
C)
Punctuators
done
clear
D)
Comments
done
clear
View Answer play_arrow
-
Which of the following is not a valid identifier?
A)
My file
done
clear
B)
IF
done
clear
C)
FILE_13
done
clear
D)
29_FILE
done
clear
View Answer play_arrow
-
.........................is a special literal in Python
A)
Null
done
clear
B)
Not
done
clear
C)
None
done
clear
D)
none of the above
done
clear
View Answer play_arrow
-
A variable pointing to a value of a certain type, can be made to point to a value of different type. This is called.................
A)
Type Casting
done
clear
B)
Static Typing
done
clear
C)
Dynamic Typing
done
clear
D)
none of the above
done
clear
View Answer play_arrow
-
.........................conversion is user defined conversion that forces and expression to be of specific type.
A)
Implicit
done
clear
B)
Explicit
done
clear
C)
both a and b
done
clear
D)
none of the above
done
clear
View Answer play_arrow
-
What will be the output of the given statement, if you will enter 9 a=b=int(input("Enter a Number"))print(a, b)
A)
9 9
done
clear
B)
9 0
done
clear
C)
Generate error
done
clear
D)
none of the above
done
clear
View Answer play_arrow
-
What will be the output of the given statement, if you will enter 9 7 a,b=int(input("Enter a Number")),int(input("Enter second number")) print(a.b)
A)
9 7
done
clear
B)
9 0
done
clear
C)
Generate error
done
clear
D)
none of the above
done
clear
View Answer play_arrow
-
The ................ statement is used to terminate the loop or statement in which it is present.
A)
pass
done
clear
B)
break
done
clear
C)
continue
done
clear
D)
all of the above
done
clear
View Answer play_arrow
-
The ............. statement is opposite to the break statement, instead of terminating the loop, it forces to execute the next iteration of the loop.
A)
pass
done
clear
B)
break
done
clear
C)
continue
done
clear
D)
all of the above
done
clear
View Answer play_arrow
-
The
.............. statement in Python is used when a statement is required syntactically but you do not want any command or code to execute.
A)
pass
done
clear
B)
break
done
clear
C)
continue
done
clear
D)
all of the above
done
clear
View Answer play_arrow
-
In nested loop, a break statement terminates all the nested loop.
A)
True
done
clear
B)
False
done
clear
C)
None of these
done
clear
D)
All of these
done
clear
View Answer play_arrow
-
Which of the following is/are components(s) of variable?
A)
Id
done
clear
B)
value
done
clear
C)
type
done
clear
D)
all of the above
done
clear
View Answer play_arrow
-
By using
.................. function you can check the value of a variable
A)
id ()
done
clear
B)
type ()
done
clear
C)
print ()
done
clear
D)
all of the above
done
clear
View Answer play_arrow
-
Range () method is used to specify the length of a for-in loop.
A)
True
done
clear
B)
False
done
clear
C)
None of these
done
clear
D)
All of these
done
clear
View Answer play_arrow
-
What will be the output of the given statement, if value of n is 6
|
|
A)
Buzz Fizz!
done
clear
B)
Buzz
done
clear
C)
Fizz
done
clear
D)
Buzz Fizz! Buzz Fizz!
done
clear
View Answer play_arrow
-
What will be the output of the given statement, if value of n is 6
|
|
A)
Buzz Fizz!
done
clear
B)
Buzz
done
clear
C)
Fizz
done
clear
D)
Buzz Fizz! Buzz Fizz!
done
clear
View Answer play_arrow
-
What will be the output of the given statement, if value of n is 6
|
|
A)
Buzz Fizz!
done
clear
B)
Buzz
done
clear
C)
Fizz
done
clear
D)
Buzz Fizz! Buzz Fizz!
done
clear
View Answer play_arrow
-
What will be the output of the given statement
|
|
A)
12
done
clear
B)
10
done
clear
C)
11
done
clear
D)
None of the above
done
clear
View Answer play_arrow
-
What will be the output of the given statement
|
|
A)
55
done
clear
B)
45
done
clear
C)
60
done
clear
D)
65
done
clear
View Answer play_arrow
-
Creating individual values from a tuple's elements is called........................
A)
Collection
done
clear
B)
Unpacking
done
clear
C)
Packing
done
clear
D)
None of the above
done
clear
View Answer play_arrow
-
Read the following statements, and find the output:
|
|
A)
8
done
clear
B)
3
done
clear
C)
4
done
clear
D)
None of the above
done
clear
View Answer play_arrow
-
What will be the output of the given statement, if the value of msg is "study4u@com"
|
|
A)
STUDY**U**COM
done
clear
B)
STUDYUCOM
done
clear
C)
Generate Error
done
clear
D)
None of the above
done
clear
View Answer play_arrow
-
Read the following statements, and find the output:
|
|
A)
7 7
done
clear
B)
28 4
done
clear
C)
4 28
done
clear
D)
25 25
done
clear
View Answer play_arrow
-
Read the following statements, and find the output:
|
|
A)
[25, 7, 12, 16, 5, 4, 28]
done
clear
B)
[12, 16, 5, 4, 28, 25, 7]
done
clear
C)
[28, 25, 7, 12, 16, 5, 4]
done
clear
D)
None of the above
done
clear
View Answer play_arrow
-
Read the following statements, and find the output:
|
|
A)
[12, 7, 5, 16, 28, 4, 30, 25]
done
clear
B)
[12, 7, 5, 16, 28, 4, 30, 25]
done
clear
C)
Generate Error
done
clear
D)
None of the above
done
clear
View Answer play_arrow