QUIZ ON : C LANGUAGE - CONDITIONAL STATEMENTS AND LOOPS

CONDITIONAL STATEMENTS AND LOOPS

00:00:00

Flowering plants that bear flowers, fruits and seeds are called

Option A. cryptogams
Option B. ferns
Option C. gymnosperm
Option D. angiosperms
True Answer D

Explanation :

Flowering plants that bear flowers, fruits and seeds are called angiosperms.

The flowering plants, also known as Angiospermae or Magnoliophyta, are the most diverse group of land plants. Angiosperms are seed-bearing vascular plants. Their reproductive structures are flowers in which the ovules are enclosed in an ovary. Angiosperms display a huge variety of life forms including trees, herbs, submerged aquatics, bulbs and epiphytes.

Flowering plants that bear flowers, fruits and seeds are called

Question No# : 01 out of 20

Which access specifier allows accessibility of a member only within the same class where it is declared?

Option A. public
Option B. private
Option C. protected
Option D. default
True Answer B

Explanation :

Which access specifier allows accessibility of a member only within the same class where it is declared?

Question No# : 02 out of 20

First stage to learn skill is

Option A. Reality
Option B. Imagination
Option C. Co-ordination
Option D. Imitation
True Answer D

Explanation :
Imitation is the first stage of leaning skill followed by imagination,coordination and reality.

First stage to learn skill is

Question No# : 03 out of 20

Consider the following transactions with data items P and Q initialized to zero:

Option A. a serializable schedule
Option B. a schedule that is not conflict serializable
Option C. a conflict serializable schedule
Option D. a schedule for which a precedence graph cannot be drawn
True Answer B

Explanation :

 Let S be a non-serial schedule, without loss of generality assume that T1 has started earlier than T2. The first instruction of T1 is read (P) and the last instruction of T2 is write (P), so the precedence graph for S has an edge from T1 to T2, now since S is a non-serial schedule the first instruction of T2 (read (Q)) should be executed before last instruction of T1 (write (Q)) and since read and write are conflicting operations, the precedence graphs for S also contains an edge from T2 to T1, So we will have a cycle in the precedence graph which implies that any non serial schedule with T1 as the earliest transaction will not be conflict serializable.
=In a similar way we can show that if T2 is the earliest transaction then also the schedule is not conflict serializable.

Consider the following transactions with data items P and Q initialized to zero:

Question No# : 04 out of 20

To be “good” mathematician one must be able to

Option A. master the techniques of answering questions
Option B. memorise most of the formulae
Option C. solve the problem in no time
Option D. understand, apply and make connection across all the concepts
True Answer D

Explanation :
A good mathematician must fully understand the concepts and should be able to form a connection across the various concepts.

To be “good” mathematician one must be able to

Question No# : 05 out of 20

The key board shortcut to insert hyperlink command is Ctrl+ K

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

Explanation :

The key board shortcut to insert hyperlink command is Ctrl+ K

Question No# : 06 out of 20



What will be the output of the following Python code?

>>> a={5,6,7,8}

>>> b={7,8,9,10} 

>>> len(a+b)

Option A. 8
Option B. Error, unsupported operand ‘+’ for sets
Option C. 6
Option D. Nothing is displayed
True Answer B

Explanation :
Duplicate elements in a+b is eliminated and the length of a+b is computed.

What will be the output of the following Python code?

>>> a={5,6,7,8}

>>> b={7,8,9,10} 

>>> len(a+b)

Question No# : 07 out of 20



Security features must incorporate in the recomeded formate of IoT.

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

Explanation :

Security features must incorporate in the recomeded formate of IoT.

Question No# : 08 out of 20



……….. plays important role in drawing attention.

Option A. Intensity of stimulus
Option B. Utility of stimulus
Option C. Reliability of stimulus
Option D. Activity of stimulus
True Answer A

Explanation :
Intensity of stimulus plays important role in drawing attention. The intensity of a stimulus affects attention. Intensity can be influenced through several stimulus characteristics, including overall size, height, length, weight, volume, colour, odour, temperature and position.

……….. plays important role in drawing attention.

Question No# : 09 out of 20

An applet is a

Option A. picture displayed on the web page
Option B. program that can be embedded in another application
Option C. tag in HTML program
Option D. compiler
True Answer B

Explanation :

An applet is a

Question No# : 10 out of 20



What will be the output of the following Python code snippet?

print('xyyxyyxyxyxxy'.replace('xy', '12', 100))

Option A. xyyxyyxyxyxxy
Option B. 12y12y1212x12
Option C. none of the mentioned
Option D. error
True Answer B

Explanation :
The first 100 occurrences of the given substring are replaced.

