🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

MCQs on Python

Ques 51

DSSSB TGT -2023

पायथन भाषा में निम्नलिखित में से कौन सा प्रकार रूपांतरण फ़ंक्शन एक वर्ण को पूर्णांक में बदलने के लिए उपयोग किया जाता है?

Which of the following type conversion function in the Python language , is use d to convert a character into an integer?

[A] tuple ( )

[B] dict ( )

[C] set ( )

[D] ord ( )

Correct Answer : ord ( )


Ques 52

DSSSB TGT -2023

पायथन भाषा में, ‘स्ट्रिप ()’ फ़ंक्शन के लिए निम्नलिखित में से कौन सा सही है?

In Python language , which of the following is correct for ‘strip ( )’ function?

[A] In returns the string by removing trailing and leading white spaces

[B] It returns a list from the string depending upon the delimiter that we specify

[C] It returns the power of values passed

[D] It returns the string with the first character in upper case and lowering the casef rest of the string

Correct Answer : In returns the string by removing trailing and leading white spaces


Ques 53

DSSSB TGT -2023

पायथन भाषा में, ‘स्ट्रिप ()’ फ़ंक्शन के लिए निम्नलिखित में से कौन सा सही है?

In Python language , which of the following is correct for ‘strip ( )’ function?

[A] In returns the string by removing trailing and leading white spaces

[B] It returns a list from the string depending upon the delimiter that we specify

[C] It returns the power of values passed

[D] It returns the string with the first character in upper case and lowering the case rest of the string

Correct Answer : In returns the string by removing trailing and leading white spaces


Ques 54

DSSSB TGT -2023

पायथन भाषा में, सूची के अंत में एक तत्व जोड़ने के लिए सूचियों की निम्नलिखित में से किस विधि का उपयोग किया जाता है?

In Python language , which of the following method of lists is use d to add an element to the end of the list?

[A] index ( )

[B] sort ( )

[C] pop ( )

[D] append ( )

Correct Answer : append ( )


Ques 55

DSSSB TGT -2023

निम्नलिखित पायथन कोड के लिए सही आउटपुट चुनें।

Choose the correct output for the following Python code .

tuple _var_mix = (“Example”, 1, “Tuple”)
print (tuple _var_mix)

[A] {Example, 1, Tuple}

[B] (Example, 1, tuple)

[C] (‘Example’, 1, ‘Tuple’)

[D] [Example, 1, ‘Tuple’]

Correct Answer : (‘Example’, 1, ‘Tuple’)


Ques 56

DSSSB TGT -2023

पायथन भाषा में, फ़ाइल खोलने के लिए निम्नलिखित में से कौन सा मोड फ़ाइल को पढ़ने और लिखने दोनों के लिए खोलता है और फ़ाइल पॉइंटर को फ़ाइल की शुरुआत में रखा जाएगा?

In Python language , which of following mode for opening the file , opens the file for both reading and writing and file pointe r will be place d at the start of the file ?

[A] ab

[B] rb

[C] r+

[D] a+

Correct Answer : r+


Ques 57

DSSSB TGT -2023

शब्दकोश में मान ______ हो सकता है लेकिन शब्दकोश में कुंजियाँ ______ होनी चाहिएपाइथन प्रोग्रामिंग भाषा में

The values in a dictionary can be ______ but the keys in the dictionary should be ______ in Python programming languages.

[A] repeated, repeated

[B] repeated, unique

[C] unique, repeated

[D] unique, unique

Correct Answer : repeated, unique


Ques 58

DSSSB TGT -2023

संबंधपरक मॉडल में सामान्यीकरण का निम्नलिखित में से कौन सा सामान्य रूप, संबंधों के भीतर संबंधों या ट्यूपल्स के भीतर विशेषता मानों के रूप में संबंधों की अनुमति नहीं देता है?

Which of the following normal form of normalization in relational model, disallows relations within relations or relations as attribute values within tuples?

[A] Fourth

[B] First

[C] Second

