QUIZ ON : C LANGUAGE - STRUCTURES AND UNIONS

STRUCTURES AND UNIONS

00:00:00

Match the following :

Field

P. UDP Header’s Port Number
Q. Ethernet MAC Address
R. IPv6 Next Header
S. TCP Header’s Sequence Number
Length in bits
I. 48
II. 8
III. 32

IV. 16

Option A. P-III, Q-IV, R-II, S-I
Option B. P-II, Q-I, R-IV, S-III
Option C. P-IV, Q-I, R-II, S-III
Option D. P-IV, Q-I, R-III, S-II
True Answer C

Explanation :
UDP Header’s Port Number ⟹ 16 bit Ethernet MAC Address ⟹ 48 bit IPv6 Next Header ⟹ 8 bit TCP Header’s Sequence Number ⟹ 32 bit

Match the following :

Field

P. UDP Header’s Port Number
Q. Ethernet MAC Address
R. IPv6 Next Header
S. TCP Header’s Sequence Number
Length in bits
I. 48
II. 8
III. 32

IV. 16

Question No# : 01 out of 20



Which one of the following is TRUE for any simple connected undirected graph with more than 2 vertices?

Option A. No two vertices have the same degree.
Option B. At least two vertices have the same degree.
Option C. At least three vertices have the same degree.
Option D. All vertices have the same degree.
True Answer B

Explanation :

 At least 2 vertices have the same degree.

Alternately
For simple corrected graph with more than two vertices at least 2 vertices have the same degree

Which one of the following is TRUE for any simple connected undirected graph with more than 2 vertices?

Question No# : 02 out of 20

All instructions are executed one after other.

Option A. Looping
Option B. Selective
Option C. Sequence
Option D. None
True Answer C

Explanation :

All instructions are executed one after other.

Question No# : 03 out of 20

What will be the output of the following code?

main() { int c,d, *p1=&c,*p2=&d, x;
c =10,d =4;
x = –3* – *p2 / *p1 + 5;
printf(“%d ”,x);
}

Option A. 6
Option B. Invalid syntax because / * is used for comments.
Option C. 8
Option D. IInvalid syntax because three binary operators can’t be together in an expression.
True Answer B

Explanation :

What will be the output of the following code?

main() { int c,d, *p1=&c,*p2=&d, x;
c =10,d =4;
x = –3* – *p2 / *p1 + 5;
printf(“%d ”,x);
}

Question No# : 04 out of 20



Usenet and Internet are the same thing

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

Explanation :

Usenet and Internet are the same thing

Question No# : 05 out of 20



What will be the value of = product (5,2)?

Option A. 10
Option B. 3
Option C. 7
Option D. 1
True Answer A

Explanation :

What will be the value of = product (5,2)?

Question No# : 06 out of 20



To add a chart to a slide, click on the Insert Chart button to get a blank datasheet.

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

Explanation :

To add a chart to a slide, click on the Insert Chart button to get a blank datasheet.

Question No# : 07 out of 20



We can change the thickness of a line from ___

Option A. Line width
Option B. Line Height
Option C. Line Thick
Option D. Line Style
True Answer D

Explanation :

We can change the thickness of a line from ___

Question No# : 08 out of 20



Converts analog video signal from video tape into digital data

Option A. Streaming
Option B. Morphing
Option C. Video digitizer
Option D. Sampling
True Answer C

Explanation :

Converts analog video signal from video tape into digital data

Question No# : 09 out of 20



‘गुप्त’ का विलोम क्या है?

Option A. भुक्त
Option B. प्रकट
Option C. मुक्त
Option D. लिप्त
True Answer B

Explanation :
एक- दूसरे से विपरीत या उल्टा अर्थ देने वाले शब्द 'विलोम' कहलाते हैं। अत: प्रकट ‘गुप्त’ का विलोम है l भुक्त- अभुक्त, मुक्त- ग्रस्त, लिप्त- अलिप्त अन्य शब्दों के विलोम है। गुप्त का अर्थ छिपाया हुआ, अदृश्य

‘गुप्त’ का विलोम क्या है?

Question No# : 10 out of 20

HTML is used to add special effects to a website, such as animation, or hover effects.

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

Explanation :

HTML is used to add special effects to a website, such as animation, or hover effects.

Question No# : 11 out of 20



In slide layout panel how many layouts are available for text layout by default?

Option A. 4
Option B. 7
Option C. 12
Option D. None of above
True Answer A

Explanation :

In slide layout panel how many layouts are available for text layout by default?

Question No# : 12 out of 20



With reference to multimedia elements, pick the odd-one out of the following:

Option A. Animation
Option B. Audio
Option C. Video
Option D. Voice Script
True Answer D

Explanation :

With reference to multimedia elements, pick the odd-one out of the following:

Question No# : 13 out of 20



To open a existing document, click on the ________ and then select Open.

Option A. MS Office button
Option B. Quick Access Toolbar
Option C. Document Views
Option D. Ribbon
True Answer A

Explanation :

To open a existing document, click on the ________ and then select Open.

Question No# : 14 out of 20



Purpose of Arrange All option in the Word menu is

Option A. to align all the paragraphs in a Word document
Option B. to align all the open Word documents on screen for easy accessibility
Option C. to arrange all open Word files alphabetically
Option D. none of the above
True Answer B

Explanation :

Purpose of Arrange All option in the Word menu is

Question No# : 15 out of 20



If we have to execute the program with different set of inputs, we need to recompile the program each time.

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

Explanation :

If we have to execute the program with different set of inputs, we need to recompile the program each time.

Question No# : 16 out of 20



What will be the output of the following Python code?

def foo(x):      x[0] = ['def']      x[1] = ['abc']      return id(x)  q = ['abc', 'def']  print(id(q) == foo(q))

Option A. True
Option B. False
Option C. None
Option D. Error
True Answer A

Explanation :
The same object is modified in the function.

What will be the output of the following Python code?

def foo(x):      x[0] = ['def']      x[1] = ['abc']      return id(x)  q = ['abc', 'def']  print(id(q) == foo(q))

Question No# : 17 out of 20



The error that can be pointed out by the compiler are

Option A. Syntax errors
Option B. Semantic errors
Option C. logical errors
Option D. None of the above
True Answer A

Explanation :

The error that can be pointed out by the compiler are

Question No# : 18 out of 20



What is the past participle of 'ride'?

Option A. ride
Option B. rode
Option C. rides
Option D. ridden
True Answer D

Explanation :

The past participle of 'ride' will be ‘ridden’.

What is the past participle of 'ride'?

Question No# : 19 out of 20

Digital systems do not handle informations in digital form.

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

Explanation :

Digital systems do not handle informations in digital form.

Question No# : 20 out of 20