QUIZ ON : INTERNET OF THINGS AND ITS APPLICATIONS - THINGS AND CONNECTIONS

THINGS AND CONNECTIONS

00:00:00

What is the list comprehension equivalent for: list(map(lambda x:x**-1, [1, 2, 3]))?

Option A. [1|x for x in [1, 2, 3]]
Option B. [-1**x for x in [1, 2, 3]]
Option C. [x**-1 for x in [1, 2, 3]]
Option D. [x^-1 for x in range(4)]
True Answer C

Explanation :
The output of the function list(map(lambda x:x**-1, [1, 2, 3])) is [1.0, 0.5, 0.3333333333333333] and that of the list comprehension [x**-1 for x in [1, 2, 3]] is [1.0, 0.5, 0.3333333333333333]. Hence the answer is: [x**-1 for x in [1, 2, 3]].

What is the list comprehension equivalent for: list(map(lambda x:x**-1, [1, 2, 3]))?

Question No# : 01 out of 20



The Hindu Window Remarriage Act was passed in which of the following years?

Option A. 1856
Option B. 1846
Option C. 1816
Option D. 1826
True Answer A

Explanation :
The Hindu Widows' Remarriage Act, 1856, additionally Act XV, 1856, ordered on 26 July 1856, authorized the remarriage of Hindu widows in all purviews of India under East India Company rule.

The Hindu Window Remarriage Act was passed in which of the following years?

Question No# : 02 out of 20

What will be the output of the following Python code, if the code is run on Windows operating system?

import sys

if sys.platform[:2]== 'wi'

print("Hello")

Option A. Error
Option B. Hello
Option C. No output
Option D. Junk value
True Answer B

Explanation :
The output of the function sys.platform[:2] is equal to ‘wi’, when this code is run on windows operating system. Hence the output printed is ‘hello’.

What will be the output of the following Python code, if the code is run on Windows operating system?

import sys

if sys.platform[:2]== 'wi'

print("Hello")

Question No# : 03 out of 20



Refresh button is used to return to the home page

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

Explanation :

Refresh button is used to return to the home page

Question No# : 04 out of 20



Set of instructions given to computers is called a program

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

Explanation :

Set of instructions given to computers is called a program

Question No# : 05 out of 20



Common elements of application windows include the control menu, ___________ and border.

Option A. Taskbar
Option B. Dialog box
Option C. Menu bar
Option D. Icons
True Answer C

Explanation :

Common elements of application windows include the control menu, ___________ and border.

Question No# : 06 out of 20



Let the set of functional dependencies F = {QR → S, R → P, S → Q} hold on a relation schema X = (PQRS). X is not in BCNF. Suppose X is decomposed into two schemas Y and Z, where Y = (PR) and Z = (QRS).

Consider the two statements given below.

I. Both Y and Z are in BCNF

II. Decomposition of X into Y and Z is dependency preserving and lossless

Which of the above statements is/are correct?

Option A. Both I and II
Option B. I only
Option C. II only
Option D. Neither I nor II
True Answer C

Explanation :
X(PQRS) {QR → S, R → P, S → Q} decomposed into Y(PR) Z(QRS) {R → P} {QR → S, S → Q} Candidate key : R Candidate key : QR, RS Relation Y in BCNF Relation Z in 3NF but not BCNF Common attribute between Y and Z relations is R which is key for relation Y. So that given decomposition is lossless join decomposition. R → P in Y are in Z and dependency preserving decomposition. Hence , C is the correct answer.

Let the set of functional dependencies F = {QR → S, R → P, S → Q} hold on a relation schema X = (PQRS). X is not in BCNF. Suppose X is decomposed into two schemas Y and Z, where Y = (PR) and Z = (QRS).

Consider the two statements given below.

I. Both Y and Z are in BCNF

II. Decomposition of X into Y and Z is dependency preserving and lossless

Which of the above statements is/are correct?

Question No# : 07 out of 20



CD is related to?

Option A. hardware
Option B. Software
Option C. Storage
Option D. All
True Answer C

