Basic CS-Operating System [3i Infotech Placement]: Sample Questions 9 - 10 of 89

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 9

Operating System

Question

MCQ▾

When X-Ray photons collide with electrons.

Choices

Choice (4)

a.

They slow down

b.

Their energy decreases

c.

Their mass increases

d.

Their wavelength increases

Answer

d.

Explanation

X-Ray Photons Collide with Electrons
  • X-Ray photons interact and not actually collide, with electrons at atomic level.
  • The figure above depicts the types of interactions involved with high-energy photons and electrons.
  • Due to absorption of energy when X-Ray photons collide with electrons, their wavelength increases (or frequency decreases) .

Question 10

Operating System
Edit

Describe in Detail

Essay▾

Does there exist any other function, which can convert an integer or a float to a string?

Explanation

Image Shows the Itoa

Some implementations provide a nonstandard function called itoa () , which convert an integer to string.

#include

char ⚹ itoa (int value, char ⚹ string, int radix) ;

Description:

The itoa () function constructs a string representation of an integer.

Parameters:

  • Value:
    • The integer to be converted to string representation.
    • String:
    • Points to the buffer that will hold resulting string.
    • The resulting string may be as long as seventeen bytes.
    • Radix:
  • The base of the number; must be in the range 2 - 36.

Developed by: