WELCOME!

Services

WELCOME
welcome to my website by KARTHICKRAJA.thank u for visiting...வருகைக்கு நன்றி.|Krtamilanz இந்த BLOG யை நான் 2013 நவம்பர் 5 ல் துவங்கிய நோக்கமே நான் படித்த ,கேட்ட ,தெரிந்த விஷ​யங்கள் நீங்களும் அறியவேண்டும் என்ற நல்லெண்ண நோக்கமே தவிர வேறதும்மில்லை.இதில் வரும் சில பதிவுகள் இணையதளத்தில் இருந்தும், சில பதிவுகள் கேட்டவை ,படித்தவை , சில நானே தொகுத்தவை.௭ன்றும் அன்புடன் உங்கள் கார்த்திக்ராஜா...

Bookmark This Site



Latest News Study According to your Internal Marks, Pass Semester Exam!!

Important Services
Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Ad

info Links

entireweb

Thursday 27 November 2014

C PROGRAMMING BASICS-1-INTERVIEW QUESTIONS

                                                  KRTAMILANZ

                                       CSE INTERVIEW QUESTIONS & ANSWERS
                                      C PROGRAMMING-TECHNICAL INTERVIEW
                                                C PROGRAMMING BASICS-1

1. What is a local block?

A local block is any portion of a C program that is enclosed by the left brace ({) and the right brace (}). A C function contains left and right braces, and therefore anything between the two braces is contained in a local block. An if statement or a switch statement can also contain braces, so the portion of code between these two braces would be considered a local block.
Additionally, you might want to create your own local block without the aid of a C function or keyword construct. This is perfectly legal. Variables can be declared within local blocks, but they must be declared only at the beginning of a local block. Variables declared in this manner are visible only within the local block. Duplicate variable names declared within a local block take precedence over variables with the same name declared outside the local block. Here is an example of a program that uses local blocks:

#include <stdio.h>
void main(void);
void main()
{
     /* Begin local block for function main() */
     int test_var = 10;
     printf("Test variable before the if statement: %d\n", test_var);
     if (test_var > 5)
     {
          /* Begin local block for "if" statement */
          int test_var = 5;
          printf("Test variable within the if statement: %d\n",
                 test_var);
          {
               /* Begin independent local block (not tied to
                  any function or keyword) */
               int test_var = 0;
               printf(
               "Test variable within the independent local block:%d\n",
               test_var);
          }
          /* End independent local block */
     }
     /* End local block for "if" statement */
     printf("Test variable after the if statement: %d\n", test_var);
}
/* End local block for function main() */
This example program produces the following output:
Test variable before the if statement: 10
Test variable within the if statement: 5
Test variable within the independent local block: 0
Test variable after the if statement: 10
Notice that as each test_var was defined, it took precedence over the previously defined test_var. Also notice that when the if statement local block had ended, the program had reentered the scope of the original test_var, and its value was 10.
2. Should variables be stored in local blocks?

The use of local blocks for storing variables is unusual and therefore should be avoided, with only rare exceptions. One of these exceptions would be for debugging purposes, when you might want to declare a local instance of a global variable to test within your function. You also might want to use a local block when you want to make your program more readable in the current context.
Sometimes having the variable declared closer to where it is used makes your program more readable. However, well-written programs usually do not have to resort to declaring variables in this manner, and you should avoid using local blocks.
3. When is a switch statement better than multiple if statements?

A switch statement is generally best to use when you have more than two conditional expressions based on a single variable of numeric type. For instance, rather than the code
if (x == 1)
     printf("x is equal to one.\n");
else if (x == 2)
     printf("x is equal to two.\n");
else if (x == 3)
     printf("x is equal to three.\n");
else
     printf("x is not equal to one, two, or three.\n");