Explanation :

 A Compact Disc, also called a CD are small plastic discs which store and retrieve computer data or music using light. Compact Discs replaced floppy disks because they were faster and could hold more information. The CDs made floppy disks become obsolete.

CD is related to?

Question No# : 08 out of 20



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

  x = 'abcd'  for i in range(len(x)):      i[x].upper()  print (x)

Option A. abcd
Option B. ABCD
Option C. error
Option D. none of the mentioned
True Answer C

Explanation :
Objects of type int aren’t subscriptable. However, if the statement was x[i], an error would not have been thrown.

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

  x = 'abcd'  for i in range(len(x)):      i[x].upper()  print (x)

Question No# : 09 out of 20



A number system with base 8 is?

Option A. Octal Number
Option B. Decimal Number
Option C. Binary Number
Option D. Hexadecimal Number
True Answer A

Explanation :
The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7.

A number system with base 8 is?

Question No# : 10 out of 20



What will be the output of the following Python code?

[ord(ch) for ch in 'abc']

Option A. [97, 98, 99]
Option B. [‘97’, ‘98’, ‘99’]
Option C. [65, 66, 67]
Option D. Error
True Answer A

Explanation :
The list comprehension shown above returns the ASCII value of each alphabet of the string ‘abc’. Hence the output is: [97, 98, 99]. Had the string been ‘ABC’, the output would be: [65, 66, 67].

What will be the output of the following Python code?

[ord(ch) for ch in 'abc']

Question No# : 11 out of 20



Each module should also be divided into sub modules according to software engineering and programming style.

Option A. Top down method
Option B. Bottom up method
Option C. Coding
Option D. None of the above
True Answer A

Explanation :

Each module should also be divided into sub modules according to software engineering and programming style.

Question No# : 12 out of 20

Full name of B2G?

Option A. Business to Government
Option B. Brand to Government
Option C. Both
Option D. None
True Answer A

Explanation :

Full name of B2G?

Question No# : 13 out of 20



Which among the following is a type of constructor?

Option A. Parameterised constructor
Option B. Non-parameterised constructor
Option C. Both a and b
Option D. None of these
True Answer C

Explanation :

Which among the following is a type of constructor?

Question No# : 14 out of 20

Which of the following protocols sends web pages?

Option A. IMAP
Option B. HTTP
Option C. VoIP
Option D. IMAP
True Answer B

Explanation :

Which of the following protocols sends web pages?

Question No# : 15 out of 20



FTP Tool is to

Option A. Used to transfer data/files among computers on the Interne
Option B. Archive data/files
Option C. Copy files from external sources
Option D. Delete file from Internet
True Answer A

Explanation :

FTP Tool is to

Question No# : 16 out of 20



What services does the application layer provide?

Option A. Process to Process
Option B. End to End
Option C. Both
Option D. None
True Answer B

Explanation :

What services does the application layer provide?

Question No# : 17 out of 20



‘सुत्’ शब्द को स्त्रीवाचक बनाने के लिए किस प्रत्यय का प्रयोग होगा?

Option A. ईय
Option B. ई
Option C. इक
Option D. आ
True Answer D

Explanation :
प्रत्यय वे शब्द हैं जो दूसरे शब्दों के अन्त में जुड़कर, अपनी प्रकृति के अनुसार, शब्द के अर्थ में परिवर्तन कर देते हैं। सुत् का स्त्रीवाचक सुता होता है जिसमें ‘आ’ प्रत्यय जुड़ा है।

‘सुत्’ शब्द को स्त्रीवाचक बनाने के लिए किस प्रत्यय का प्रयोग होगा?

Question No# : 18 out of 20

In C language, FILE is of which data type?

Option A. int
Option B. char *
Option C. struct
Option D. None of the mentioned
True Answer C

Explanation :

In C language, FILE is of which data type?

Question No# : 19 out of 20



The Number of addresses in a Class A Block is

Option A. 65,534
Option B. 16,777,216
Option C. 256
Option D. None of the above
True Answer C

Explanation :

The Number of addresses in a Class A Block is

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