[D] Third

Correct Answer : First


Ques 59

DSSSB TGT -2023

निम्नलिखित में से कौन सा एक-आयामी लेबल वाला ऐरे है जो पांडा के साथ डेटा हैंडलिंग में किसी भी डेटा प्रकार (पूर्णांक, स्ट्रिंग, फ्लोटिंग पॉइंट नंबर, पायथन ऑब्जेक्ट, आदि) को रखने में सक्षम है?

Which of the following is a one -dimensional labelled array capable of holding any data type (integers, strings, floating point numbers, python objects, etc) in data handling with pandas?

[A] Series

[B] Missing data

[C] Data frames

[D] Iteration

Correct Answer : Series


Ques 60

DSSSB TGT -2023

यदि आपको कोई आयात त्रुटि मिलती है, तो इसका क्या मतलब है? I. पायथन उपलब्ध पुस्तकालयों की सूची में पांडा को ढूँढ़ सकता है II. पांडा उपलब्ध पुस्तकालयों की सूची में पायथन को नहीं ढूँढ़ सकता III. पायथन उपलब्ध पुस्तकालयों की सूची में पांडा को नहीं ढूँढ़ सकता

If you encounter an import Error, what does it mean? I. Python could find pandas in list of available libraries II. Pandas couldn’t find python in list of available libraries III. Python couldn’t find Pandas in list of available libraries

[A] Only III

[B] I, II and III

[C] Only I

[D] Only I and III

Correct Answer : Only III


Ques 61

DSSSB TGT -2023

पायथन भाषा में प्रयुक्त पहचानकर्ता नामों के लिए निम्नलिखित में से कौन सा सही है?

Which of the following is correct for Identifiers name use d in Python language ?

[A] An identifier can have underscore() symbol

[B] We must use keywords as indentifier

[C] There is restriction the length of an identifier

[D] An identifier must start with a digit

Correct Answer : An identifier can have underscore() symbol


Ques 62

DSSSB TGT -2023

पायथन भाषा में टिप्पणी जोड़ने के लिए निम्नलिखित में से किस प्रतीक का उपयोग किया जाता है?

Which of the following symbol is used to add comments in the Python language ?

[A] *

[B] #

[C] !

[D] //

Correct Answer : #


Ques 63

DSSSB TGT -2023

स्ट्रिंग एक या अधिक वर्णों का संग्रह है जिसमें ______ शामिल है प्रोग्रामिंग भाषा में। I. अक्षर II. संख्याएँ III प्रतीक

String is a collection of one or more character which consists of ______ in programming language . I. Letters II. Numbers III. Symbols

[A] I, II and III

[B] Only I

[C] Only I and III

[D] Only II

Correct Answer : I, II and III


Ques 64

DSSSB TGT -2023

पायथन भाषा में .txt, .py, .CSV आदि जैसे एक्सटेंशन ______ के उदाहरण हैं।

Extensions like .txt, .py, .CSV, etc in python language are example of ______.

[A] Text files

[B] Text editor

[C] UNICODE

[D] ASCII

Correct Answer : Text files


Ques 65

DSSSB TGT -2023

कम्पाइलर का निम्नलिखित में से कौन सा चरण, प्रकार की जानकारी एकत्रित करता है और उसे मध्यवर्ती कोड निर्माण के दौरान बाद में उपयोग के लिए सिंटैक्स ट्री या प्रतीक तालिका में सहेजता है?

Which of the following phase of the compiler, gathers type information and saves it in either the syntax tree or the symbol table , for subsequent use during intermediate code generation?

[A] Semantic Analyzer

[B] Code Analyzer

[C] Syntax Analyzer

[D] Lexical Analyzer

Correct Answer : Semantic Analyzer


Ques 66

DSSSB TGT -2023

निम्नलिखित में से कौन सा ऑपरेशन उन सभी ट्यूपल को सम्मिलित करता है जो R-सेट में हैं लेकिन S-सेट में नहीं हैं?

