Which type of data types contain the python Dynamically Typed Both b) Statically typed None of these A) C) B) D) 01 Composed by : Naseebullah
Which of the following is tuple T = 1, T= [1,2,3] T = {1,3,4} T = (1) A) C) B) D) 02 Composed by : Naseebullah
Which of the following is mutable data type Integer Tuple String Dictionaries A) C) B) D) 03 Composed by : Naseebullah
Which of the following is correct way to find the length of the list List = [1,2,3,4,5] Len(list) len(List) len(list) All of these A) C) B) D) 04 Composed by : Naseebullah
List is always enclose with [ ] ( ) { } None of these A) C) B) D) 05 Composed by : Naseebullah
Which of the type conversion can loss the data Implicit Type Conversion Both Explicit Type Conversion None of these A) C) B) D) 06 Composed by : Naseebullah
Which of the following automatically convert data type Implicit Type Conversion Both Explicit Type Conversion None of these A) C) B) D) 07 Composed by : Naseebullah
The indexing of the dictionary starts from Keys as a indexing Dictionary has no indexing Start from zero Values are indexing A) C) B) D) 08 Composed by : Naseebullah
Which data type contains the unique elements Dictionary List Set Tuple A) C) B) D) 09 Composed by : Naseebullah
Which of the following is correct way to create the empty dictionary { } dict() Dict() A & C A) C) B) D) 10 Composed by : Naseebullah
Which of the following is floor division // % / ** A) C) B) D) 11 Composed by : Naseebullah
Which of the following is modules operator // % / ** A) C) B) D) 12 Composed by : Naseebullah
Which of the following is correct name of variable Chat fatha ali khan Haleema sultan 3_ideats PK A) C) B) D) 13 Composed by : Naseebullah
Which of the following is assignment operator = -= += All of these A) C) B) D) 14 Composed by : Naseebullah
How many kinds of operators are there in python 6 8 7 9 A) C) B) D) 15 Composed by : Naseebullah
What is the output of 7.3 in the ceil 8.0 7.5 7.0 None of these A) C) B) D) 16 Composed by : Naseebullah
What is the output of 7.3 in the floor 8.0 7.5 7.0 None of these A) C) B) D) 17 Composed by : Naseebullah
Which of following is correct way to print the hello world print(“hello world”) print(‘hello world’) print(f“hello world”) All of these A) C) B) D) 18 Composed by : Naseebullah
What is the purpose of append() method in the list To add an element to the end of a list To sort a list in ascending order To remove an element from the end of a list To reverse a list A) C) B) D) 19 Composed by : Naseebullah
What is the data type of the variable x={“Name”: “Ali”, “Age”: 23} String Dictionary Integer Set A) C) B) D) 20 Composed by : Naseebullah
Which operator is used for float division / % // ** A) C) B) D) 21 Composed by : Naseebullah
What is purpose of the keys() methods To get a list of keys in a dictionary To get a list of items in a dictionary To get a list of values in a dictionary To clear all items in a dictionary A) C) B) D) 22 Composed by : Naseebullah
What is the data type of the variable x = True String Float Integer Boolean A) C) B) D) 23 Composed by : Naseebullah
What is the output of int(3.142) 3.142 3 3.0 3.1 A) C) B) D) 24 Composed by : Naseebullah
What is the purpose of the pop() methods To add an element to the end of a list To sort a list in ascending order To remove an element from the end of a list To reverse a list A) C) B) D) 25 Composed by : Naseebullah
Which of the following is assignment operator = >= == <= A) C) B) D) 26 Composed by : Naseebullah
Which of the following is comparison operator < <= > All of these A) C) B) D) 27 Composed by : Naseebullah
Which of the following is the correct extinction to save the python file .py .pyy .pby All of these A) C) B) D) 28 Composed by : Naseebullah
Which of the following is correct way to create the single line comments #This is single line comment “”” This is single line comment””” All of these ‘’’This is single line comment’’’ A) C) B) D) 29 Composed by : Naseebullah
Which following is not a valid name of the variable print 2a if True A) C) B) D) 30 Composed by : Naseebullah
What is the out of the following code A=5 a=7 print(“A”) A 7 5 12 A) C) B) D) 31 Composed by : Naseebullah
What is the value of a variable when a=b=c=10 10 5 B Has no value A) C) B) D) 32 Composed by : Naseebullah
What is the meaning of immutable Change able None of these Not Change able Only a is correct A) C) B) D) 33 Composed by : Naseebullah
What is the output of the following code print(“Hello” + “World”) Hello World HelloWorld Helloworld Hello world A) C) B) D) 34 Composed by : Naseebullah
What is the data type of the y variable x = 5 y = 3.14 z = x + y print( type(y) ) Float Tuple Integer 8.14 A) C) B) D) 35 Composed by : Naseebullah
By default datatype of input function is Integer Type will convert according to given input String No data type A) C) B) D) 36 Composed by : Naseebullah
What is the output of following code A= 5 B=89.6 print(type(“A”)) Integer String Float List A) C) B) D) 37 Composed by : Naseebullah
What is out put of the following code print(5+”5”) 10 10.0 5 Error A) C) B) D) 38 Composed by : Naseebullah
Which is correct way to create the empty dictionary D = { } d = dict{ } D= dict() Both a & b A) C) B) D) 39 Composed by : Naseebullah
What is output of the following code print(!True) True False 1 A) C) B) D) 40 Composed by : Naseebullah
What is output of the following code print(1 and 1) True False 1 A) C) B) D) 41 Composed by : Naseebullah
What is output of the following code print(True or False) True False 1 A) C) B) D) 42 Composed by : Naseebullah
What is output of the following code A=4 B=7 print(A&B) 100 7 4 None of these A) C) B) D) 43 Composed by : Naseebullah
What is the out of the following code print(4^7) 3 4 11 7 A) C) B) D) 44 Composed by : Naseebullah
Which of the following is bit-wise operator = and == & A) C) B) D) 45 Composed by : Naseebullah
Which of the following has high Precedence Parentheses Multiplication Exponentiation Division A) C) B) D) 46 Composed by : Naseebullah
Which of the following is logical and operator and > & != A) C) B) D) 47 Composed by : Naseebullah
What is the output of the following code print(!False) False True 1 A) C) B) D) 48 Composed by : Naseebullah
What is the output of following code L=[1,2,3,4] L[0]=4 print(L) [1,2,3,4] [2,3,4] [4,2,3,4] [1,2,3] A) C) B) D) 49 Composed by : Naseebullah
What is output of the following code Dic={“Name”: “Ali”, “Age”: 34} print(Dic.keys()) [Name, Age] [“Ali”, 34] [“Name”, “Age”] [“Name” : “Ali”] A) C) B) D) 50 Composed by : Naseebullah