What does print do in most programming languages like Python?, Sends data to a file, Reads a value from the user, Displays text, Creates a new variable, Which of the following is a valid variable name in Python?, 1stValue, name-1, name_1, full name, What is the value of x after this code runs? x = 5 , x = x + 3, 15, 3, 8, 5, Which operator is used to compare two values, rather than assign one?, =, ==, <, >, What will this code output? for i in range(3): print("Hello"), Prints “Hello” forever, Prints “Hello” three times, Prints “Hello” twice, Prints “Hello” once, What is the main purpose of an if statement in a program?, As Reusable functions, To repeat a task a fixed number of times, To execute code only when certain conditions are met, To display output to the user, What will this code print? x = 10, if x > 5: print("A"); else: print("B");, A, B, Nothing, Crashout, What is the output of this code? x = 2, y = 3, print(x ** y), 5, 6, 8, 9, What is the output of this code? x = 10, y = 5, print( x // y + x % y ), 2, 4, 10, 11, Which statement correctly defines a function that returns the square of a number?, def square(x): print ( x * x ), def square(x): return x * x, def square(): return x * x, square = lambda: x * x.
0%
Programming 101
શેર કરો
શેર કરો
શેર કરો
Sy41
દ્વારા
સામગ્રીમાં ફેરફાર કરો
પ્રિન્ટ
એમ્બેડ
વધુ
સોંપણીઓ
લીડરબોર્ડ
વધુ બતાવો
ઓછું બતાવો
આ લીડરબોર્ડ હાલમાં ખાનગી છે. તેને સાર્વજનિક કરવા માટે
શેર
પર ક્લિક કરો.
આ લીડરબોર્ડને સ્ત્રોત નિર્માતા દ્વારા નિષ્ક્રિય કરવામાં આવ્યું છે.
આ લીડરબોર્ડ નિષ્ક્રિય છે કારણ કે તમારા વિકલ્પો સ્ત્રોત નિર્માતા કરતા અલગ છે.
વિકલ્પો પાછા લાવો
ક્વિઝ
એ ઓપન-એન્ડેડ ટેમ્પલેટ છે. તે લીડરબોર્ડ માટે સ્કોર જનરેટ કરતું નથી.
લોગ-ઇન જરૂરી છે
દૃશ્યમાન શૈલી
ફોન્ટ્સ
સબસ્ક્રિપ્શન જરૂરી
વિકલ્પો
ટેમ્પલેટ બદલો
બધું બતાવો
પ્રવૃત્તિ રમત દરમ્યાન વધુ ફોરમેટ દેખાશે.
)
પરિણામો ખોલો
કડીની નકલ કરો
ક્યુઆર કોડ
કાઢી નાંખો
આપોઆપ સંગ્રહ થયેલ છે:
?