Which of the following operation includes all tuples that are in R-set but not in S-set?

[A] R – S

[B] R Ç S

[C] R È S

[D] R × S

Correct Answer : R – S


Ques 67

DSSSB TGT -2023

पायथन प्रोग्रामिंग भाषा में कोड या प्रोग्राम को अधिक पठनीय और समझने योग्य बनाने के लिए उसमें टिप्पणी जोड़ने के लिए किस प्रतीक का उपयोग किया जाता है?

Which symbol is use d to add the comment in the code or program to make it more readable and understandable in Python programming language ?

[A] #

[B] *

[C]

[D] :

Correct Answer : #


Ques 68

DSSSB TGT -2021

जब n = 12,000 हो तो बाइनरी सर्च एल्गोरिदम का अधिकतम चलने का समय क्या है?

What is the maximum running time of binary search algorithm, when n = 12,000?

[A] 12

[B] 15

[C] 13

[D] 14

Correct Answer : 14


Ques 69

DSSSB TGT -2021

किसी सूचना की व्याख्या करने के लिए नोट्स को व्यवस्थित करने के लिए निम्नलिखित में से किस विधि का उपयोग किया जा सकता है? I. प्रवाह चार्ट II. संक्रमण उपकरण

Which of the following methods can be used to organise notes for interpreting an information? I. Flow chart II. Transition devices

[A] . Neither I nor II

[B] Only I

[C] Both I and II

[D] Only II

Correct Answer : Only I


Ques 70

DSSSB TGT -2021

निम्नलिखित में से कौन सा कथन एल्गोरिदम के बारे में सत्य है? I. यह समस्या का चरणबद्ध समाधान है II. इसे हल करना कठिन है III. यह प्रोग्रामिंग भाषा पर निर्भर नहीं है

Which of the following statement(s) is/are true about Algorithm? I. It is step by step solution of problem II. It is difficult to de III. It is not dependent on the programming language

[A] I, II and III

[B] I and II

[C] I and III

[D] II and III

Correct Answer : I and III


Ques 71

DSSSB TGT -2021

यदि लूप बिल्कुल भी समाप्त नहीं होता है और अंतहीन रूप से निष्पादित होता रहता है, तो इसे ______ के रूप में जाना जाता है।

If loop does not terminate at all and keeps on executing endlessly, then it is known as ______.

[A] for loop

[B] infinite loop

[C] finite loop

[D] white loop

Correct Answer : infinite loop


Ques 72

DSSSB TGT -2021

किसी एल्गोरिथ्म की दक्षता को ________ के संदर्भ में मापा जाता है

Efficiency of an algorithm is measured in terms of ______.

[A] Response time and completion time

[B] Data and space

[C] Memory and processor speed

[D] Time and space

Correct Answer : Time and space


Ques 73

DSSSB TGT -2021

सरणी E[–4 : 1, 6 : 10] में तत्वों की कुल संख्या क्या है?

What is the total number of elements in a array E[–4 : 1, 6 : 10]?

[A] 20

[B] 30

[C] 11

[D] 9

Correct Answer : 30


Ques 74

DSSSB TGT -2023

निम्नलिखित में से कौन सा एल्गोरिथ्म का ग्राफिकल प्रतिनिधित्व है?

Which of the following is a graphical representation of an algorithm ?

[A] Flowchart

[B] Source code

[C] Program

[D] Pseudo code

Correct Answer : Flowchart


Ques 75

DSSSB TGT -2023

डेटा संरचनाओं में सरणियों की तुलना में लिंक्ड सूचियों का उपयोग करने के मुख्य लाभ क्या हैं?

What is the main advantages of using linked lists over arrays in data structures?

[A] Linked lists have faster access time than arrays for large data sets .

[B] Linked lists use less memory than arrays

[C] Linked list use less memory than arrays

[D] Linked lists are more efficient for inserting and deleting element at any position .

Correct Answer : Linked lists are more efficient for inserting and deleting element at any position .


