-
Notifications
You must be signed in to change notification settings - Fork 36
/
Questions.txt
290 lines (226 loc) · 6.59 KB
/
Questions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
main
Note: Please answer ONLY one question from the unanswered questions in the Answers.txt file.
UNANSWERED QUESTIONS:
q1: Initilize a variable in python
Ans: x=5; // x is for int
y="Hello";// y is for string
q2: Take input from user in python
q3: Make a Python program that prints your name.
print("ENTER YOUR NAME: ")
Name = input()
print("HEY, ",Name,":):")
q4: Make a program that displays several numbers.
Ans: for(let i = 0 ; i<=10 ; i++) {console.log("The number is ",i)}
q5: Make a program that solves and shows the summation of 64 + 32.
Ans: let a = 64;
let b = 32;
console.log( `The sum of a + b is ${a + b} `}
q6: Make a program that asks the users preferred programming language.
Answer: language = input()
print("Your Choice: " + language) # OUTPUT: Your Choice: whatever you give input.
or you can write in this way too
language = input("Python or Java: ")
print("Your Choice: " + language) # OUTPUT: Your Choice: Python or
# OUTPUT: Your Choice: Java
q7: What is an expression?
q8: What is a variable?
q9: What is this (**) operator used for in python
Answer: in python this (**) is the exponentiation operator.
It is used to raise the first operand to power of second.
q10: What is a syntax error?
q11: How to add multi-line comments in python
q12: What is the difference between a parameter and an argument?
q13: What is scope?
q14: Can Python be used for robotics?
q: Take inout from user in python
q: Make a Python program that prints your name.
Ans: name = input("Enter your name: ")
print( name )
q: Make a program that displays several numbers.
q: Make a program that solves and shows the summation of 64 + 32.
a:
num1 = 64
num2 = 32
sum = num1 + num2
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
q: Make a program that asks the users preferred programming language.
q: What is an expression?
q: What is a variable?
q: Do we have limit in specifying parameters in python?
q: What is this (**) operator used for in python
q: What is a syntax error?
q: How to add multi-line comments in python
q: What is the difference between a parameter and an argument?
q: What is scope?
q: Can Python be used for robotics?
---------------------------------------------------------------------------
QUESTION:1
Are terminators necessary in Python?
Ans: No
QUESTION:2
is python is object oriented language??
Ans:yes
QUESTION:3
What Python libraries do data scientists use the most?
Ans: TensorFlow, NumPy, SciPy, Matplotlib, Pandas,Keras
QUESTION:4
what keyword is used for making a function in Python?
Ans: def
QUESTION:6
Is python indent dependent?
Ans: yes
QUESTION:9
What IDE do you use for Python?
Ans: PyCharm
=======
QUESTION:1
Are terminators necessary in Python?
Ans: No
QUESTION:2
What Python libraries do data scientists use the most?
Pandas TensorFlow NumPy
QUESTION:3
what keyword is used for making a function in Python?
main
Ans: def
Def
main
QUESTION:4
Which python libraries are used in AI/ML?
TensorFlow
QUESTION:5
Is python indent dependent?
main
Ans: Yes, python is indent dependent.
Yes
main
QUESTION:10
Is python open source language?
Answer: Python is open source software.
main
======
QUESTION:7
Mention 3 important advantages of Python.
1) Open Source with a Vibrant Community.
2) Problems with Threading.
3) Great for Prototypes - You Can Do More with Less Code
patch-4
QUESTION:10
Is python open source language?
ans: Yes
main
==========
QUESTION:1
Are terminators necessary in Python?
Answer: Nope
QUESTION:2
What Python libraries do data scientists use the most?
Answer: TensorFlow
QUESTION:3
what keyword is used for making a function in Python?
Answer: Functions start with "def" and the function name afterwards along with parenthesis "()" and colon ":" .
def function_name():
QUESTION:4
Which python libraries are used in AI/ML?
ans:PyTorch
QUESTION:5
Is python indent dependent?
Ans: yes
=======
QUESTION:1
Are terminators necessary in Python?
Ans: No
idkk
QUESTION:2
What Python libraries do data scientists use the most?
Pandas TensorFlow NumPy
idkk
QUESTION:3
what keyword is used for making a function in Python?
main
Ans: def
idkk
Def
main
QUESTION:4
Which python libraries are used in AI/ML?
TensorFlow
idkk
QUESTION:5
Is python indent dependent?
main
Ans: Yes, python is indent dependent.
Yes
QUESTION:6
Print "HACKERTOBEFEST is AN AMAZING CHALLENGE" in Python.
Answer: To show things on the screen in python we use the print function
example: print("Some String")
for the example you gave: print("HACKERTOBEFEST is AN AMAZING CHALLENGE").
QUESTION:8
What IDE do you use for Python?
textpad
Pycharm
Visual Studio Code
IDE python
QUESTION:9
Name Google's ONLINE IDE to run Python scripts.
Answer: replit.com and onlinegdb.com are the best
QUESTION:10
Is python open source language?
Answer: Python is open source software.
==============
QUESTION:1
Are terminators necessary in Python?
Answer: Nope
QUESTION:2
What Python libraries do data scientists use the most?
Answer: TensorFlow
Panda
QUESTION:3
what keyword is used for making a function in Python?
Answer: Functions start with "def" and the function name afterwards along with parenthesis "()" and colon ":" .
Example: def function_name():
QUESTION:4
Which python libraries are used in AI/ML?
Answer: TensorFlow
QUESTION:5
Is python indent dependent?
main
Answer: Yes, it's indent dependent.
QUESTION:6
Print "HACKERTOBEFEST is AN AMAZING CHALLENGE" in Python.
Answer: print("HACKERTOBEFEST is AN AMAZING CHALLENGE")
QUESTION:7
Mention 3 important advantages of Python.
Answer:
1. Extensive Support Libraries
2.Integration Feature
3.Improved Programmer’s Productivity
QUESTION:8
What IDE do you use for Python?
Answer: Sublime Text 3
QUESTION:9
Name Google's ONLINE IDE to run Python scripts.
Answer: Google Cloud Shell
QUESTION:10
Is python open source language?
Answer: Yes
QUESTION:11
Are terminators necessary in Python?
Ans: No
QUESTION:12
what is the latest version of Python?
Ans: Python 3.9.0, documentation released on 5 October 2020.
hellonice tomeet you
Qusetion 13:
q: What is this (**) operator used for in python
Ans: Performs exponential (power) calculation on operators
QUESTION 14:
q: What is this (**) operator used for in python
Ans: **kwargs - The special syntax **kwargs in function definitions in python is used to pass a keyworded, variable-length argument list.
QUESTION 15:
q: How to add multi-line comments in python
Ans: A multi-line comment can be added by using the delimiter (""") on each end of the comment.
QUESTION 16:
q: What is scope
Ans: Accessibility of the Python Object.