QUIZ ON : INTERNET OF THINGS AND ITS APPLICATIONS - BUILDING IOT APPLICATIONS

BUILDING IOT APPLICATIONS

00:00:00

Consider the following two-process synchronization solution
Process 0
---------
Entry: loop while (turn == 1); (critical section)
Exit: turn = 1;
Process 1
-----------
Entry: loop while (turn == 0); (critical section)
Exit: turn = 0;
The shared variable turn is initialized to zero. Which one of the following is TRUE?

Option A. This is a correct two-process synchronization solution.
Option B. This solution violates mutual exclusion requirement.
Option C. This solution violates progress requirement.
Option D. This solution violates bounded wait requirement.
True Answer C

Explanation :
The given solution for two process synchronization using “Turn” variable, satisfies the only mutual exclusion and bounded waiting but progress is violated.

Consider the following two-process synchronization solution
Process 0
---------
Entry: loop while (turn == 1); (critical section)
Exit: turn = 1;
Process 1
-----------
Entry: loop while (turn == 0); (critical section)
Exit: turn = 0;
The shared variable turn is initialized to zero. Which one of the following is TRUE?

Question No# : 01 out of 20



Complete the following sentence with the most appropriate word : Let us not confuse liberty ________ license.

Option A. with
Option B. from
Option C. for
Option D. than
True Answer A

Explanation :
The most appropriate word is with. Let us not confuse liberty with license.

Complete the following sentence with the most appropriate word : Let us not confuse liberty ________ license.

Question No# : 02 out of 20



What is the shortcut to redo in libreOffice writer?

Option A. Ctrl + R
Option B. Ctrl + Z
Option C. Ctrl + Y
Option D. Ctrl + shift + R
True Answer C

Explanation :

What is the shortcut to redo in libreOffice writer?

Question No# : 03 out of 20



What will be the output of the following Python function?

float(' -12345\n')

Option A.   -12345.0 (5 blank spaces before the number)
Option B. -12345.0
Option C. Error
Option D. -12345.000000000…. (infinite decimal places)
True Answer B

Explanation :
The function float() will remove all the blank spaces and convert the integer to a floating point number. Hence the output will be: -12345.0.

What will be the output of the following Python function?

float(' -12345\n')

Question No# : 04 out of 20



What is the return-type of the function sqrt()

Option A. int
Option B. float
Option C. double
Option D. depends on the data type of the parameter
True Answer C

Explanation :

What is the return-type of the function sqrt()

Question No# : 05 out of 20



How many are four digit numbers there between 999 and 3000?

Option A. 2001
Option B. 2000
Option C. 1999
Option D. 1998
True Answer B

Explanation :

 4 digit no from 1000-999 = 1
4 digit no from 2000-1001 = 1000
4 digit no from 3000-2001=999 
Total numbers =1+1000+999=2000

How many are four digit numbers there between 999 and 3000?

Question No# : 06 out of 20



Which of the following is a Python tuple?

Option A. [1, 2, 3]
Option B. (1, 2, 3)
Option C. {1, 2, 3}
Option D. {}
True Answer B

Explanation :
Tuples are represented with round brackets.

Which of the following is a Python tuple?

Question No# : 07 out of 20



In MODEMS

Option A. Digital signal is amplified
Option B. Several digital signals are multiplexed
Option C. A digital signal changes some characteristic of a carrier wave
Option D. None of the above
True Answer C

Explanation :

In MODEMS

Question No# : 08 out of 20



Computer can understand and manipulate binary data only.

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

Explanation :

Computer can understand and manipulate binary data only.

Question No# : 09 out of 20



What is the full form of GUI?

Option A. Graphical User interface
Option B. Geographical user of internet
Option C. Giga uses internet
Option D. Graphical unlimited interface
True Answer A

Explanation :

What is the full form of GUI?

Question No# : 10 out of 20



If a file is open in ‘write’ mode, then

Option A. If it does not exist, an error is returned
Option B. If it does not exist, it is created
Option C. If it exists, then data is written at the end
Option D. If it exists, error is returned
True Answer B

Explanation :
In C, fopen() is used to open a file in different modes. To open a file in write mode, “w” is specified. When mode “w” is specified, it creates an empty file for output operations. If a file with the same name already exists, its contents are discarded and the file is treated as a new empty file.

If a file is open in ‘write’ mode, then

Question No# : 11 out of 20



Can not send with email

Option A. File
Option B. Video clip
Option C. .doc
Option D. Parcel
True Answer D

Explanation :

Can not send with email

Question No# : 12 out of 20



Python code is compiled before running.

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

Explanation :

Python code is compiled before running.

Question No# : 13 out of 20

The example of an ecosystem is

Option A. air
Option B. pond
Option C. water
Option D. soil
True Answer B

Explanation :
An ecosystem is comprised of all the non-living elements and living species in a specific local environment. Components of most ecosystems include water, air, sunlight, soil, plants, microorganisms, insects and animals. Ecosystems may be terrestrial that is, on land or aquatic.

The example of an ecosystem is

Question No# : 14 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# : 15 out of 20



S-O-R is proposed by

Option A. Woodworth
Option B. Kofka
Option C. Kohler
Option D. Gestalt
True Answer A

Explanation :
S-O-R(Stimulus-Organism-Response) theory is proposed by Robert S Woodworth. This is a change to the Stimulus-Response (S-R) theory. He opposed behavioursim to the degree that it neglected the organism in behaviour. Therefore, he introduced O for the organism into the S-R- formula to produces S-O-R.

S-O-R is proposed by

Question No# : 16 out of 20



Host A (on TCP/IP v4 network A) sends an IP datagram D to host B (also on TCP/IP V4 network B). Assume that no error occurred during the transmission of D. When D reaches B, which of the following IP header field(s) may be different from that of the original datagram D?

Option A. (i) only
Option B. (i) and (ii) only
Option C. (ii) and (iii) only
Option D. (i), (ii) and (iii)
True Answer D

Explanation :
While an IP Datagram is transferring from one host to another host, TTL, Checksum and Fragmentation Offset will be changed.

Host A (on TCP/IP v4 network A) sends an IP datagram D to host B (also on TCP/IP V4 network B). Assume that no error occurred during the transmission of D. When D reaches B, which of the following IP header field(s) may be different from that of the original datagram D?

Question No# : 17 out of 20



Aadhar is-

Option A. 12 digit number card
Option B. None of the options
Option C. Both 12 digit number card & Identity proof issued by UIDAI
Option D. Identity proof issued by UIDAI
True Answer C

Explanation :

Aadhar is-

Question No# : 18 out of 20



You can sort a table by columns.

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

Explanation :

You can sort a table by columns.

Question No# : 19 out of 20



The continue statement in a switch block is used to avoid fall through.

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

Explanation :

The continue statement in a switch block is used to avoid fall through.

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