Student Programmer Interview Questions

970 student programmer 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 361 - 370 interview questions

Glassdoor has 970 interview questions and reports from Student programmer interviews. Prepare for your interview. Get hired. Love your job.