the following code is easier to read and maintain:
switch (x)
{
     case 1:   printf("x is equal to one.\n");
                    break;
     case 2:   printf("x is equal to two.\n");
                    break;
     case 3:   printf("x is equal to three.\n");
                    break;
     default:  printf("x is not equal to one, two, or three.\n");
                    break;
}
Notice that for this method to work, the conditional expression must be based on a variable of numeric type in order to use the switch statement. Also, the conditional expression must be based on a single variable. For instance, even though the following if statement contains more than two conditions, it is not a candidate for using a switch statement because it is based on string comparisons and not numeric comparisons:
char* name = "Lupto";
if (!stricmp(name, "Isaac"))
     printf("Your name means 'Laughter'.\n");
else if (!stricmp(name, "Amy"))
     printf("Your name means 'Beloved'.\n ");
else if (!stricmp(name, "Lloyd"))
     printf("Your name means 'Mysterious'.\n ");
else
     printf("I haven't a clue as to what your name means.\n");
4. Is a default case necessary in a switch statement?

No, but it is not a bad idea to put default statements in switch statements for error- or logic-checking purposes. For instance, the following switch statement is perfectly normal:
switch (char_code)
{
     case 'Y':
     case 'y': printf("You answered YES!\n");
               break;
     case 'N':
     case 'n': printf("You answered NO!\n");
               break;
}
Consider, however, what would happen if an unknown character code were passed to this switch statement. The program would not print anything. It would be a good idea, therefore, to insert a default case where this condition would be taken care of:
...
     default:  printf("Unknown response: %d\n", char_code);
               break;
...
Additionally, default cases come in handy for logic checking. For instance, if your switch statement handled a fixed number of conditions and you considered any value outside those conditions to be a logic error, you could insert a default case which would flag that condition. Consider the following example:
void move_cursor(int direction)
{
     switch (direction)
     {
          case UP:     cursor_up();
                       break;
          case DOWN:   cursor_down();
                       break;
          case LEFT:   cursor_left();
                       break;
          case RIGHT:  cursor_right();
                       break;
          default:     printf("Logic error on line number %ld!!!\n",
                               __LINE__);
                       break;
     }
}




Wednesday 26 November 2014

CS6304-Analog and Digital Communication QB



 KRTAMILANZ
Department of Computer Science & Engineerinng
Department of Information Technology
QUESTION BANK
Name of the Subject : CS6304-Analog and Digital Communication
Semester/Class: III /IT/CSE  Academic Year: 2014-15
UNIT-I
Part-A
1.What is demodulation and modulation
2.Draw the spectrum of FM signal
3.Define amplitude modulation and SNR.
4.Differentiate between narrow band and wide band FM signal
5.Define modulation index, bandwidth efficiency, Degree of Modulation.
6.What is the purpose of limiter in FM receiver
7.If a 10v carrier is amplitude modulated by two different frequencies with amplitudes 2V and 3V respectively. Find the modulation index. (or) Consider an AM signal x(t)=2cos(2πfct) +0.5cos(2πfct).cos(2πfct).Find the modulation index used to generate the signal.
8.What is meant by double conversion receiver?
9.Write down the mathematical expression for angle modulated wave
10.    Differentiate between an analog signal and a digital signal.
11.    Define modulation depth for a FM System and highlight its impact on the spectral occupation.
12.    Define a continuous signal and Discrete signal
13.    Define thermal noise, flicker noise, short noise.
14.    Distinguish between FM and PM.
15.    What is bandwidth need to transmit 4khz voice signal using AM
16.    Write one advantage and one disadvantage of delta modulation
17.    Distinguish between power efficiency and spectral efficiency
18.    What is IST? What is the reason for it occurrence?
19.    Find the capacity of a channel having 50 khz bandwidth and produces SNR of 1023 at the output.
20.    Define internal noise and list all the internal noise.



Part-B
1.Define FM and PM modulation and write their equations. Describe the generation of FM wave         using Armstrong method.
2.An AM signal has the equation
v(t) = [15+4sin(44x103t)] sin (46.5x106t)V
1. Find the carrier frequency
2. Find the frequency of the modulating signal.
3. Find the value of m.
4. Find the peak voltage of the unmodulated carrier.
5. Sketch the signal in the time domain, showing voltage and time scales.

