QUIZ ON : PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON - SEQUENCE DATA TYPES

SEQUENCE DATA TYPES

00:00:00

Which built-in method returns the character at the specified index?

Option A. characterAt()
Option B. getCharAt()
Option C. charAt()
Option D. None of the above
True Answer C

Explanation :

Which built-in method returns the character at the specified index?

Question No# : 01 out of 20

Which of the following is not a type of margin in LibreOffice Writer?

Option A. Top
Option B. Left
Option C. Right
Option D. Center
True Answer D

Explanation :


Which of the following is not a type of margin in LibreOffice Writer?

Question No# : 02 out of 20



Which of the following statements are CORRECT?

1) Static allocation of all data areas by a compiler makes it impossible to implement recursion.

2) Automatic garbage collection is essential to implement recursion.

3) Dynamic allocation of activation records is essential to implement recursion. 4) Both heap and stack are essential to implement recursion.

Option A. 1 and 2 only
Option B. 2 and 3 only
Option C. 3 and 4 only
Option D. 1 and 3 only
True Answer D

Explanation :
To implement recursion, activation record should be implemented by providing dynamic memory allocation. This dynamic allocation is done from runtime stack. Heap is essential to allocate memory for data structures at run-time, not for recursion. So, statement 1 and 3 are correction.

Which of the following statements are CORRECT?

1) Static allocation of all data areas by a compiler makes it impossible to implement recursion.

2) Automatic garbage collection is essential to implement recursion.

3) Dynamic allocation of activation records is essential to implement recursion. 4) Both heap and stack are essential to implement recursion.

Question No# : 03 out of 20



Sales Tax Ledger falls under which Group?

Option A. Sales
Option B. Purchases
Option C. Duties and Taxes
Option D. Indirect Expenses
True Answer C

Explanation :

Sales Tax Ledger falls under which Group?

Question No# : 04 out of 20



Which physical unit is obtained by the ratio of momentum and velocity of matter?

Option A. Acceleration
Option B. Mass
Option C. Velocity
Option D. Force
True Answer B

Explanation :
Momentum=mass*velocity So, momentum /velocity =mass

Which physical unit is obtained by the ratio of momentum and velocity of matter?

Question No# : 05 out of 20

To activate MRP features from Gateway of Tally initially we need to press

Option A. F10
Option B. F11
Option C. F12
Option D. Alt + F1
True Answer C

Explanation :

To activate MRP features from Gateway of Tally initially we need to press

Question No# : 06 out of 20

LibreOffice Calc has number left alignment and alphabet right alignment?

Option A. TRUE
Option B. FALSE
Option C.
Option D.
True Answer B

Explanation :

LibreOffice Calc has number left alignment and alphabet right alignment?

Question No# : 07 out of 20



Consider the C function given below
int f(int j)
{
static int i = 50;
int k;
if (i == j)
{
printf(“something”);
k = f(i);
return 0;
}
else return 0;
}
Which one of the following is TRUE?

Option A. The function returns 0 for all values of j.
Option B. The function prints the string something for all values of j.
Option C. The function returns 0 when j = 50.
Option D. The function will exhaust the runtime stack or run into an infinite loop when j = 50.
True Answer D

Explanation :

 For any value of ‘j’ other than 50 the function will return 0, for j=50, then condition (i==j) will be true, it will print “something” and function will be called recursively with same value till the run time stack overflows.

Consider the C function given below
int f(int j)
{
static int i = 50;
int k;
if (i == j)
{
printf(“something”);
k = f(i);
return 0;
}
else return 0;
}
Which one of the following is TRUE?

Question No# : 08 out of 20



Which of the following is not logical operator?

Option A. &
Option B. &&
Option C. ||
Option D. !
True Answer A

Explanation :
Bitwise operators: & is a Bitwise AND operator. Logical operators: && is a Logical AND operator. || is a Logical OR operator. ! is a NOT operator.

Which of the following is not logical operator?

