MATHEMATICS AND COMPUTER HARDWARE QUESTIONS …



MATHEMATICS AND COMPUTER HARDWARE QUESTIONS AND ANSWERSQuestionThe decimal number +125 can be represented in signed binary as:Answer011111011000001011111001None of the aboveQuestionThe decimal number -36 is expressed in the 2’s complement form as:Answer110111001101101101011011None of the aboveQuestionThe inputs to a full-adder are A=1, B=1 and Cin=0. The outputs areAnswerSum=0, Cout=1Sum=1, Cout=0Sum=1, Cout=1None of the aboveQuestionThe sum of 1010+10111 equalsAnswer110001101101111010101111QuestionThe purpose of the clock input to a flip-flop is toAnswercause the output to change state dependent on the inputsclear the deviceset the devicealways cause the output to change statesQuestionFor an edge-triggered D flip-flopAnswera change in the state of the flip-flop can occur only at a clock pulse edgethe state that the flip-flop goes to depends on the D inputthe output follows the input at each clock pulse edgeall of these answersQuestionThe storage cell in a SRAM is a Answerflip-flopfusecapacitormagnetic domainQuestionThe bit capacity of a memory that has 10 bit long address and can store 8 bits at each address isAnswer819210241880QuestionThe benefit of the assembly language is that it is:AnswerFast and efficientCan be used on any processorEasier to write programsNone of the aboveQuestionThe benefits of RISC design simplicity areAnswerSmaller chip and pin countSmaller programsEasy programmingAll of the aboveQuestionThe states of the flags are stored in the ________AnswerStatus registerWorking registerInstruction registerFlag registerQuestionThe newer Microchip dsPIC is a ________ controller with digital signal processing capabilityAnswer32 bits16 bits8 bitsQuestionWhat is the size of the data bus in a PIC16F684?Answer481216QuestionThe difference of 101-011 equalsAnswer010100101011QuestionThe Boolean expression A.1 is equal toAnswerA01None of the aboveQuestionThe Boolean expression A + 1 is equal toAnswerA01None of the aboveQuestion366077513335Which of the following expressions is equivalent to A(A + B)?Answer-2540038735002317754762500A + B01None of the aboveQuestion3355975-3175002012950-12700001546225-317500The Boolean formula BC + ABC is equivalent to BC.AnswerTrueFalseQuestionWhat is one disadvantage of an R-S flip flop?AnswerIt has only a single outputIt has no CLOCK inputIt has no Enable inputIt has an invalid input stateQuestionWhen both inputs of a J-K pulse-triggered FF are high, and the clock cycles, the output will _________Answerbe invalidtogglenot changeremain unchangedQuestionThe function ABCD can be decoded with ______AnswerTwo 2-input OR gates and two invertersTwo 2-input OR gates and one inverterOne 4-input AND gate and one inverterOne 4-input AND gateQuestionThe relationship between a NOT gate and an AND gate is expressed by ________Answer72707525463500746125311785005556252641600054610031241900660400-11430365125-11430006604002667037465026670AB = A + BA + B = A BAB = A + BNone of the aboveQuestionThe commutative law of Boolean algebra states that A + B = A BAnswerTrueFalseQuestionThe output of a NOR gate is HIGH only when all inputs are HIGHAnswerTrueFalseQuestionThe output of a NAND gate is LOW only when all inputs are HIGHAnswerTrueFalseQuestionThe output of an OR gate is LOW only when at least one input is LOWAnswerTrueFalseQuestionWhen referring to instructions words, a mnemonic is:AnswerA short abbreviation for the operand addressShorthand for machine languageA short abbreviation for the operation to be performedA short abbreviation for the data word stored at the operand addressQuestionWhat is the difference between a microcontroller and microprocessor?AnswerA microcontroller does not have a CPU whereas a microprocessor has a CPUA microcontroller has no memory whereas a microprocessor has memoryA microcontroller contains the CPU, memory and I/O in a single chip whereas in a microprocessor the components may be in different chipsNone of the aboveQuestionWhat is TRISA in the PIC?Answerinput portoutput portmemorydata direction registerQuestionWhat is the primary function of a register?Answercountingencodingdata storage (memory)decodingQuestion111760021145500167957526860511080752686052051050249555203200249555The application of DeMorgan’s theorems will reduce the expression X = (A + B + C) + (A + B + C) + (AB + C) to which sum-of-products expression?Answer87947529845000612775308610355600308610147002541910135572532385124142532385X = (A + B + C) + ABC + ABC17748252793990016033752794001365250279400126047527940000879475279400X = (A + B + C) + (ABC) + (ABC)13557252787650012604752787651489075278765993775278765774700278765317563500050800127876500279400120655080001206540322512065X = ABC + ABC + AC + BC27940011430X = ABC + ABC + ABCQuestionThe output of an OR gate with inputs A, B, and C is a 1 whenAnswerA=1, B=1, C=1A=0, B=0, C=1A=1, B=0, C=1All of themNone of themQuestionThe Karnaugh map below represents the expression, X = ACD + AB(CD + BC)200025-5080000-27305-4953000C D-22860-4445000C DC D114300-4127500C D171450-3175000-19050-2222500A B00000-1270000A B00 11A B0001190500-3175000A B0001AnswerTrueFalseQuestionWhich of the following SoPs corresponds to the Karnaugh map below?175895-3492500-22860-4445000BC-13335-4318000BCBC114300-4127500BCA\BC000111100-1270000A01 111A11001Answer307975374653175294640317527940A + CAC 28892526606531758255C + ACB + C QuestionWhich of the following SoPs corresponds to the Karnaugh map below?-22860-4445000BBA\B010-1270000A01 1A100Answer317527940AA31758255BBQuestion317621336000165100255905How many gates would it require to implement Boolean formula A (B + C) in the straightforward way (without transformations or simplifications)?Answer5432QuestionThe output of an AND gate with inputs A, B, and C is a 1 whenAnswerA=1, B=1, C=1A=1, B=0, C=1A=0, B=1, C=0All are correct3314700252095Question2872105-13970002607945-2667000Which of the following is equivalent to (A + B)C?Answer498475255905127000255905AC + BC508000-5715(A + B)C146050825531758255AB + C38417527559031758255AB + C3514724239395Question3567430-4445003195955-444500Which of the following is equivalent to A(BC + AB + AC)?Answer4127526098600BC23177526987500A + BC127002692400031758255A31758255 . B + CABC + B + CQuestionWhich of the following expressions is represented by the following Karnaugh map?-27305-4953000CC171450-3175000-19050-2222500A B100-1270000A B01A B01190500-3175000A B10Answer127000255905AC + AC146050825531758255BC + BC91757526924012700028511579375027559031758255B + BAC + AC + BC + BCQuestionWhich of the following SoPs corresponds to the Karnaugh map below?-27305-4953000BBA\B01-19050-2222500A 011A 101Answer22225255905A + B1460508255AB-635028511512700028511531758255A + ABAB + BQuestion3594101-1651100Which of the following expressions is equivalent to A.A.B?Answer146051-127000A.BA1NoneQuestionThe binary number 11012 is equal to the decimal numberAnswer1349113QuestionWhen performing binary addition using the 2’s complement method, an overflow is indicated by a (n) _________AnswerNegative signIncorrect sign bitIncorrect polarityIncorrect sumQuestionThe output of an AND gate is LOW only when all inputs are LOWAnswerTrueFalseQuestionWhat is the BCD form of 438?Answer10100001110000100001110000001101101100100000110100QuestionThe highest decimal value that can be represented by a 4-bit binary number is ____________Answer328715Question4079875-3810003451225-13335Which of the following expressions is equivalent to (A + B) + A?Answer22225400050028892540005A + B222252584450ANoneQuestion3432175-18415Which of the following expressions is equivalent to A.B + A?Answer317428257400AB1NoneQuestionWhich of the following expressions is equivalent to A.C.B.D + A?AnswerA + B + C + DA.B.C.DANoneQuestionWhich of the following is equivalent to (A + C)(B + C)(B + D)(A + D)?AnswerAD + BCA + B + C +DAB + CDABC + BCD + ACD + ABDQuestionFor an OR gate, if any of the input is high (1), output is high (1)AnswerTrueFalseQuestionWhich of the following is the hexadecimal representation of binary number 1101001101?AnswerD3134DC4DD34QuestionAddition in Boolean Algebra is not equivalent to OR function.AnswerTrueFalseQuestionWhich of the following is the binary representation of decimal number 151?Answer1011000101511101110010111QuestionWhat is the hex equivalent of the binary number 101010112Answer8516E816AB169B16QuestionWhich of the following binary numbers is equal to 010100102 + 001100012?Answer011100112100000112000000112100000012QuestionWhich of the following binary numbers is equal to 11112 + 11112?Answer111102None of the answers is correct10000211112QuestionWhich of the following is the decimal representation of hexadecimal number 12316?Answer801102911012310413110QuestionWhich of the following is the number that is represented by 11101001 in 8-bit 2’s complement form? Answer233-99-23QuestionWhich of the following is the decimal representation of binary number 1000101?Answer691000101.08137QuestionWhich of the following is the binary representation of decimal number 101110?Answer101121011101111110011111110011QuestionWhat is the binary equivalent of 4F16?Answer1001111210011002100011112NoneQuestionThe decimal number -36 is expressed in the 2’s complement form asAnswer110111001101101101011011None of the aboveQuestionIn the 2’s complement form, the binary number 10010011 is equal to the decimal numberAnswer-109+109-19+19QuestionWhich of the following is the hexadecimal representation of decimal number 7522?Answer26131113621D6226D1QuestionWhat is the value of the sum 225 + 345?Answer445121511151005Question399415003613150-9525Which of the following expressions is equivalent to A.A.B + B?Answer12700310515AB1NoneQuestionAn OR gate has an output that is opposite of an NOR gateAnswerTrueFalseQuestion4175125-241303613151-3365500Which of the following expressions is equivalent to A.(A + B) + A?Answer2508244826000317557785A + B12700247651000ANoneQuestionWhich of the following expressions is represented by the following Karnaugh map?-27305-4953000CC171450-3175000-19050-2222500A B100-1270000A B01A B01190500-3175000A B00Answer10795046990AC + AC4127508255-6350285115127000285115BC + C24130011430ABC + BC146050825531758255BC + BCQuestionWhich of the following 4 bits must appear in the lower row of the Karnaugh map to correspond to the truth table below?ABCFunction00010011010101111000101111001111152971524384000156210-4699000-22860-4445000BCBC BC114300-4127500BCA\BC000111100-1270000A0111A1Answer0 0 1 10 1 1 01 1 0 11 0 1 0QuestionWhich formula describes the circuit shown below?1270014033500Answer774700304800(A + B)CDC(A + B) + DAB + C + DABCDQuestionThe following is the truth table for which gate?ABX000011101111AnswerOR gateAND gateNAND gateNOR gateQuestionA gate that gives 0 (low) when both its inputs are 1 (high) is a _________ gate.Answer-254006604000QuestionSelect the correct statement from the followingAnswerFlash memory uses a flashing beam of light to store dataDynamic RAMs must be periodically refreshed to retain dataRAM is Random Address MemoryOptical storage devices employ ultraviolet lightQuestionA byte-organised memory hasAnswer8 data output lines16 output data lines1 data output lineNone of the aboveQuestionRAM isAnswerVolatile memoryRandom address memoryStored data is not lost if power is removedAll answers are correctQuestionWhat is the binary equivalent of 178?Answer101111211112100012None of the aboveQuestionFind the output of an 8- bit AND gate for the following binary inputsA=01011100B=11110101AnswerQuestionFind the output of an 8-bit OR gate for the following binary inputsA=01011100B=11110101AnswerQuestionA circle, or “bubble”, on a distinctive-shape logic symbol indicates a logic inversionAnswerTrueFalseQuestionIn binary multiplication, 1 x 1 = __________Answer0 with a carry of 11 with a carry of 110QuestionThe Boolean expression for the symbol in the figure below is _______AnswerX = (A + B)(B + C)X = A + B + C + DX = AB + BCX = ABCDQuestionThe symbol shown in the figure below is a(n) ________ gateAnswerExclusive-ORANDExclusive-NORORQuestionWhich circuit in the figure below represents the NAND implementation of a NOR function?AnswerFigure AFigure BFigure CFigure DQuestionOccasionally, a particular logic expression will be of no consequence in the operation of a circuit such as in a BCD-to-decimal converter. These result in _____________ terms in the Karnaugh map and can be treated as either ___________ or __________AnswerDon’t care, 1s, 0sDuplicate, 1s, 0sSpurious, ANDs, ORsSpurious, 1s, 0sQuestion158432422860000How many gates, including inverters, are required to implement the equation, X = A + AB + AB, after it is simplified using Boolean algebra?Answer1234Question1040765247650007931152476500055499024765000Which single multi-input gate can be used to implement the Boolean formula A . B . C?AnswerNORANDNANDORQuestionWhich circuit in the figure below represents the NAND implementation of an AND gate?AnswerFigure AFigure BFigure CFigure DQuestionIn using the 2’s-complement system of subtraction, a negative number in the subtrahend would ultimately be changed to:AnswerA negative number in true binary formA positive number in true binary formQuestionWhich of the following lists memory devices from the most complex and expensive, to the least complex and expensive?AnswerFlash, EPROM, EEPROM, PROMPROM, Flash, EEPROM, EPROMEEPROM, Flash, EPROM, PROMEEPROM, PROM, Flash, EPROMQuestionFor the network shown below, the Boolean expression for X is ________Answer(AC + BC)D((A + B).C) + DA + BC + DD(A + B + C)QuestionAn assembler is used to ________AnswerConvert assembly language to machine codeConvert the assembly language from one processor to the assembly language for another processorConvert a high-level language to assembly languageWrite and edit assembly language programsQuestionAn advantage of assembly language programs is _________AnswerThey typically run faster than programs written in a higher level languageThey can use the same compiler tools as high-level languagesThey can run on any processorThey are well suited for large and complex applicationsQuestionA complier ________AnswerAllows machine code for one processor to run on another processorConverts machine code into assembly languageConverts assembly language into a high-level languageConverts a high-level language to machine codeQuestionHow many I/O ports are in the PIC (16F684)?Answer1234QuestionYou are given a task to write a program for PIC 16F684 in assembly language to light-up some of the LEDs. Which port will you need to use in the program?AnswerPort APort BQuestionIn a microcontroller, which of the following registers is used for temporarily storing the operands/result of an ALU operation?AnswerWorking registerInstruction registerProgram counterI/O registerQuestionMatch the following names of circuits or gates with the operations they performAnswerOR (Boolean sum) gateFinds the sum of three input bitsHalf-AdderFinds the sum of two input bitsFull-AdderFinds the sum of two n-bit input numbersParallel AdderFinds the maximum of two input bitsQuestionHow many instructions are there in a PIC?Answer3574108None of the aboveQuestionThe Control Unit decodes the instruction and generates control signals for registersAnswerTrueFalseQuestionThe assembler encounters the following instruction in the PIC16F684 programMOVF R, WWhat action would the assembler take?AnswerContents of register W are moved to RContents of register R are moved to WContents of register F are moved to RContents of register F are moved to WQuestionWhich register is used to address program memory?AnswerStatus registerInstruction registerWorking registerProgram counterQuestionWhich register is a dedicated temporary storage register that simply stores the current instructions to be executed?AnswerStatus registerInstruction registerI/O registerWorking registerQuestionHow many bits are required to program the PORTA/PORTC in the Op-code?Answer2418126QuestionBefore writing down assembly language instructions for the PIC, you need to give some instructions to the assembler. These instructions are referred to asAnswerthe BIOSExecutable instructionsSystem programsAssembler directivesQuestionInformation given to an assembler such as where to begin executing instructions is provided byAnswerthe BIOSExecutable instructionsSystem programsAssembler directivesQuestionSelect one of the basic functional blocks of a microcomputer: AnswerALUMicroprocessorHard driveNone of the aboveQuestionPIC16F684 has memory divided into blocks. What are the two memory blocks called?AnswerProgram and instruction memoryData and program memoryInstructions and data memoryProgram and Flash memoryQuestionThe 1’s complement of 10111001 isAnswer01000110010001111100011010111001QuestionThe 2’s complement of 11001000 isAnswer-109+109-19+19QuestionSelect the correct statement from the following:AnswerThe 2’s complement of the binary number 0001 is 1111The 1’s complement of the binary number 0101 is 1011BCD stands for Binary Code for DigitalLSB stands for Lowest Single BitQuestionChoose a correct statement from the followingAnswerThe decimal number system is a weighted system with ten digitsLSB stand for lowest single bitIn binary, 1 + 1 = 2The right-most bit in a signed binary number is the sign bitQuestionIn the 2’s complement form, the binary number 01110101 is equal to:Answer+117-117+10-10QuestionIn the 2’s complement form, the binary number 10010011 is equal to the decimal numberAnswer-109+109-19+19QuestionA 4-bit parallel adder can addAnswerTwo 4-bit binary numbersTwo 2-bit binary numbersFour bits at a timeFour bits in a sequenceQuestionSelect the correct statement from the following:AnswerWhen the two input bits are both 1 and the carry bit is a 1, the sum output of a full adder is 1A full adder adds three bits and produces two outputsBoth statements are correctBoth statements are falseQuestionSelect the correct statement from below:AnswerA half-adder adds two binary bitsA half-adder has a sum output onlyTwo 4-bit numbers can be added using two full-addersAll are incorrect statementsQuestionSelect the correct statement from below:AnswerA data byte consists of eight bitsA memory cell can store a byte of dataThe read operation always erases the data byteROM is a Random Output memoryQuestionA half-adder is characterised by:AnswerTwo inputs and two outputsThree inputs and two outputsTwo inputs and one outputNone of the aboveQuestionData is stored in RAM during theAnswerWrite operationRead operationEnable operationAddressing operationQuestionFor a gated D latch, the Q output always equals the D inputAnswerDuring the enable pulseBefore the enable pulseWhen D = 1When D = 0QuestionFor an edge-triggered D flip-flopAnswera change in the state of the flip-flop can occur only at a clock pulse edgethe state that the flip-flop goes to depends on the D inputthe output follows the input at each clock pulse edgeall of these answersQuestionIf a S-R latch has a 1 on the S input and a 0 on the R input and hen the S input goes to 0, the latch will beAnswerSetResetClearInvalidQuestionSelect the correct statement from below:AnswerA data byte consists of 8 bitsA memory cell can store a byte of dataThe read operation always erases the data byteROM is a Random Output MemoryQuestionDRAM must beAnswerRefreshed periodicallyProgrammed before each useAlways enabledReplaced periodicallyQuestionA memory with 256 addresses hasAnswer256 address lines8 address lines6 address lines9 address linesQuestionSelect the correct statement from followingAnswerA latch has two stable statesA latch is considered to be in SET state when the Q output is LOWAn edge triggered D flip-flop changes state whenever the D input changesAll are correctQuestionROM is aAnswerNon-volatile memoryVolatile memoryRead/write memoryByte-organised memory ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download