3. For a modulation coefficient m = 0.2 and carrier power Pc = 1000 W, determine the following.
     1. Total sideband power
     2. Upper and lower sideband power  
     3. Modulated carrier power
     4. Total transmitted power.
4. a. Illustrate the relationship between frequency modulation and phase modulation with a block diagram.
    b. Describe the average power required for an angle modulated wave with mathematical expression.
5. a. With neat block diagram describe AM transmitter
    b. Derive for carrier power and transmitter power in AM in terms of modulation index.
6. a. Explain the function of every block of superhetrodyne FM receiver.
    b. Differentiate AM , FM & PM
7. a. Explain the Principles of amplitude modulation
    b. Write a note on frequency spectrum analysis of angle modulated waves. Explain the band width requirements of angle modulated waves
8. (i) A modulating signal of 2 cos5000t is amplitude modulated over a carrier signal of 5cos20000t . Derive expressions for the modulation index, LSB and VSB frequencies, Bandwidth and the ratio of Side Band Power in the Total Power of AM wave. (8)
    (ii) Explain the principle of Angle Modulation. Derive and explain phase deviation, Modulation index, frequency deviation and percent modulation. (8)
9. (i) An audio frequency signal 10 sin 2*3.14* 500t is used to amplitude modulate a carrier of 50 sin 5*3.14*10^5 t. Calculate
    (1) Modulation index (6)
    (2) Side band frequencies (5)
    (3) BW required (5)
    (4) (i) Compare FM and AM. (12)
         (ii) The phase deviation constant in a phase modulation system is K = 0.01 rad/v. Calculate the maximum phase deviation when a modulating signal of 10 V is applied?
10. (i) Distinguish between FM and PM by giving its mathematical analysis. (8)
      (ii) Derive the relationship between the voltage amplitudes of the side band frequencies and the carrier and draw the frequency spectrum. (8)
11. In an AM modulator, 500 KHz carrier of amplitude 20 V is modulated by 10 KHz modulating signal which causes a change in the output wave of 7.5 V . Determine:
     (1) Upper and lower side band frequencies
     (2) Modulation Index
     (3) Peak amplitude of upper and lower side frequency
     (4) Maximum and minimum amplitudes of envelope
12. Explain about different types of noises in communication systems.
UNIT-II
Part-A
1.            Draw the constellation diagram of QPSK signal.
2.            Find the minimum sampling frequency for a signal having frequency from 10mhz to 10.2 mhz in order to avoid aliasing
3.            What do you meant by FSK
4.            What is M--ary encoding
5.            Draw 8-QAM phasor diagram
6.            Determine the peak frequency deviation and minimum bandwidth for a binary FSK signal with a mark frequency of 49 khz, a space frequency of 51 khz
7.            Define space division multiplexing
8.Draw the block diagram of BPSK Transmitter .
9.What is meant by fading
10.    Define sampling theorem
11.    Draw the null modem circuit.
12.    What is binary phase shift keying?
13.    Write down the expression for peak frequency deviation of FSK.
14.    Define Nyquist sampling theorem.
15.    Draw the block diagram of QPSK Transmitter.
16.    Differentiate between PSK from DPSK.
17.    What is the approximation bandwidth required to transmit a signal at 4khz using FM with frequency deviation of 75khz.

