Junior Software Developer Interview Questions

11,465 junior software developer 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 1761 - 1770 interview questions

Glassdoor has 11,465 interview questions and reports from Junior software developer interviews. Prepare for your interview. Get hired. Love your job.