Skip to content
Gblog Algo Geek – DSA Article Writing Contest By GeeksforGeeks
 A Contest of Writing DSA Based Articles…!! This single line must have created various queries in the minds of all the tech enthusiasts. And why… Read More
Round-1 (World Trade Centre, Bangalore) – Technical 1. Given an array that is first increasing then decreasing, find an element in it. Example: arr[] =… Read More
In order to understand how to swap objects in Java, let us consider an illustration below as follows: Illustration: Attention reader! Don’t stop learning now. Get… Read More
In C11 standard of C, anonymous Unions and structures were added. Anonymous unions/structures are also known as unnamed unions/structures as they don’t have names. Since there… Read More
Cognizant campus placement was consisting of the following rounds: Written Technical interview HR Interview Written Round: It was consisting of Quantitative aptitude, Logical reasoning, and… Read More
What is the output of the following program : print 'abcefd'.replace('cd', '12') (A) ab1ef2 (B) abcefd (C) ab1efd (D) ab12ed2 Answer: (B) Explanation: The first… Read More
What is the output of the following program : print 'abef'.partition('cd') (A) (‘abef’) (B) (‘abef’, ‘cd’, ”) (C) (‘abef’, ”, ”) (D) Error Answer: (C)… Read More
What is the output of the following program : print 'cd'.partition('cd') (A) (‘cd’) (B) (”) (C) (‘cd’, ”, ”) (D) (”, ‘cd’, ”) Answer: (D)… Read More
What is the output of the following program : i = 0 while i < 5:     print(i)     i += 1     if i == 3:         break… Read More
What is the output of the following program : i = 0 while i < 3:      print i      i += 1 else:      print 0 (A)… Read More
What is the output of the following program : print '{0:-2%}'.format(1.0 / 3) (A) 0.33 (B) 0.33% (C) 33.33% (D) 33% Answer: (C) Explanation: The… Read More
What is the output of the following program : print '{0:.2}'.format(1.0 / 3) (A) 0.333333 (B) 0.33 (C) 0.333333:-2 (D) Error Answer: (B) Explanation: .2… Read More
What is the output of the expression : 3*1**3 (A) 27 (B) 9 (C) 3 (D) 1 Answer: (C) Explanation: Precedence of ** is higher… Read More
What is the output of the following program : def myfunc(a):     a = a + 2         a = a * 2     return a    print… Read More
What data type is the object below ? L = [1, 23, ‘hello’, 1] (A) List (B) Dictionary (C) Tuple (D) Array Answer: (A) Explanation:… Read More
Which of these is not a core data type? (A) Lists (B) Dictionary (C) Tuples (D) Class Answer: (D) Explanation: Class is a user defined… Read More

Start Your Coding Journey Now!