PART-B
1. With a neat schematic diagram, explain the balanced ring modulator of BPSK.
2. a. Describe the two techniques of achieving carrier recovery circuit.
b. Explain the generation and detection of PSK system with the help of block diagrams.
3. a. For QPSK modulator with an input data rate equal to 12 Mbps and a carrier frequency of 100 MHz. determine the following.
i. Minimum double sided Nyquist bandwidth
ii. Baud Rate
iii. Sketch the output spectrum
b. Define QAM and explain the working of 8-QAM transmitter and receiver with a block diagram.
4. a. Compare the different digital modulation schemes in terms of bandwidth bit error rate and efficiency.
b. For the DPSK modulator , determine the output phase sequence for the following input bit sequence: 11001100101010. Assume that the reference bit = 1.
5. Explain BPSK transmitter and receiver with block diagram and derive an expression for its probability of error.
6. Describe the working of QPSK transmitter and receiver. Determine its bandwidth efficiency and compare it with other m-ary PSK schemes.
7. a. Draw the block diagram of QPSK modulator, demodulator and explain the principle of operation.
b. With neat constellation diagram, explain the operation of QAM transmitter. List out its merits over PSK.
8.a. Explain the operation of the binary FSK modulator and demodulator with its constellation diagram.
   b. Write a note on QPSK.
   c. Write a note on DPSK.
9. (i) Draw FSK Transmitter and explain. Describe its Bandwidth Considerations. (8)
     (ii) For a BPSK modulator with a Carrier frequency of 70 MHz and an input bit rate of 10 Mbps, determine the maximum and minimum upper and lower side frequencies, draw the output spectrum, determine the minimum Nyquist bandwidth, and calculate the baud (Assume f= 5MHz)
10. (i) Draw and explain the operations of Non-coherent and coherent FSK modulators. (8)
      (ii) Draw QPSK modulator and explain. Describe its Bandwidth considerations. (8)
11. (i) Explain the principle of FSK transmitter and receiver. (10)
      (ii) Write short notes on the spectrum and bandwidth of FSK. (6)
12. Draw the block diagram of FSK receiver and explain the operation. Determine the :
      (i) peak frequency deviation
     (ii) minimum bandwidth
     (iii) baud for FSK signal with a mark frequency of 49 kHz, space frequency of 51 kHz, and input bit rate of 2 kbps.
13. What is known as Binary phase shift keying? Discuss in detail the BPSK transmitter and Receiver and also obtain the minimum double sided Nyquist bandwidth.
UNIT-III
PART-A
1.            What are the types of pulse modulation systems
2.            What is pulse stuffing
3.            What do you mean by non-linear encoding in PCM System
4.            What is the advantage of differential PCM
5.            Determine the nyquist rate for analog input frequency of a) 4khz b)10khz
6.            Define companding
7.            Find the minimum number of bits required in a PCM code for a dynamic range of 80 dB
8.Define the term : Synchronous transmission
9.Distinguish between half duplex and full duplex transmission.
10.    Give at least four advantages of optical fiber over co-axial cable .
11.    List the layer presented in ISO -OSI reference model
12.    List any two data communication standard organisation
13.    What is data modem
14.    What are the types of data transmission?
15.    What is the need for data modems
16.    A Typical dial up telephone connection has a bandwidth of 3KU, and a signal to noise ratio of 30dB. calculate the shannon Limit.
17.    What are advantages of QPSK?
18.    What is half duplex and full duplex transmission?

PART-B
1.a.Explain any two data communication codes presently codes used for character encoding.
      b. Give brief notes on eye pattern
2.With neat block diagram explain the data communication hardware.
3.a. Explain delta modulation with the help of transmitter and receiver diagrams.
   b. What is quantizing error? illustrate with an example.
4.Draw the block diagram and explain the principle of operation of a PCM system. A binary channel with bit rate = 36000 bits/sec is available for PCM voice transmission. Find number of bits per sample, number of quantization levels and sampling frequency assuming highest frequency component of voice signal is 3.2 KHz.
5.a. What is the need for data communication interfaces?
   b. Explain the electrical and functional specifications of the ISDN physical interface.
6.a. Draw the block diagram of a PCM system and explain function of each book.
   b. What is Delta Modulation ? Explain its difference and disadvantages compared to PCM.
7.Describe the PCM transmitter and receiver with block diagram.
8.a. Differentiate between synchronous and asynchronous modem used in data communication.
   b. Explain with block diagram how along signal is transmitted through digital transmission                                                                link using digital modulation technique.
