Student Engineer Interview Questions

1,501 student engineer interview questions shared by candidates

You have the following commands: 1. inc X - Increment register X by 1. 2. dec X - Decrement register X by 1. 3. jnz LABEL - Jump to LABEL if the last executed command did not return 0. 4. BREAK - terminate the program. Given registers A and B which contain non-negative numbers, and registers C-Z which all contain 0, calculate |A-B| using only the 4 given commands.
avatar

Student Developer

Interviewed at CEVA

3.5
Oct 14, 2020

You have the following commands: 1. inc X - Increment register X by 1. 2. dec X - Decrement register X by 1. 3. jnz LABEL - Jump to LABEL if the last executed command did not return 0. 4. BREAK - terminate the program. Given registers A and B which contain non-negative numbers, and registers C-Z which all contain 0, calculate |A-B| using only the 4 given commands.

Viewing 581 - 590 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 1,501 interview questions and reports from Student engineer interviews. Prepare for your interview. Get hired. Love your job.