Ques 76

DSSSB TGT -2023

कौन से ऑपरेटर टर्नरी ऑपरेटर के रूप में जाने जाते हैं?

Which operators are known as ternary operator ?

[A] ?,:

[B] None of the given option

[C] ?,;;

[D] ::,?

Correct Answer : ?,:


Ques 77

uppcl tg2-2023

A___________ एक एल्गोरिथ्म का दृश्य या ग्राफिकल प्रतिनिधित्व है

A___________ is a visual or graphical representation of an algorithm

[A] Program

[B] System

[C] Data

[D] Flowchart

Correct Answer : Flowchart


Ques 78

MP-Patwari-2017

कौन सा एल्गोरिथ्म का ग्राफिकल प्रतिनिधित्व है?

Which one is the graphical representation of algorithm?

[A] Syntax

[B] Program

[C] Flowchart

[D] Bar Graphs

Correct Answer : Flowchart


Ques 79

Uppcl tg2-2023

निम्नलिखित पायधन सैम्ब्डा फंक्शन (Python lambda function) स्टेटमेंट का आउटपुट क्या है? x lambda a, b:a*b print(x(5*2, 6*2))

What is the output of the following Python lambda function statement? x lambda a, b:a*b print(x(5*2, 6*2))

[A] 30

[B] 34

[C] 10

[D] 120

Correct Answer : 120


Ques 80

Uppcl tg2-2023

निम्नलिखित पायथन कोड (Python code) का आउटपुट क्या है?

What is the output of the following Python code?

import re 
re.sub(r'abc', '+' , 'abcdef abcxyz')

[A] '*def *xyz*'

[B] 'def* *xyz'

[C] '*def *xyz'

[D] '*def xyz*'

Correct Answer : '*def *xyz'


Ques 81

Uppcl tg2-2023

पहचान कीजिए कि दिए गए कथन सत्य हैं या असत्य। i) पायथन प्रोग्रामिंग में, टपल (tuple) आइटम क्रमित किए जाते हैं। ii) पायथन प्रोग्रामिंग में, टपल (tuple) बनने के बाद हम आइटम को बदल, जोड़ या हटा नहीं सकते। iii) पायधन प्रोग्रामिंग में, टपल (tuple) डुत्रिकेट वैल्यू नहीं देता है।

Identify whether the given statements are true or false. i) In Python programming, tuple items are ordered. ii) In Python programming, we cannot change, add or delete items once a tuple is created. iii) In Python programming, tuple does not give duplicate values.

[A] i- False, ii- True, iii- Real

[B] i- True, ii- True, iii- False

[C] i- true, ii- false, iii- true

[D] i- False, ii- True, iii- True

Correct Answer : i- True, ii- True, iii- False


Ques 82

Uppcl tg2-2023

A/An एक एकीकृत विकास परिवेश (IDE) है जो पायथन (Python) के साथ आता है।

A/An is an integrated development environment (IDE) that comes with Python.

[A] Datagrip

[B] NetBeans

[C] IDLE

[D] Visual studio

Correct Answer : IDLE


Ques 83

Uppcl tg2-2023

निम्नलिखित पायथन (Python) कोड का अपेक्षित आउटपुट क्या है?

What is the expected output of the following Python code?

import numpy as npymat
temparr=npymat.array( [[ 1, 2, 3], 
                    [4, 2, 5]])
print("No. of dimensions: ", temparr.ndim) 
print("Shape of array:", temparr.shape) 
print("Size of array: ", temparr .size)

[A] No. of dimensions: 2 Shape of array: (2, 3) Size of array: 6

[B] No. of dimensions: 2 B. Shape of array: (2, 3) Size of array: 2

[C] No. of dimensions: 2 C. Shape of array: (3, 2) Size of array: 6

[D] No. of dimensions: 1 D. Shape of array: (2, 3) Size of array: 6

Correct Answer : No. of dimensions: 2 Shape of array: (2, 3) Size of array: 6


Ques 84