9. a. Describe the basic principles of PCM system.
    b. what is companding? Explain in Detail.
10.a. Write a note on data communication codes.
     b. Explain serial and parallel interfaces in detail.

UNIT-IV
PART-A
1.            State shannon's channel capacity theorem.Give an example
2.            List the methods for error correction
3.            Differentiate between error detection and correction
4.            Mention the difference between line coding and channel coding
5.            List out the common features provided by the data communication modems
6.            Define entropy
7.            What is meant by block code?
8.            How is parity check used for error detection
9.            Mention any two error control codes
10.    Mention the properties of PN sequence
11.    What is Shannon limit for information Capacity
12.    Which error detection technique is simple and which one is more reliable?
13.    What is meant by ASCII code?
14.    Define source coding theorem.
15.    What is HDLC?
16.    Define flow control.
17.    What are error correcting codes?

PART-B
1.a. What are parallel interfaces? Describe in detail about centronics parallel interfaces.
   b. Describe in detail about medium and high speed modems.
2. Explain source coding theorem. Consider five messages S0, S1, S2, S3, S4 given by the probabilities 1/2, 1/4, 1/8, 1/16, 1/16. Use the Shanon -Fano algorithm to develop an efficient code.
3.Discuss asynchronous type modem requirements.     Explain working principle of these modems.   Explain error correction capability of block codes.
4.a. State and explain the Shanon's theorem for information capacity.
   b. For the messages M={m1,m2,m3,m4} with probabilities P(m)={1/2, 1/4, 1/8, 1/8}. Obtain the entropy of the source and efficiency of the system with and without coding.
5.a. Discuss the properties of cyclic codes.
   b. Construct a (6, 3) cyclic code whose generator polynomial is given as G(x) = 1 + x for the data 001.
6.a. What is the need for flow control?
   b. Explain the methods of flow control techniques?
7.a. Explain the Error detection and Correction methods used in Data Link control.
   b. Explain HDLC.
8.a. What is CRC? Draw the encoder of the same and explain its operation.
   b. Write short notes on forward error correction and backward error correction techniques.
9.Draw the block diagram of modem and explain the operation with the importance of each block in the diagram.
10.a. Explain in detail about error detection and correction.
   b. Write a note on medium and high speed modem.
11.State and explain the Huffman coding and Viterbi coding

UNIT-V
PART-A
1.            What is Cellular Communication?
2.            What is CDMA?
3.            What is frequency reuse?
4.            What is Cell?
5.            What is Handoff?
6.            Distinguish between CDMA and TDMA.
7.            What is Uplink frequency?
8.            What is Downlink frequency?
9.            What is Channel assignment?
10. Write the types of Handoffs.
11. What is Cell cluster?
12.Write the Channel allocation techniques.
13.What is TDMA?
14.What is FDMA?
15.Write the frequency range of Bluetooth.
16.Write the formula for calculating Cell cluster.
17.Write a note on Base station.
18.Write about Mobile Switching Centre.
19.What are the Channels used in Cellular Systems?
20.What is Chip code in CDMA Systems.
21.Distinguish between FDMA and TDMA
22.Differentiate Multiplexing and Multiple access.
PART-B
1.Explain about advanced Mobile System
2.Explain the architecture of GSM.
3.Explain about CDMA.
4.Draw and explain about Cellular Systems
5.a. How the channels allocated to Cells in Cellular Systems.
   b. Explain about Handoff in Cellular Systems
6. Compare and explain about various multiple access schems.
7. Briefly explain about Satellite Communication.
8. Write a note on Bluetooth technologies.
9. Explain about FDMA.
10. Explain about TDMA. 

All the best ! and Best of luck ! to all the students
By
KrTaMiLaNz
Note:Other Websites/Blogs Don't Copy This Questions & Don't Republish This Questions...

Related Posts Plugin for WordPress, Blogger...