Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (aravindg):

need help with some doubts on cpp

OpenStudy (aravindg):

ready ? :)

OpenStudy (opcode):

Yes :-).

OpenStudy (aravindg):

1 min

OpenStudy (opcode):

Okay :P

OpenStudy (aravindg):

i have a match the following qn: A B C 1.dot matrix printer high quality print Optical 2.monitor text editing pixels 3.laser printer Pointing 24 pin 4.mouse resolution impact 52x toner

OpenStudy (aravindg):

I have doubt in matching B and C

OpenStudy (aravindg):

as far as i tried do matrix impact monitor resolution pixels laser printer high quality print mouse pointing

OpenStudy (aravindg):

laser printer is optical i suppose

OpenStudy (opcode):

Mouse > Pointing > Optical (Ever heard of Optical Mouses?) Laser printer > 52x toner > Higher quality printing (100% sure) Dot matrix printer > 24 Pin (100% sure) Monitor > Resolution > Pixels Optical Mouses: http://en.wikipedia.org/wiki/Optical_mouse

OpenStudy (aravindg):

so i suppose dot matrix goes with impact and text editing is left out

OpenStudy (aravindg):

ok?

OpenStudy (opcode):

Hmm. Dot matrix printing is also called: "impact matrix printing". As for text editing I'm not sure :S

OpenStudy (aravindg):

ok an example for ROM other than BIOS ?

OpenStudy (aravindg):

op ?

OpenStudy (opcode):

Hmm. I'm thinking firmware and some processors. When talking about ROM you mean "Read Only Memory"? Honestly I don't know that much about circuits :/

OpenStudy (aravindg):

yeh i meant read only memory qn specially for u >> i am 97 % sure but just confirming An instruction to CPU consists of an _____________ which tells 'what to do ' and an ________ which refers to 'on what it should be done '.

OpenStudy (aravindg):

the exact qn is give any two applications of ROM , I know 1 :used in BIOS

OpenStudy (opcode):

I'm thinking bootstrap.

OpenStudy (aravindg):

but doesnt that come under BIOS ?

OpenStudy (aravindg):

i am thinking of flash memory now

OpenStudy (opcode):

Okay this is how I see it: When turning on your computer the CPU reads the address FFFF:0000h. The address is 16 bytes. This isn't enough for the BIOS... This address jump or tells the CPU were the actual BIOS is. After reading the BIOS it writes it to the memory.

OpenStudy (aravindg):

i read somewhere flash memory use electrically erasable ROM

OpenStudy (aravindg):

what abt the other qn ?

OpenStudy (aravindg):

reply ........

OpenStudy (aravindg):

op is it lag issue or are u thinking ? :)

OpenStudy (opcode):

I'm thinking. It's would have been easier if there were choices :/

OpenStudy (aravindg):

isnt it opcode and operand ?

OpenStudy (opcode):

Possible but that's too specific. Maybe it's: An instruction to CPU consists of an ALU which tells 'what to do ' and an BIOS(memory unit) which refers to 'on what it should be done '.

OpenStudy (aravindg):

i think my answer is what they expect in the test

OpenStudy (opcode):

Possible :-). There's honestly could be multiple answers.It depends on how much you've learned in this subject...

OpenStudy (aravindg):

http://en.wikipedia.org/wiki/Opcode i am sure ok what abt this : 3.A DTP centre works for inputing ,editing and publishing text and images .High quality printers and graphical input devices are required to operate a DTP centre .Considering these factors ,write a technical specification of computer and peripherals required for starting a new DTP centre

OpenStudy (aravindg):

.....

OpenStudy (opcode):

I thinking :P. Okay so is the question asking what would be needed to run the hardware? I'm not really sure I understand what it's getting at...

OpenStudy (aravindg):

its getting at the specifictaion and carries 3 mark ....dont u remember the specification we talked abt for home computing and professional ? But here I think we need modifications

OpenStudy (aravindg):

and add ins for DTP facility

OpenStudy (opcode):

Hmm. Okay let me think.

OpenStudy (aravindg):

....................

OpenStudy (opcode):

Okay the peripherals needed for a DTP(Desktop publishing) center are: Digital Cameras Printers Office Equipment Scanners \(\text{Computer Systems}:\) I can't put it exactly what's needed but: Keyboard, Mouse, Tablet Memory / Storage Monitors Are factor to take into consideration. Since you are working with images, that can quickly amount to a lot of data. Most professional designers use a Mac...

OpenStudy (aravindg):

i will have to leav for 30 min ..i am typing the rest doubts below : 1) How will you distinguish between field and a record ? 2)match devices with slots DEVICES SLOTS 1.Display PCI 2.NIC IDE 3.Pen drive AGP 4.Hard Disk Serial 3)cout<<"Result is"<<(mark>=50)?"PASS":"FAIL"; Identify operators ,literals and identifiers in above code segment 4)the ability of a program to act differently depending on situation is known as _______ i think its polymorphism 5)distinguish between a)Integer I2(I1); B)Integer I2=I1; c)I2=I1