What will be the output of the following Python code snippet?

print('xyyxyyxyxyxxy'.replace('xy', '12', 100))

Question No# : 11 out of 20



Which of the following is not used in e-mail address:

Option A. Coma (,)
Option B. Dot (.)
Option C. Numbers (1,2,3)
Option D. Under score (_)
True Answer A

Explanation :

Which of the following is not used in e-mail address:

Question No# : 12 out of 20



निम्नलिखित में से कौन-सा शब्द ‘कमल’ का पर्यायवाची शब्द नहीं है?

Option A. सरोज
Option B. अरविन्द
Option C. सलिल
Option D. पंकज
True Answer C

Explanation :

‘सलिल’ को छोड़कर सभी शब्द ‘कमल’ के पर्यायवाची शब्द हैं। ‘सलिल’ पानी का पर्यायवाची शब्द है।
पर्यायवाची शब्द का अर्थ :ऐसे शब्द जिनके अर्थ समान हों, पर्यायवाची शब्द कहलाते हैं।
सलिल का पर्यायवाची - जल, वारि, नीर, तोय, अम्बु, उदक, पानी

निम्नलिखित में से कौन-सा शब्द ‘कमल’ का पर्यायवाची शब्द नहीं है?

Question No# : 13 out of 20

Popular multimedia authoring programs include the following except for

Option A. Macromedia Director
Option B. QuarkXPress
Option C. Authorware
Option D. Toolbox
True Answer D

Explanation :

Popular multimedia authoring programs include the following except for

Question No# : 14 out of 20



What is the shortcut key for checking automatic spelling in LibreOffice Writer?

Option A. Shift + F7
Option B. Ctrl + F7
Option C. F7
Option D. Ctrl + shift + F7
True Answer A

Explanation :


What is the shortcut key for checking automatic spelling in LibreOffice Writer?

Question No# : 15 out of 20



The Columns command lets you create columns of equal or unequal width

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

Explanation :

The Columns command lets you create columns of equal or unequal width

Question No# : 16 out of 20



What will be the output of the following Python code snippet?

  my_string = "hello world"  k = [(i.upper(), len(i)) for i in my_string]  print(k)

Option A. [(‘HELLO’, 5), (‘WORLD’, 5)]
Option B. [(‘H’, 1), (‘E’, 1), (‘L’, 1), (‘L’, 1), (‘O’, 1), (‘ ‘, 1), (‘W’, 1), (‘O’, 1), (‘R’, 1), (‘L’, 1), (‘D’, 1)]
Option C. [(‘HELLO WORLD’, 11)]
Option D. none of the mentioned
True Answer B

Explanation :
We are iterating over each letter in the string.

What will be the output of the following Python code snippet?

  my_string = "hello world"  k = [(i.upper(), len(i)) for i in my_string]  print(k)

Question No# : 17 out of 20



Who is the founder of Sikh Religion?

Option A. Guru Teg Bahadur
Option B. Guru Govind Singh
Option C. Guru Arjun Dev
Option D. Guru Nanak
True Answer D

Explanation :
Guru Nanak is the founder of the religion of Sikhism and is the first of the Sikh Gurus. His birth is celebrated world-wide on Kartik Puranmashi, the full Moon day which falls on different dates each year in the month of Katak, October-November.

Who is the founder of Sikh Religion?

Question No# : 18 out of 20

Consider the following relation
Cinema ( theateraddresscapacity)
Which of the following options will be needed at the end of the SQL query SELECT P1.address
FROM Cinema P1
such that it always finds the addresses of the alters with maximum capacity?

Option A. WHEREP1.capacity>=All (select P2.capacity from Cinema P2)
Option B. WHEREP1.capacity>=Any (select P2.capacity from Cinema P2)
Option C. WHEREP1.capacity> All (select max (P2.capacity) from Cinema P2)
Option D. WHEREP1.capacity> Any (select max (P2.capacity) from Cinema P2)
True Answer A

Explanation :

 Option A is correct. When the ALLcondition is followed by a list, the optimizer expands the initial condition to all elements of the list and strings them together with AND operators. When the ANY condition is followed by a list, the optimizer expands the initial condition to all elements of the list and strings them together with OR operators.
Logical Operators

Consider the following relation
Cinema ( theateraddresscapacity)
Which of the following options will be needed at the end of the SQL query SELECT P1.address
FROM Cinema P1
such that it always finds the addresses of the alters with maximum capacity?

Question No# : 19 out of 20



IFSC is an eleven digit code is mandatry for transfer of fund through NEFT & RTGS

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

Explanation :

IFSC is an eleven digit code is mandatry for transfer of fund through NEFT & RTGS

Question No# : 20 out of 20