Top 20 Multiple Choice Questions for print method in Python

1. Python में print() function का मुख्य काम क्या है?
a) Data को encrypt करना
b) Output को console पर दिखाना
c) Variable को hide करना
d) Graph बनाना
उत्तर: b) Output को console पर दिखाना (Displays output on screen)
________________________________________
2. What will be the output of this?
print(“Python”, “+”, “Programming”)
a) Python Programming
b) Python + Programming
c) PythonProgramming
d) Error
उत्तर: b) Python + Programming
_______________________________________
3. print(“A”, “B”, sep=”-“) का आउटपुट क्या होगा?
a) AB
b) A-B
c) A B
d) -AB
उत्तर: b) A-B
________________________________________
4. `print()` में `end` parameter का इस्तेमाल क्यों किया जाता है?
a) Screen clear करने के लिए
b) Execution रोकने के लिए
c) Line के अंत में custom text जोड़ने के लिए
d) Output bold करने के लिए
उत्तर: c) Line के अंत में custom text जोड़ने के लिए
________________________________________
5. What will `print(“Hi”, end=”!”)` display?
a) Hi
b) Hi!
c) !Hi
d) Error
उत्तर: b) Hi!
____________________________________
6. Python में newline character कौन-सा है?
a) \n
b) /n
c) \\n
d) newline()
उत्तर:a) \n
_____________________________________
7. नीचे दिए गए कोड का आउटपुट क्या होगा?
print(“One”)
print(“Two”)
a) One Two
b) One\nTwo
c) One
Two
d) Error
उत्तर: c) One
Two
________________________________________
8. What will happen if you write print(Hello) (without quotes)?
a) Hello print होगा
b) Error आएगा
c) Output: Hello
d) Variable Hello की value print होगी
उत्तर: b) Error आएगा (Because Hello is not defined)
________________________________________
9. print(“3” + “4”) का आउटपुट क्या होगा?
a) 7
b) 34
c) Error
d) 12
उत्तर: b) 34 (string concatenation)
________________________________________
10. print(3 + 4) का आउटपुट क्या होगा?
a) 34
b) 7
c) Error
d) ‘3’ + ‘4’
उत्तर: b) 7
________________________________________
11. What is the default value of sep in print()?
print() में sep का default मान क्या है?
a) “”
b) “,”
c) ” ” (space)
d) None
उत्तर: c) ” ” (space)
________________________________________
12. नीचे दिए गए कोड में end क्या कर रहा है?
print(“A”, end=”-“)
print(“B”)
a) Nothing special
b) A और B को next line में print करेगा
c) A-B को एक ही line में दिखाएगा
d) Error देगा
उत्तर: c) A-B को एक ही line में दिखाएगा
________________________________________
13. print() को बिना किसी argument के use करने पर क्या होता है?
a) Error आता है
b) कुछ नहीं होता
c) खाली लाइन (blank line) print होती है
d) None
उत्तर: c) खाली लाइन (blank line) print होती है
________________________________________
14. Can print() handle multiple data types together?
क्या print() एक साथ string, int, और float को संभाल सकता है?
a) हाँ
b) नहीं
उत्तर: a) हाँ
________________________________________
15. नीचे दिए गए कोड का उद्देश्य क्या है?
print(“Sum is:”, 3+4)
a) केवल 3+4 print करना
b) “Sum is: 7” print करना
c) Error देना
d) सिर्फ string print करना
उत्तर: b) “Sum is: 7” print करना
________________________________________
16. How do you avoid newlines between prints?
अगर आप दो print स्टेटमेंट को एक ही लाइन में दिखाना चाहते हैं तो?
a) Use end=””
b) Use \n
c) Use tab
d) It’s not possible
उत्तर: a) Use end=””
________________________________________
17. इस कोड का आउटपुट क्या होगा?
print(“Python”, end=” “)
print(“is awesome!”)
a) Pythonis awesome!
b) Python
is awesome!
c) Python is awesome!
d) Error
उत्तर: c) Python is awesome!
________________________________________
18. Python में print() का output कहाँ जाता है?
a) Monitor के पीछे
b) Console / Terminal पर
c) Memory में store होता है
d) USB में चला जाता है
उत्तर: b) Console / Terminal पर
________________________________________
19. What will be printed by this code?
print(“Name:”, “Python”)
a) Name:Python
b) Name * Python
c) NamePython
d) Error
उत्तर: a) Name:Python
________________________________________
20. नीचे दिए गए code से क्या होगा?
print(“Learn”, “Python”, “With”, “Fun”, sep=”-“, end=”!”)
a) Learn Python With Fun
b) Learn-Python-With-Fun!
c) Learn-Python-With-Fun
d) Learn-Python-With-Fun
उत्तर: b) Learn-Python-With-Fun!
MCQ Questions for Class 11 Computer Science print in Python
MCQ Questions for Class 12 Computer Science print in Python
python print function mcq
mcq on print statement in python
python print() mcq questions
python print output questions
python print function objective questions
multiple choice questions on print function in python
python print statement questions with answers
print statement mcq for beginners in python
python print output mcq for pgdca exam
python print output mcq for dca exam
python print function mcq for bca students
important mcq on python print function
python output based questions print
python print format mcq
python print newline mcq
mcq on python print and input statements
Click Here for Important Question-Answer – Computer
Click Here for Important Question-Answer – Indian Geography
Click Here for Important Question-Answer – World Geography
Click Here for Important Question-Answer – Indian History
Click Here for Important Question-Answer – Economy
Click Here To Go To Home Page and Get More Knowledge