NEW
Font size
WorksheetsGeeks for Geeks PCCOER Info Session CP Quiz
Total questions: 20
Worksheet time: 10mins
Which data type is used to store integer data type
float
char
int
double
Which of the following is not Object Oriented Programming Language (OOP)
C++
C
JAVA
PYTHON
Which of the following is not an type of Error?
Run time Error
Syntax Error
Compile Time Error
True Error
Python interpretter is based on which language?
c++
Assembly
c
c#
What will be the output of 'geeks' [-3]?
g
k
s
e
I am a function used to turn all characters of a string to uppercase, who am I?
toupper()
Caps()
upper()
AllCaps()
Which of the following data type is Mutable, Allows duplicates and Ordered?
Tuple
Sets
Lists
Dictionary
What are the 3 arguments taken by the range function in a for loop?
(i.e. for i in range())
(Start, end, increment)
(Increment, Jump, End)
(End, Start, Increment)
(Increment, Start, End)
What is the output of the following code?
x = 50
def fun1():
x = 25
print(x)
fun1()
print(x)
25
50
50
50
25
25
Compliation Error
Which of the following loops is not present in python?
while
do-while
for
else
Which of the following is not a python library?
NumPy
Eigen
Pandas
Tensor Flow
Which of the following character is used to give single-line comments in Python?
//
#
!
/*
What is the Java syntax to find length of a given string 'str'?
len(str);
str.len();
str.length();
size(str);
What is the output of the following code?
int x=10;
int y=25;
x++;
y--;
print(x)
print(y)
11
24
10
24
11
25
Compliation Error
Which of the following is not a c++ compiler?
gnu
clang
minGW
G95
What will be the output of the following code snippet?
print(type(5 / 2))
print(type(5 // 2))
int,str
float,int
double,int
float,float
Correct syntax for defining a function in python is:
def function_name(arguments):
function(function_name):
Return_type function_name(arguments){
func function_name(arguments):
Which of the following is immutable in python
{a:1,b:2,c:3}
{1,2,3}
[1,2,3]
(1,2,3)
Which of the following is not an Keyword
hello
void
int
double
Which of the following Data Structure uses LIFO?
Stack
Queue
Tree
Graph
