3i Infotech Placement: Sample Questions 382 - 383 of 1245

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

Question 382

Edit

Describe in Detail

Essay▾

What is the output of the following program?

  1. voidmain ()
  2. {
  3.     staticinti;
  4.     while (i<=10)
  5.     (i>2)? i ++:i--;
  6.     printf (“%d”, i);
  7. }

Explanation

In the program

Table Shows the Program
static int i;
  • Since i is static.
  • It is initialized to 0.
while (i <= 10)

(i > 2) ? i ++ : i-;

  • Inside the while loop the conditional operator evaluates to false, executing i-
  • This continues till the integer value rotates to positive value (32767) .
printf ( “% d” , i) ;
  • The while condition becomes false and hence, comes out of the while loop, printing the i value.

Question 383

Question

MCQ▾

An electron emits energy

Choices

Choice (4)

a.

Electrons are attracted towards the nucleus

b.

When it jumps from one energy level to another

c.

Because it՚s in orbit

d.

The electrostatic force is insufficient to hold the electrons in orbits

Answer

b.

Explanation

Understanding of Abstraction and Emission
  • An electron emits energy when it jumps from one energy level to another.
  • Radiation interacts with matter in terms of “packets” of energy called “quanta” or “photons” .
  • Where plank՚s constant

  • Energetically excited atoms only emit discrete energies corresponding to the atom՚s electronic energy levels.

Developed by: