Saturday, March 29, 2008

TEXA





1. if a 5-stage pipe-line is flushed and then we have to execute 5 and  
12 instructions respectively then no. of cycles will be
a. 5 and 12
b. 6 and 13
c. 9 and 16
d.none
 


2. k-map
ab
----------
c 1 x 0 0
1 x 0 x
solve it

a. A.B
B. ~A
C. ~B
D. A+B

 

3.CHAR A[10][15] AND INT B[10][15] IS DEFINED WHAT'S THE ADDRESS OF 
A[3][4] AND B[3][4] IF ADDRESS OD A IS OX1000 AND B IS 0X2000

A. 0X1030 AND 0X20C3
B. OX1031 AND OX20C4
AND SOME OTHERS..

 

4. int f(int *a)
{
int b=5;
a=&b;
}

main()
{
int i;
printf("\n %d",i);
f(&i);
printf("\n %d",i);
}

what's the output .

1.10,5
2,10,10
c.5,5
d. none

 

5. main()
{
int i;
fork();
fork();
fork();
printf("----");
}

how many times the printf will be executed .
a.3
b. 6
c.5
d. 8

 

6.
void f(int i)
{
int j;
for (j=0;j<16;j++)
{
if (i & (0x8000>>j))
printf("1");
else
printf("0");
}
}
what's the purpose of the program

a. its output is hex representation of i
b. bcd
c. binary
d. decimal

 

7.#define f(a,b) a+b
#define g(a,b) a*b

main()
{

int m;
m=2*f(3,g(4,5));
printf("\n m is %d",m);
}

what's the value of m
a.70
b.50
c.26
d. 69

 

8.
main()
{
char a[10];
strcpy(a,"\0");
if (a==NULL)
printf("\a is null");
else
printf("\n a is not null");}

what happens with it .
a. compile time error.
b. run-time error.
c. a is null
d. a is not null.

 

9. char a[5]="hello"

a. in array we can't do the operation .
b. size of a is too large
c. size of a is too small
d. nothing wrong with it .

 

10. local variables can be store by compiler
a. in register or heap
b. in register or stack
c .in stack or heap .
d. global memory.

 

11. average and worst time complexity in a sorted binary tree is

 

12. a tree is given and ask to find its meaning (parse-tree)
(expression tree)
ans. ((a+b)-(c*d)) ( not confirmed)
 

13. convert 40.xxxx into binary .

 

14. global variable conflicts due to multiple file occurance
is resolved during
a. compile-time
b. run-time
c. link-time
d. load-time

 

15.
two program is given of factorial.
one with recursion and one without recursion .
question was which program won't run for very big no. input because
of stack overfow .
a. i only (ans.)
b. ii only
c. i& ii both .
c. none

 

16.
struct a
{
int a;
char b;
int c;
}

union b
{
char a;
int b;
int c;
};
which is correct .
a. size of a is always diff. form size of b.(ans.)
b. size of a is always same form size of b.
c. we can't say anything because of not-homogeneous (not in ordered)
d. size of a can be same if ...


 




0 comments:

WEB WORLD




Importent websites for electrical students





labvolt

etesters

Baba Banda Singh Bahadur Engineering College

Electrical & Electronic Systems

elec-toolbox

42explore

stumbleupon

electrical engineering for beginners



JOB SITES


http://www.employmentspot.com/
http://www.careerbuilder.com/
http://www.hotjobs.yahoo.com/
http://www.jobs.guardian.co.uk/
http://www.theladders.com/
http://www.vault.com/
http://www.arbeitsagentur.com/
http://www.dice.com/
http://www.job-search-engine.com/
http://www.job.com/
http://www.monster.com/
http://www.clickajob.co.uk/
http://www.jobcrawler.it/
http://www.reed.co.uk/
http://www.104.com.tw/
http://www.opcionempleo.com/
http://www.motoaelevoro.it/
http://www.totaljobs.com/
http://www.learn4good.com/
http://www.1111.com.tw/
http://www.naukri.com/
http://www.mansterindia.com/
http://www.clickjobs.com/
http://www.timejobs.com/
http://www.tecnoempleo.com/
http://www.infojobs.net/
http://www.snagajob.com/
http://www.infojobs.it/
http://www.jobs.net/
http://www.jobbankusa.com/
http://www.craiglist.org/
http://www.rabota.ru/
http://www.jobware.de/
http://www.net-temps.com/
http://www.resumerabbit.com/
http://www.nationjob.com/
http://www.flipdog.com/
http://www.empleo.universia.es/
http://www.anpe.fr/
http://www.hrsdc.gc.ca/
http://www.zarplata.ru/
http://www.jobcentreplus.gov.uk/
http://www.careerone.com.au/
http://www.keljob.com/
http://www.jobstreet.com/
http://www.in.jos.yahoo.com/
http://www.jobsahead.com/
http://www.placementindia.com/
http://www.jobcity.com/
http://www.cybermediadice.com/
http://www.careerindia.com/
http://www.in.recruit.net/
http://www.careerbuilderindia.com/
http://www.careerjet.co.in/
http://www.naukrihub.com/
http://www.naukri200.com/
http://www.bixee.com/
http://www.jobsearch.rediff.com/
http://www.careerkazana.com/
http://www.india.jobs.com/
http://www.careerenclave.com/
http://www.fresherscafe.blogspot.com/
http://www.towardsjob.com/
http://www.jobassist.com/
http://www.presentjobs.com/
http://www.todayjobs.blogspot.com/
http://www.hotcakejobs.com/
http://www.sgeek.com/
http://www.kcsindia.com/
http://www.fresherjobs.com/
http://www.chetana.com/