Uppcl tg2-2023

पहचान कीजिए कि दिए गए कथन सत्य है या असल्य। i) पायथन भाषा में, टपल' ('tuples') एक डेटा प्रकार है जो अनुक्रम डेटा प्रकार श्रेणी से संबंधित होते है। ii) पायथन कंप्यूटर भाषा में कंटेनरों में डेटा को स्टोर करने के लिए अनुक्रम हेटा प्रकार का उपयोग किया जाता है। iii) पायधन में, स्ट्रिंग, यूनिकोड कैरेक्टर को दर्शाने वाले बाइट की सरणियां (arrays) होती हैं।

Identify whether the given statement is true or false. i) In Python language, 'tuples' is a data type that belongs to the sequence data type category. ii) In Python computer language, sequence heta types are used to store data in containers. iii) In Python, strings are arrays of bytes representing Unicode characters.

[A] i- False, ii- True, iii- True

[B] i- True, ii True, iii True

[C] i- true, ii- false, iii- true

[D] i- False, ii- True, iii- False

Correct Answer : i- True, ii True, iii True


Ques 85

Uppcl tg2-2023

A/An___________ एक चरण-दर-चरण प्रक्रिया है, जो वांछित आउटपुट प्राप्त करने के लिए एक निश्चित क्रम निष्पादित होने वाले निर्देशों के एक सेट को परिभाषित करता है।

A/An__________ is a step-by-step procedure that defines a set of instructions to be executed in a certain order to obtain the desired output.

[A] Order

[B] Protocol

[C] Algorithm

[D] Sequence

Correct Answer : Algorithm


Ques 86

Uppcl tg2-2023

निम्नलिखित पायथन (Python) प्रोग्राम का अपेक्षित आउटपुट क्या है?

What is the expected output of the following Python program?

def my_function(fname): 
print(*fname + " Refsnes") 
my_function("Emil") 
my_function("Tobias") 
my_function("Linus")

[A] Emil Refsnes Tobias Refsnes Linus Refsnes

[B] E m i l R e f s n e s T o b i as R e f s n e s L i n u s R e f s n e s

[C] +Emil Refsnes *Tobias Refsnes *Linus Refsnes

[D] *E m i l Refsnes *T o b i a s R e f s n e s *L i n u s R e f s n e s

Correct Answer : E m i l R e f s n e s T o b i as R e f s n e s L i n u s R e f s n e s


Ques 87

Uppcl tg2-2023

निम्नलिखित में से कौन-सा विकल्प पायथन प्रोग्रामिंग भाषा (Python programming language) के लिए मान्य है? i) इंटरप्रिटेशन-बेस्ड आषा (An interpretation-based language) ii) ऑब्जेक्ट-ओरिएंटेड-प्रोग्रामिंग भाषा (An object-oriented language) iii) उच्च स्तरीय प्रोग्रामिंग भाषा (A high-level programming language) iv) मशीन पर निर्भर आषा (A machine-dependent language)

Which of the following options is valid for Python programming language? i) An interpretation-based language ii) An object-oriented language iii) A high-level programming language iv) A machine-dependent language

[A] Only i

[B] Only i and ii

[C] i, ii,iii and iv

[D] Only i , ii and iii

Correct Answer : Only i , ii and iii


Ques 88

Uppcl tg2-2023

पायधन में, मॉड्यूल केबल एक्सटेंशन वाली फाइलें होती हैं जिनमें एक पायथन (Python) कोड होता है जिसे दूसरे पायधन (Python) प्रोग्राम के अंदर इम्पोर्ट किया जा सकता है।

In Python, modules are files with the .exe extension that contain Python code that can be imported into another Python program.

[A] .dat

[B] .py

[C] .ist

[D] .txt

Correct Answer : .py


Ques 89

Uppcl tg2-2023

पायथन में मॉड्यूल के बारे में निम्नलिखित में से कौन सा/से कथन सत्य है/हैं? i) यह एक फ़ाइल है जिसमें पायथन परिभाषाएँ और कथन होते हैं। ii) यह फंक्शन, क्लास और वैरिएबल को परिभाषित कर सकता है। iii) इसमें रन करने योग्य (runnable) कोड हो सकते हैं।

Which of the following statements about modules in Python is/are true? i) It is a file that contains Python definitions and statements. ii) It can define functions, classes and variables. iii) It can contain runnable code.

[A] i,ii and iii

[B] i and ii Only

[C] i only

[D] only i and ii

Correct Answer : i,ii and iii


Ques 90

UPSSSC JE 2021

निम्न में से किसका नाम क्लास के नाम के समान होना चाहिए?

Which of the following should have a same name as class name ?

[A] Variable

[B] Method

[C] Constructor

[D] Header File

Correct Answer : Constructor


Ques 91

UPSSSC JE 2021

निम्नलिखित में से किसे अतिभारित किया जा सकता है?

Which of the following can be overloaded ?

[A] Variable

[B] Objects

[C] Class

[D] Function

Correct Answer : Function


Ques 92

Computer Operator-2018

दोहरे आयाम वाली सरणी की सही घोषणा की पहचान करें।

Identify the CORRECT declaration of double dimensioned array.

[A] int arr[2,2];

[B] int arr[2][2];

[C] int arr[2][3][4];

[D] int *arr[10];

Correct Answer : int arr[2][2];


Ques 93

Computer Operator-2018

फ्लो चार्ट को नए पेज से जोड़ने के लिए निम्न में से किस विकल्प का उपयोग किया जाता है?

Which of the following options is used for connecting flow chart onto a new page?

[A] predefined processing

[B] flow line

[C] off-page connector

[D] on-page connector

Correct Answer : off-page connector


Ques 94

Computer Operator-2018

___________ डेटा प्रवाह का प्रतीक है।

___________ symbolizes the data flow.

[A] Flowchart

[B] Area chart

[C] Pie chart

[D] Scatter chart

Correct Answer : Flowchart


Ques 95

Computer Operator-2018

___________ किसी प्रोग्राम की शुरुआत या समाप्ति को दर्शाता है।

___________ denotes the beginning or ending of a program.

[A] Flow line

[B] Diamond

[C] Oval

[D] Rectangle

Correct Answer : Flow line


Ques 96

Computer Operator-2018

फ्लोचार्ट हमें ___________ में मदद करता है।

Flowchart help us to ___________.

[A] Knows the capacity of the memory

[B] Both (1) and (2)

[C] Specify the problem completely and clearly

[D] None of these

Correct Answer : Specify the problem completely and clearly


Ques 97

Computer Operator-2018

एक सरणी A (-3:10, 5:12) द्वारा कितने मान रखे जा सकते हैं?

How many values can be held by an array A (-3:10, 5:12) ?

[A] 91

[B] 119

[C] 112

[D] 16

Correct Answer : 16


Ques 98

Computer Operator-2018

निम्नलिखित प्रोग्राम खंड का आउटपुट क्या है?

What is the output of the following program segment?

for (i=5; i < 5; i--) printf ("Assam\n");

[A] Print Assam for 5 times

[B] No output

[C] Print Assam for infinite times

[D] Print Assam for 1 time

Correct Answer : Print Assam for infinite times


Ques 99

CCE(P) -2015

स्थैतिक चर को कब आरंभीकृत किया जाता है?

When is a static variable initialized?

[A] First time when a loop is executed

[B] All time when a loop is executed

[C] It cannot be initialized

[D] None of the above

Correct Answer : None of the above


Ques 100

CCE(P) -2015

टाइपकास्टिंग का उद्देश्य क्या है?

What is the purpose of Typecasting ?

[A] To create new data types

[B] To change the data type of a variable

[C] To converts the data stored in a variable to a different type before using it as expression

[D] To prevent the loss of data when passing values to function

Correct Answer : To converts the data stored in a variable to a different type before using it as expression


Latest Updates