- Details
- Parent Category: Engineering Assignments' Solutions
We Helped With This Engineering Homework: Have A Similar One?
SOLVED

Assignment Image
![Other Assignment Description Image [Solution]](/images_solved/280996/1/im.webp)
%20Questions.par
results
> Options ✓
< >
1 Which of the following data types are not supported in Python?
2 Which of the following data types are not supported in Python?
3 What is the output of print(str) if str = 'Hello World!'?
4 What is the output of print(str[0]) if str = 'Hello World!'?
5 What is the output of print(str[2:5]) if str = 'Hello World!'?
6 What is the output of print(str[2:]) if str = 'Hello World!'?
7 What is the output of print(str * 2) if str = 'Hello World!'?
8 What is the output of print(list) if list = ['abcd', 786, 2.23]?
9 What is the output of print(list[0]) if list = ['abcd', 786, 2.23 ]?
10 What is the output of print (list[1:3]) if list = ['abcd', 786, 2.23]?
11 What is the output of print (list[2:]) if list = ['abcd', 786, 2.23 ]?
12 What is the output of print (tinylist * 2) if tinylist = [123, 'john']?
13 Which of the following is correct about tuples in Python?
14 What is the output of print(myTuple) if myTuple = ('abcd',786,2.23)?
15 What is the output of print (myTuple[1:3]) if myTuple = ('abcd',786,2.23)?
16 What is the output of print (myTuple[0]) if myTuple = ('abcd',786,2.23)?
17 Which function obtains all the keys from a dictionary?
18 Which function obtains all the values from a dictionary?
19 Which function converts a string to an int ?
20 Which function converts a string to a long?
21 Which function converts a string to a float?
22 Which function converts a string to a tuple ?
23 Which function converts a string to a list?
24 Which function converts a sequence of tuples to dictionary?
25 Which function converts an integer to a character?
26 Which function converts an integer to an unicode character ?
27 Which function converts a single character to its integer value?
28 Which function converts an integer to hexadecimal string ?
29 Which operator performs exponential power calculation on operands?
30 Which operator performs the division where the result an integer?
31 Which operator evaluates True if the both operands point to the same object?
32 Which operator evaluates True if it does not find a variable sequence ?
33 Which statement terminates and transfers to the statement after the loop?
34 Which statement skips the loop and immediately retests prior to reiterating?
35 Which statement is used when when you do not want any code to execute?
36 Which function returns a random item from a list, tuple, or string?
37 Which function returns a randomly selected element from range?
38 Which function returns a random float between 0 and 1?
39 Which function sets the starting value used in generating random numbers?
40 Which function randomizes the items of a list in place?
8
WE
K
Assignment Image
![Other Assignment Description Image [Solution]](/images_solved/280996/2/im.webp)
No results
< > Options ✓
52 Which function removes all leading whitespace in string?
53 Which function returns the max alphabetical character from the string str?
54 Which function returns the min alphabetical character from the string str?
55 Which function replaces old substring in string with new string?
56 What is the output of [1, 2, 3] + [4, 5, 6]?
57 What is the output of ['Hi!'] * 4?
58 What is the output of 3 in [1, 2, 3]?
59 What is the output of L[2] if L = [1,2,3]?
60 What is the output of L[-2] if L = [1,2,3]?
61 What is the output of L[1:] if L = [1,2,3]?
62 What is the function that compares elements of both lists?
63 What is the function that returns the lowest index in list that obj appears?
64 What is the function that inserts an object at given index in a list?
65 What is the function that removes last object from a list?
66 What is the function that removes an object from a list?
67 What is the function that reverses objects of list in place?
68 What is the value of the counter after counter +=1 ?
69 Why is does 74.95*.1 evaluate to 7.495000000000001 instead of 7.495?
70 What does the *= operator perform?
71 Which is not a compound assignment operator?
72 What is the result of 25//4
73 Which operator has highest precedence?
74 What is the result of the operation 3 + 4 *5
75 What is the result of 25 % 4
76 What is the meaning of
77 What is the result of "Type "x" to exit"?
78 What is displayed with print(1,2,3,4, sep='|')?
79 What error occurs by adding score=input('Enter a number'), to 10?
80 What exception is thrown by z = x+y, if x = 15 and y='5'?
81 How to add x and y if x is an integer type, and y is a string?
82 What is the result of 4 > 5?
83 What is the result of 3//2>4?
84 What is the result of "Fish" == "Fish"
85 What is the result of "fish" == "Fish"
86 What is the result of 4 == 5 and 3 > 2
87 What is the result of 4 != 4 or 4 < 2?
88 What is the result of True and True and True and False
89 What is the result True or False
90 What is the result of "apple" < "Apple" ?
91 What is the result of "App"<"Apple" ?
92 What is the result of "1" < "5"
"10" C
e
W