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)
- Write a C program to reverse an integer number.
- Write a C program to sort in ascending order (A-Z) using selection sort.
- Write a SQL query to get second highest salary from Employee table.
- 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; }
- 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; }
- Write output: #include <stdio.h> int main(){ float n=2; switch(n){ case 2: printf("Hi"); break; default: printf("Hello"); } return 0; }