Computer Fundamental MCQs - Introduction to Computer

Computer Fundamental MCQs
Computer Fundamental MCQs - Introduction to Computer

Computer Fundamental MCQs


Python में कौन-सा फंक्शन किसी स्ट्रिंग में उपस्थित वर्णों की संख्या बताता है?

Options:

  1. Length
  2. Len
  3. L
  4. Numchar

Right Answer: Len

Python में len() एक बिल्ट-इन फंक्शन है जिसका उपयोग किसी स्ट्रिंग, सूची, ट्यूपल, डिक्शनरी या अन्य संग्रह (Collection) की लंबाई ज्ञात करने के लिए किया जाता है। यदि इसे स्ट्रिंग पर लागू किया जाए, तो यह उसमें मौजूद कुल वर्णों (Characters) की संख्या लौटाता है, जिसमें स्पेस भी शामिल होते हैं। उदाहरण के लिए len("Computer") का परिणाम 8 होगा। यह Python के सबसे अधिक उपयोग किए जाने वाले फंक्शनों में से एक है।

This question is part of Computer Fundamental MCQs - Introduction to Computer, which has 30 practice questions with answers.

Published: | Last Updated:
Deepak - Educational Content Creator

Written by Deepak

Educational Content Creator

I am an educational content creator dedicated to making learning simple, engaging, and accessible for students preparing for competitive exams. He specializes in creating high-quality study materials, including notes, multiple-choice questions (MCQs), previous year question papers, practice tests, and exam-oriented resources.

Experience: 10+ years in Education and Competitive Exam Content Creator