Vous êtes sur la page 1sur 8

Questions:

1)An important first step in troubleshooting which component in a laser printer


is causing a jam is to:

Answer:

2)Can you declare any variable of size one bit in c?

Answer:

3)is this code legal?

Int*ptr;

Ptr=(int*)0*400;

Answer:

4)Verify the output

import java.util.scanner;

Public class evenodd

Public static void main((string[] args);

Scanner in=new scanner(system.in);

System.out.println(enter a number which u want to check);

Int n=in.nextint();

If(n%2==0){
System.out.println(n+is an even number)}

Else{

System.out.println(n+is a odd number)

}}}

Answer:

5)imagine a 3*3*3 wooden cube.how many cuts do we need to break it into


twenty seven 1*1*1 cubes?

A cut may go through multiple wooden pieces.

Answer:
Answer keyz:

1)You need your dual homed host XP (I assume) to be a router.

see <A
HREF="http://www.petri.co.il/configuring_routing_in_w2k_pro_xp_pro.htm"
target="_new">THIS </A> for a very good (but not confirmed) set of instructions.

Make sure you backup the registry since registry mods are required.

2)#include<stdio.h>

int main()

{ if(!printf("Hello")) printf("Hello");

else printf("World"); getchar();

3)1. Replace i by n in for loop's third expression

#include <stdio.h>

int main()

int i, n = 20;

for (i = 0; i < n; n--)


printf("*");

getchar();

return 0;}

2. Put '-' before i in for loop's second expression

#include <stdio.h>

int main()

int i, n = 20;

for (i = 0; -i < n; i--)

printf("*");

getchar();

return 0;

3. Replace < by + in for loop's second expression

#include <stdio.h>

int main()

int i, n = 20;
for (i = 0; i + n; i--)

printf("*");

getchar();

return 0;

4)A. note where in the paper path the paper stops

B. check all voltages

C. look up error codes

D. turn the printer off, then on again

E. remove the jammed paper

A)

5)Explanation:

#include<dos.h>

#include<stdio.h>

int main(){

union REGS i,o;

int x,y,k;

//show mouse pointer

i.x.ax=1;

int86(0x33,&i,&o);
//its value will false when we hit key in the key board

while(!kbhit()) {

i.x.ax=3; //get mouse position

x=o.x.cx;

y=o.x.dx;

printf("(%d , %d)",x,y);

delay(250);

int86(0x33,&i,&o);

return 0;

6)Explanation:

#include <stdio.h>

typedef struct{

unsigned int mt:1;

}myType;

int main(int argc, char*argv[]){

myType a;

printf("%d",a.mt);

return 0;

}
7)One solution is 010011,and it is probably the shortest in repesting series we
may get

110100110100110100111010011

If we are to look through the sequence we find that we can match the pattern
010011 but not the reverse pattern 110010.hence we now the direction of person
travelling.

8)garbage values

9): yes

10)enter a number which u want to check

4 is an even number

11)only once

12)#include<stdio.h>

Typedef struct{

Insigned int mt:1:

Mytype:
Int main(int argc.char*argv[]){

Mytype a;

Printf(d,a.mt);

Return ;

13)The central 1*1*1 cube has six faces.no cut can reveal two or more of these
faces!

So six cuts are necessary and sufficient.

14)yes using the bright sunrays,you can then burn away the string allowing the
ring to fall down on the bottom of the bottle.

15)The program suffers no problem and gives the output because the character
constants are stored in code/dat area and not allocated in stack,so this doesnt
lead to dangling pointers.

Vous aimerez peut-être aussi