Microprocessors Questions
Practice Microprocessors MCQs with answers and explanations. Page 2 of 3.
Category
Electronics and Communication Engineering
Topic
Microprocessors
Page
2 / 3
Mode
Practice
Questions
Open any question to view the answer and explanation.
Java compound assignment operator: If x = 5 and y = 2, what is the value of x after executing x += y?
Open
View answer
C 16-bit integer constants: Which of the following is not a valid 16-bit integer constant value in C (assuming a 16-bit <code>int</code> range of −32768 to +32767)?
Open
View answer
In the C programming language, which of the following identifiers cannot be used as a variable name (choose the reserved keyword that is invalid as an identifier)?
Open
View answer
In Java, which of the following array declarations are possible: (1) an array of integers, (2) an array of String objects, (3) a multidimensional array (array of arrays), (4) a single array mixing integers and Strings?
Open
View answer
Given JCOKE = 98 and LPEPSI = 42, evaluate the Fortran-style arithmetic IF: IF (JCOKE - 3 * LPEPSI) 5, 6, 7 with labels 5: JCOKE = JCOKE + 5, 6: JCOKE = JCOKE + 8, 7: JCOKE = JCOKE + 11. What is the final value of JCOKE?
Open
View answer
When selecting an integrated memory chip for a digital system, which characteristics should be examined before purchase and design-in?
Open
View answer
In standard Pascal, consider the following statements about files: (1) A file is a data structure consisting of a sequence of components of the same type. (2) The number of components in a file is variable. (3) Components can be accessed only sequentially starting from the beginning. Which statements are correct?
Open
View answer
In computer architecture, are instructions, data, and intermediate/final results during processing held in the Arithmetic Logic Unit (ALU)?
Open
View answer
Which memory in the computer memory hierarchy provides the fastest access time in typical systems?
Open
View answer
In Fortran, which of the following real variable names is invalid according to identifier rules?
Open
View answer
In the C programming language, which of the following is not a valid representation of a real (floating-point) constant?
Open
View answer
In the C programming language, which of the following identifiers is not a valid variable name under C's identifier rules (letters, digits, and underscores only; must not start with a digit; no spaces; keywords not allowed)?
Open
View answer
In the following C declarations and statements: int ram; float alpha, gamma; ram = 6400; alpha = 0.562; gamma = alpha * ram + 1; which statements are correct: (1) ram is an integer variable, (2) alpha and gamma are real (float) variables, (3) * and + are arithmetic operators, (4) 0.562 may be an integer or real constant?
Open
View answer
True or False: A computer virus can hide itself on a floppy disk (diskette) but not on a hard disk drive.
Open
View answer
In basic computer architecture, the Instruction Cycle (IC) comprises the Fetch Cycle (FC) and the Execute Cycle (EC). Which relationship is correct?
Open
View answer
Convert the binary number 1101.101 to its decimal (base-10) value.
Open
View answer
In C programming, how many standard storage classes are there (considering classic C: auto, register, static, extern)?
Open
View answer
In Fortran 77, consider the loop header: DO 52 N = 1, 10, 3. How many times will this DO loop execute?
Open
View answer
In C, which of the following is <em>not</em> a valid variable name (identifiers may include letters, digits, and underscores, cannot contain spaces, and must not start with a digit)?
Open
View answer
For the expression X = (A + B + 1.2) * (A + B - C), what is the correct left-to-right sequence of operations (operators only) considering parentheses and standard evaluation order?
Open
View answer
Practice smarter
Solve a few questions daily and revisit weak topics regularly to improve accuracy.