Axes Placement Paper - 6


C- Questions

1. Struct {
int a;
char b;
char *c;
}mystruct;
what is the sizeof structer.

2.union {
int a;
char b : 3;
char c : 2;
}x;
what is the sizeof union.

3. What is sizeof('a')

4. Write p is pointer to constant char
a) char const *p;
b) char *const p;
c) const *char p;
d) const char *p;

5. Which one is faster compiler or interpreter

6.sizeof is __________

7.stack is part of__________? Ans:-ram

8.to print % ?

9. #include<stdio.h> includes definitions or declarations?
Ans:-declarations.

10. where the locals and globals are stored. Ans :-stack & heep.

Network basics
--------------
* t1(us standard)
data rate 1.544mbps
no of channels 24
no of bits per frame 193 (8x24 + 1 framing bit)
time 125us/sample(for 193 bits)

* e1(european standard)
data rate 2.048mbps
no of channels 32

* osi model
application layer
presentation layer
session layer
transport layer
network layer
data link layer
physical layer

* tcp/ip model
application layer
transport protocol(tcp/udp/sctp)
internet protocol(ip)
physical layer

* tcp-->connection oriented
reliable
slow

* udp-->connection less
unreliable
fast

* pot(plain old telephone) works with -48v

* internet--> packet switching
pstn --> circuit switching

* hamming code distance --> 5

* in ethernet frame length is fixed

* mac() length is 6 bytes

* in asynchronous communication start/stop bits r used

* long distance communication --> satellite

* protocol is a set of rules used for communication between two peers

* utp-5 (unshielded twisted pair)
stp (shielded twisted pair)

7. A man owns 2/3 of the market research beauro business and sells 3/4 of his shares for Rs. 75000. What is the value of business?Ans.150000

10. From its total income, a sales company spent Rs. 20,000 for advertising, half of the remainder on commissions and had Rs. 6000 left. What was its total income? Ans.32000

18. If a salesman's average is a new order every other week, he will break the office record of the year. However, after 28 weeks, he is six orders behind schedule. In what proportion of the remaining weeks does he have to obtain a new order to break the record? Ans.3/4