Basic CS-Algorithms [3i Infotech Placement]: Sample Questions 8 - 10 of 12

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

Question 8

Algorithms

Question

MCQ▾

The mass number of a nucleus is

Choices

Choice (4)

a.

Always less than its atomic number

b.

Sometimes more than and sometimes equal to its atomic number

c.

Always more than its atomic number

d.

All of the above

Answer

b.

Explanation

  • The mass number of a nucleus is sometime more than and sometimes equal to its atomic number.
  • Mass number protons neutrons
  • Atomic number is number of protons.
  • So, mass number of a nucleus is sometimes more than and sometime equal its atomic number (in case of hydrogen) .

Question 9

Algorithms
Edit

Describe in Detail

Essay▾

What are tri-state device and why they are essential in a bus oriented system?

Explanation

A tri-state device has three terminals.

The Three Terminals
  • When enables line is active output line follows input line, otherwise output line is free.
  • It helps bus oriented system.
    • Consider two buffers working on inverted logic.
    • Two buffers are receiving different inputs and the output of two buffers is connected to same bus.
    • Enabling and disabling enable line of two buffers selectively allows one of the inputs on the bus.

Question 10

Algorithms
Edit

Write in Short

Short Answer▾

How can you increase the size of a statically allocated array?

Explanation

  • int arr [10]
  • When an array is so declared memory is allocated for the elements of the array when the program starts, and this memory remains allocated during the lifetime of the program.
  • This is known as static array allocation.
  • We cannot increase size of statically allocated array. However, we can create a new larger array and copy the old one on it.

Developed by: