BCC Assistant Programmer (CSE) 2017 – Written question & solution

Questions from the BCC Assistant Programmer (CSE) recruitment exam, 2017 – Written, shared by the candidates who sat it. The paper: 6 written questions. So far 6 written questions have been shared. Topics include Coding, Algorithm and DBMS.

Written (6)

  1. Write a C program to reverse an integer number.
  2. Write a C program to sort in ascending order (A-Z) using selection sort.
  3. Write a SQL query to get second highest salary from Employee table.
  4. Write output: #include <stdio.h> int main(){ int i=-20, j=-1, k=2,m; m=++i && ++j && ++k; printf("%d, %d, %d, %d\n", i,j,k,m); return 0; }
  5. Write output: #include <stdio.h> int main(){ int a=0, b=1, c=2; *((a)?&b:&a)=a?b:c; printf("%d, %d, %d\n",a,b,c); return 0; }
  6. Write output: #include <stdio.h> int main(){ float n=2; switch(n){ case 2: printf("Hi"); break; default: printf("Hello"); } return 0; }

Other papers for this post