SEARCH ENGINES


http://www.google.com/
http://www.yahoo.com/
http://www.rediff.com/
http://www.khoj.com/
http://www.lycos.com/
http://www.go.com/
http://www.excite.com/
http://www.altavista.com/
http://www.snap.com/
http://www.looksmart.com/
http://www.askjeeves.com/
http://www.goto.com/
http://www.infoseek.com/
http://www.hotbot.com/
http://www.indolink.com/
http://www.webcrawler.com/
http://www.iwon.com/



MUSIC



http://www.hrithik.net/
http://www.mp3.com/
http://www.music3w.com/
http://www.indiagaana.com/
http://www.dhadkan.com/
http://www.musicworld4u.com/
http://www.enn2.com/
http://www.rhythmindia.com/
http://www.musiccurry.com/
http://www.supernet.com/
http://www.whitepathmusic.com/
http://www.indiaculture.miningco.com/
http://www.musicweb.co.uk/
http://www.musicweb.co.uk/
http://www.tipsmusicfilms.com/
http://www.topcassette.com/
http://www.ancient-future.com/
http://www.indiaexpress.com/
http://www.hindustan.net/
http://www.aishwarya-rai.com/
http://www.freemusic2u.com/
http://www.coolindiaworld.com/
http://www.angelfire.com/
http://www.bollynet.com/
http://www.joyofindia.com/
http://www.geocities.com/
http://www.justgo.com/
http://www.hamaracd.com/
http://www.ccmusic.com/
http://www.pointlycos.com/
http://www.cqkmusic.com/
http://www.guitarsite.com/
http://www.steelguitarcanada.com/
http://www.mtv.com/
http://www.compass.com/
http://www.rocknrollvault.com/
http://www.music.indiana.edu.com/
http://www.imusic.com/
http://www.civilwarmusic.net/
http://www.webprimitives.com/
http://www.classical.net/
http://www.allmusic.com/
http://www.classicalmusic.co.uk/
http://www.classicalusa.com/
http://www.tunes.com/
http://www.columbiahouse.com/
http://www.mp3grand.com/
http://www.irish-music.net/
http://www.iuma.com/
http://www.worldrecords.com/
http://www.contemplator.com/
http://www.humaracd.com/



E-GREETINGS


http://www.123greetings.com/
http://www.clubgreetings.com/
http://www.archiesonline.com/
http://www.hallmark.com/
http://www.cardbymail.com/
http://www.dgreetings.com/
http://www.bluemountain.com/
http://www.castlemountain.com/
http://www.bharathgreetings.com/



CRICKET



http://www.total-cricket.com/
http://www.cricket.org/
http://www.go4cricket.com/
http://www.khel.com/
http://www.cricket.org/
http://www.cricketnyou.com/
http://www.clickcricket.com/
http://www.thatscricket.com/
http://www.magiccricket.com/
http://www.cricketline.com/
http://www.yehhaicricket.com/
http://www.cricketnext.com/



GAMES


http://www.abc.go.com/
http://www.psygnosis.com/
http://www.hasbrointeractive.com/
http://www.mindspace.com/
http://www.nazaragames.com/
www.microsoft.com/games
http://www.shockblitz.com/
http://www.simthemepark.com/
http://www.gamesdomain.com/
http://www.indiagames.com/
http://www.gamesville.com/
http://www.lycoszone.com/
http://www.leftfoot.com/
http://www.usacoop.com/
http://www.funbrain.com/
http://www.blakkat.com/
http://www.moonme.com/
http://www.nintendo.com/
http://www.gungames.com/
http://www.gamepen.com/
http://www.huronline.com/
http://www.gamesdomain.com/
http://www.komando.com/
http://www.mortalcombat.com/
http://www.aylic.com/
http://www.leftfoot.com/
http://www.gamebot.com/
http://www.happypuppy.com/
http://www.station.sony.com/
http://www.paget.com/
http://www.avana.net/
http://www.riddler.com/
http://www.phrazzle.co.uk/
http://www.gamesdepot.com/
http://www.amo.qc.ca/
http://www.free-gaming.com/
http://www.arcadegamesonline.com/
http://www.plusmedia.com/
http://www.bytesize.com/
http://www.piginc.org/
http://www.nuclearnet.com/
http://www.diablopro.com/