Junior Software Interview Questions

12,129 junior software interview questions shared by candidates

Primitive Assembley Question: ============================= Assume your assembley language includes ONLY the following instructions: - 'inc REG': increments a given register by one. - 'dec REG': decrements a given register by one. - 'jnz LABEL': jumps to a given LABEL if the previous instruction's result was not zero. - 'HALT': stops running. Task: A and B registers hold non-negative values. The program should calculate the value of |A-B| and locate the result in C. In addition the language holds registers C, D, ..., Z, which you can assume are initialized at program start to zero.
avatar

Junior Compiler Software Engineer

Interviewed at CEVA

3.6
Apr 12, 2021

Primitive Assembley Question: ============================= Assume your assembley language includes ONLY the following instructions: - 'inc REG': increments a given register by one. - 'dec REG': decrements a given register by one. - 'jnz LABEL': jumps to a given LABEL if the previous instruction's result was not zero. - 'HALT': stops running. Task: A and B registers hold non-negative values. The program should calculate the value of |A-B| and locate the result in C. In addition the language holds registers C, D, ..., Z, which you can assume are initialized at program start to zero.

Viewing 1871 - 1880 interview questions

Glassdoor has 12,129 interview questions and reports from Junior software interviews. Prepare for your interview. Get hired. Love your job.