Question No# : 09 out of 20



Which among the following expression will return a random integer between 5 and 10 both inclusive?

Option A. 5+(int)(Math.random()*6)
Option B. 5+(int)(Math.random()*10)
Option C. 5+Math.random()*6
Option D. 5+Math.random()*10
True Answer A

Explanation :

Which among the following expression will return a random integer between 5 and 10 both inclusive?

Question No# : 10 out of 20

‘शोक’ किस रस का स्थायी भाव है?

Option A. शान्त
Option B. करुण
Option C. हास्य
Option D. वीर
True Answer B

Explanation :
करुण रस का स्थायी भाव शोक है। शान्त रस का स्थायी भाव निर्वेदहै। हास्य रस का स्थायी भाव ह्नास है। वीर रस का स्थायी भाव उत्साह है।

‘शोक’ किस रस का स्थायी भाव है?

Question No# : 11 out of 20

We can allocate a 2-Dimensional array dynamically.

Option A. TRUE
Option B. FALSE
Option C.
Option D.
True Answer A

Explanation :

We can allocate a 2-Dimensional array dynamically.

Question No# : 12 out of 20

What will be the output of the following Python code?

  num = ['One', 'Two', 'Three']  for i, x in enumerate(num):      print('{}: {}'.format(i, x),end=" ")

Option A. 1: 2: 3:
Option B. Exception is thrown
Option C. One Two Three
Option D. 0: One 1: Two 2: Three
True Answer D

Explanation :
enumerate(iterator,start=0) is a built-in function which returns (0,lst[0]),(1,lst[1]) and so on where lst is a list(iterator).

What will be the output of the following Python code?

  num = ['One', 'Two', 'Three']  for i, x in enumerate(num):      print('{}: {}'.format(i, x),end=" ")

Question No# : 13 out of 20



To remove string “hello” from list1, we use which command?

Option A. list1.remove(“hello”)
Option B. list1.remove(hello)
Option C. list1.removeAll(“hello”)
Option D. list1.removeOne(“hello”)
True Answer A

Explanation :
Execute in the shell to verify.

To remove string “hello” from list1, we use which command?

Question No# : 14 out of 20



Which of the following is an anti-virus program

Option A. Norton
Option B. K7
Option C. Quick heal
Option D. All of these
True Answer D

Explanation :

Which of the following is an anti-virus program

Question No# : 15 out of 20



To display the current time, the TIME() function can be used.

Option A. TRUE
Option B. FALSE
Option C.
Option D.
True Answer A

Explanation :

To display the current time, the TIME() function can be used.

Question No# : 16 out of 20



Which of the following is a dicotyledon

Option A. Grass
Option B. Mango
Option C. Maize
Option D. All of these.
True Answer B

Explanation :
The dicotyledons, also known as dicots, were one of the two groups into which all the flowering plants or angiosperms were formerly divided. Mango is a dicotyledon.

Which of the following is a dicotyledon

Question No# : 17 out of 20

Which among the following regions is known as ‘orchard of world’?

Option A. Equatorial region
Option B. Savanna region
Option C. Mediterranean region
Option D. Tundra region
True Answer C

Explanation :
The Mediterranean region is known as the orchard of the world. This is because of the reality of the fact that a few natural product tree species flourish in Mediterranean atmospheres. These incorporate mainstream organic products, for example, grapes, apricots and oranges.

Which among the following regions is known as ‘orchard of world’?

Question No# : 18 out of 20

The total resistance of resistor is low when connected in series

Option A. TRUE
Option B. FALSE
Option C.
Option D.
True Answer A

Explanation :

The total resistance of resistor is low when connected in series

Question No# : 19 out of 20

evaluates to

Option A. 0
Option B. 1
Option C. In 2
Option D. ½ In 2
True Answer D

Explanation :

 Solution:

Let cos x + sin x = t

So, 

evaluates to

Question No# : 20 out of 20




CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Website development Company in Allahabad