OpenStudy (opcode):

There hard drive would normally hold terabytes of data. So a bigger hard drive is always used, things like 2TB and 3TB are good amounts. There monitors normally use a higher resolution. This is for images, and when editing images. Keyboards: QWERTY keyboard or Dvorak? If you are going to editing text you'll need to be fast.

OpenStudy (aravindg):

Ok where should i take the specified values from home pc or professional ?

OpenStudy (opcode):

1) How will you distinguish between field and a record ? A record contains fields... For example: If you have a database for a car repair shop. A record in the database might be for a specific car in your shop. The record would include fields such as year, make, model, color, and etc.

OpenStudy (aravindg):

ok i have to go now ..will try to come back as soon as possible

OpenStudy (opcode):

Okay :-). I'll keep answering them :D

OpenStudy (aravindg):

:D

OpenStudy (opcode):

2) Match devices with slots DEVICES SLOTS 1.Display PCI 2.NIC IDE 3.Pen drive AGP 4.Hard Disk Serial Display >> AGP [Accelerated Graphics Port] (AGP is being used less more and more people are going with PCI express now] NIC (network interface card) >> PCI Pen drive >> A pen drive is also called a flash drive or more likely a USB. [Universal Serial Bus] So: Pen drive >> Serial Hard Disk >> IDE [Ever heard of an IDE hard drive and SATA hard drive?]

OpenStudy (aravindg):

doesnt pen drive match to USB ?

OpenStudy (opcode):

Pen drive go with serial.

OpenStudy (aravindg):

but i tought USB ports were for pen drives

OpenStudy (opcode):

3) cout<<"Result is"<<(mark>=50)?"PASS":"FAIL"; Identify operators ,literals and identifiers in above code segment Operators: Are like: " +, -, *, /, %, =" Operators assigns a value to a variable. The beauty of C++ is it doesn't relay on words! Making it more international :-) Identifiers: http://msdn.microsoft.com/en-us/library/565w213d.aspx Literals: http://msdn.microsoft.com/en-us/library/c70dax92(v=vs.80).aspx 4) The ability of a program to act differently depending on situation is known as _______. I think it's inheritance.... 5) Distinguish between: a)Integer I2(I1); B)Integer I2=I1; c)I2=I1 Uh-oh, lost the connection… Trying to reconnect now.

OpenStudy (opcode):

LOL I got cut off :/ Okay hold on :P I'll type it up again :D

OpenStudy (konradzuse):

. . . . .

OpenStudy (aravindg):

@KonradZuse you are a funny mod :)

OpenStudy (konradzuse):

:)

OpenStudy (aravindg):

sorry i ran out of medals :P

OpenStudy (aravindg):

*bell rings:time to sleep

OpenStudy (konradzuse):

already? weak... was waiting for op to finish up.

OpenStudy (aravindg):

op i have to leav will read ur reply tomorrrow ..thanks in advance

OpenStudy (aravindg):

@Opcode is it over?

OpenStudy (opcode):

Wait! I'm checking something :/ I think I may have mixed it up with some other language :/ But here: A) Means to take the variable and multiple it's self. B) Means that the variable is equal to it's self. C) It's the same as B. I'm thinking I may have mixed it with LUA :S Konrad? Anyhelp :3

OpenStudy (aravindg):

@KonradZuse i have to wake up early tomorrow ..going o some places

OpenStudy (aravindg):

yey !!

OpenStudy (konradzuse):

it's only 12:30 I just wpoike up :(

OpenStudy (aravindg):

its 11 pm here

OpenStudy (opcode):

I'm sure there's a difference between B and C. I'm just burned :/

OpenStudy (aravindg):

@Opcode lols that was not the answer i was looking for , i need something like using constructor method calling ,copy constructor, etc

OpenStudy (aravindg):

related to that stuff

OpenStudy (aravindg):

not common man's language :P

OpenStudy (aravindg):

ok bye hav to leav ..bye !

OpenStudy (opcode):

*facepalm*

OpenStudy (opcode):

I realized something... I left this :O Anyway a copy constructor is when you pass the values of another object to the constructor as arguments. Here is a simple example: ``` void main { integer i1; //Default constructor is called integer i2(i1);// Copy constructor is called } ``` Now to answer your question: ``` Distinguish between: A)Integer I2(I1); B)Integer I2=I1; C)I2=I1 ``` Both A and B call the copy constructor because "l2" is being created at the time. Although the difference is B is dynamically initializing the values of object l1 to l2. For "C" you would need to overload the '=' operator or the compiler would(will) copy the member variable directly. Sorry for the late reply, I was tipsy yesterday :/

OpenStudy (aravindg):

no..and thanks ! today is my last day of preparation ..i got my final tomorrow ..hope u will be here so that i can get cleared of all my doubts !!

OpenStudy (opcode):

So did you understand? Anyway good luck.

OpenStudy (aravindg):

ya i had kind of 70% sure ..just needed to read it thanks

OpenStudy (opcode):

Okay.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!