Ask Question - Get Answer

2 Ans BPSC Programming Aptitude Lab Test Important programs

Asked by Birds of the sky (2 Golds) Wednesday, 29 Dec 2021, 04:24 PM at (Education Tutorials)

Please log in to answer, like and save
0
Save 0

<<< Previous
Log in to Answer Next >>>

Answer(s):

Programming Language Important Questions for Standard Aptitude Test Questions

1. Explain the differences between call by value and call by reference with example. [Assistant Programmer, Palli Sanchay Bank, 2018]

2. Differentiate between constructor and destructor with example. [Assistant Programmer, Palli Sanchay Bank, 2018] [Programmer, Palli Sanchay Bank, 2018] [Assistant Manager Programmer, Bangladesh Land Port Authority, 2018]

3. Find the output of the following program: [Assistant Programmer, Palli Sanchay Bank, 2018]
int main()
{
int n = 10;
for( ; ; )
printf(“%d”, n);
return 0;
}
int main()
{
int i = 2, j = 2;
while(i?--i:j++)
printf(“%d”, i);
return 0;
}
4. Differentiate between Interpreter and Compiler. [Assistant Database Administrator, Palli Sanchay Bank, 2018]

5. Find the output of the following program: [Assistant Database Administrator, Palli Sanchay Bank, 2018]
int main()
{
int a = 5, b = 2, c = 1;
if(a&&b>c)
printf(“Bangladesh”);
else
break;
}
6. Explain the features of Object-Oriented Programming with examples. [Programmer, Palli Sanchay Bank, 2018] [Programmer, Export Promotion Bureau, 2018] [38th BCS Written, BPSC, 2018]
7. Find the output of the following program: [Programmer, Palli Sanchay Bank, 2018]
int main()
{
char str[120] = “Digital Bangladesh”;
int n;
n = strlen(str);
printf(“%s”, str);
return 0;
}
int main()
{
int i;
for(i=0;i<5;i++)
{
if(i==3)
continue;
printf(“%d\n”,i);
}
return 0;
}
8. Write the difference between throw and throws using exception handling. [Senior Officer (SD), Pubali Bank, 2018]
9. What do you mean by Polymorphism and Inheritance in object oriented programming (OOP). Give appropriate example. [Senior Officer (SD), Pubali Bank, 2018]
10. Write a C program to verify a perfect number. Perfect number is a positive integer which is equal to the sum of its proper positive divisors. [Assistant Programmer, Bangladesh Water Development Board, 2018]
11. Write a Java program using 2D array and array output will be: [Assistant Programmer, Bangladesh Water Development Board, 2018]
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
12. Write a simple Java program to convert string into camel case and display camel case string. [Assistant Programmer, Bangladesh Water Development Board, 2018]
13. What will be the output of the following program? [Assistant Programmer, Bangladesh Water Development Board, 2018]
int main()
{
int i = -1, j = -1, k = 0, l=2, m;
m = i++ && j++ && k ++||l++;
printf(“%d %d %d %d %d”, I, j, k, l, m);
return 0;
}
14. Consider a base class Shape and its derived class Rectangle. Design a code inheritance code using C++. [Assistant Programmer, Bangladesh Water Development Board, 2018]
15. Find the output of the following code: [Assistant Programmer, Bangladesh Water Development Board, 2018]
public class Test
{
public static void main(String args[])
{
String s1 = “test1”;
String s2 = new String(“test1”);
System.out.println(s1==s2);
String s3 = new String(“test1”);
System.out.println(s2==s3);
S3=s1;
System.out.println(s3==s1);
}
}
16. What are the error types in programming language? Explain elaborately. [Assistant Manager Programmer, Bangladesh College of Physicians & Surgeons College, 2018]

17. Write a program to check whether a given number is prime or not. [Assistant Manager Programmer, Bangladesh Land Port Authority, 2018] [Programmer, Bangladesh National Parliament Secretariat, 2014]

18. Find the output of the following programs: [Assistant Manager Programmer, Bangladesh Land Port Authority, 2018]
int main()
{
char str[100];
str[100]=”Bangladesh”;
int x = strlen(str);
str[4]=`\0’;
printf(“%s”, str);
return 0;
}
int main()
{
for(i=0; i<5; i++);
if(i==1)
continue;
printf(“%d”, i);
return 0;
}
int main()
{
int x=2000, y = 3000;
if(!(!x) && x)
printf(“%d”,x);
else
printf(“%d”,y);
return 0;
}
int main()
{
char str = ‘\0’;
if(str)
printf(“Empty String”);
else
printf(“Not Empty”);
return 0;
}
19. Given an array of size n, write down a Java program to check if it is sorted in ascending order or not. [Senior Officer (IT), Bangladesh Development Bank, 2017]

20. Write a program using any programming language that reads five numbers from keyboard and display the smaller, larger and average of those numbers. [Senior Officer (IT), Bangladesh Development Bank, 2017]


21. Write some differences between Method Overloading and Method Overriding in Java. [Senior Officer (IT), Agrani Bank Ltd., 2017] [Probationary Officer, Dutch Bangla Bank Ltd., 2016]

22. Write the performance of a non-recursive function which is written in recursive way. [Officer (IT), Agrani Bank Ltd., 2017]

23. Explain with examples different data types used in C language. [Assistant Programmer, Different Ministry(BPSC), 2017]

24. Write a program to read the coordinates of the end points of a line and to find its length. Use a structured variable name ‘Line’ to store the relevant information about its end points. [Assistant Programmer, Different Ministry(BPSC), 2017]

25. Write a C program to calculate the sum of the following series:
1+(1+2)+(1+2+3)+⋯+(1+2+⋯+n)
[Assistant Programmer, Different Ministry(BPSC), 2017]

26. Explain in details the different forms of looping statement in C language. [Assistant Programmer, Different Ministry(BPSC), 2017]

27. Write a C program with recursive function to compute the value X^n where n is a positive integer and x has real value. [Assistant Programmer, Different Ministry(BPSC), 2017]

28. Write a C program to sort an array and find max, min value. [Application Developer, Islami Bank Bangladesh Limited, 2017]

29. Write a C program to calculate GPA, Average and Total Marks of a student obtained in a particular semester in his/her university. [Application Developer, Islami Bank Bangladesh Limited, 2017]

30. What is pointer in C? Example. [Application Developer, Islami Bank Bangladesh Limited, 2017]

31. Write down the component of Java Virtual Machine and explain in brief. [Application Developer, Islami Bank Bangladesh Limited, 2017]

32. What is Object Oriented Programming? What are the main features of Object Oriented Programming? [Assistant Programmer, Bangladesh National Parliament Secretariat, 2017] [37th BCS Written, BPSC, 2018]

33. What type of problems can be solved using data abstraction? [Application Developer, Islami Bank Bangladesh Limited, 2017] [37th BCS Written, BPSC, 2018]
What are the objects in C++? [Application Developer, Islami Bank Bangladesh Limited, 2017]

34. How is a member function of a class defined? [Application Developer, Islami Bank Bangladesh Limited, 2017] [37th BCS Written, BPSC, 2018]

35. What is the difference among String, StringBuffer, and StringBuilder? [Probationary Officer, Dutch Bangla Bank Ltd., 2016]

36. What is the difference between Implement runnable interfaces and extend thread class? [Probationary Officer, Dutch Bangla Bank Ltd., 2016]
37. Write a Java program based on the following conditions: there is one circle class and one cylinder class. Circle class has an area function. Cylinder class has to calculate the circle area at the base and height of its own (Cylinder Volumn = Circle area * height). Use inheritance to calculate the Volume of the cylinder. [Probationary Officer, Dutch Bangla Bank Ltd., 2016]

38. Write a structure program to display Fibonacci series upto 100 numbers. [Assistant Maintenance Engineer, Bangladesh Bank, 2016]

39. What is the difference between while and do-while loop? [Assistant Maintenance Engineer, ICT Division, 2014]

40. Write a C/C++ program to calculate the factorial of any integer. [Assistant Maintenance Engineer, ICT Division, 2014]

41. What is programming? Write the main features of OOP? [Assistant Programmer, ICT Division, 2014] [37th BCS Written, BPSC, 2018]

42. What is Structured Programming Language? Explain with example. [38th BCS Written, BPSC, 2018]

43. Write a Program to store information using structures with dynamic memory allocation. [38th BCS Written, BPSC, 2018]

44. State the advantages and disadvantages of Object-Oriented Programming (OOP) over Structured Programming? [38th BCS Written, BPSC, 2018]

45. Explain encapsulation and inheritance in details. [38th BCS Written, BPSC, 2018]
46. Why are the following two overloaded functions inherently ambiguous?
int f(int a, int b=5);
int f(int &a);
[38th BCS Written, BPSC, 2018]

47. Write a Java program to check whether String2 is superscript of String1 or not. [Manager (Sfotware), NESCO, 2018]

48. Write a C program for multiplication of two given input numbers. [Assistant Programmer, Bangladesh Steep & Engineering Corporation, 2018]

49. Write a C program to find out the second max element in an array without using any library and sorting. [Probationary Officer (Software), Dutch Bangla Bank Ltd, 2018]
50. Write a C program to print out a diamond pattern. If n=5, then it prints:
*
* * *
* * * * *
* * *
*
[Probationary Officer (Software), Dutch Bangla Bank Ltd, 2018]

51. Write a C program to find out the number of occurrence of a digit, d in a given number, Number. [Probationary Officer (Software), Dutch Bangla Bank Ltd, 2018]
52. Write a C program to evaluate the series:
1*3+2*5+3*7+⋯.+n*(2n+1)
[Probationary Officer (Software), Dutch Bangla Bank Ltd, 2018]
53. Create a class Rational and Create two private int type property named numerator and denominator and create a constructor having no arguments and set numerator and denominator value to 1.
Create a constructor with two int type argument and set these arguments to numerator and denominator.
[Probationary Officer (Software), Dutch Bangla Bank Ltd, 2018]
Write a program to print all prime numbers between given specific ranges. [Assistant Programmer(SAT), ICT Division, 2018]
Write a program to count number of words from a given input string. [Assistant Programmer(SAT), ICT Division, 2018]

54. Write a program to print the following pattern (if n=5):
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
[Assistant Programmer(SAT), ICT Division, 2018]

55. Write a program to check whether a given number is palindrome or not? [Assistant Programmer(SAT), ICT Division, 2018]

56. Write a C program to show all prime numbers starting from 19 to 100 consecutive numbers with built-in functions. [Assistant Programmer(SAT), Multiple Ministry (BPSC), 2017]
57. Write a C program to reverse a given string without using any library functions. [Assistant Programmer(SAT), Multiple Ministry (BPSC), 2017]

58. Write a C program to show half inverted pyramid using star (*).[Assistant Programmer(SAT), Multiple Ministry, 2017]

59. Write a program that takes five positive integers as input and find out the summation of the input digits repeatedly until result is converged to a single digit. [Assistant Programmer, Bangladesh Parliamentary (SAT), 2018]

60. You have given a list of words. Write code that will take a line as follows:
[“Abedin”, “Rose”, “Ivan”], then your code would print the following:
Navi
Esor
Nibeda
[Assistant Programmer, Bangladesh Parliamentary (SAT), 2018]

61. Write a program to find the factorial of a given input number n using recursion. [Assistant Programmer, Bangladesh Parliamentary (SAT), 2018]
62. Write a program to generate the following pyramid:
Sample Input: 5
Sample Output:
* * * * *
* * * *
* * *
* *
*
[Assistant Programmer, Bangladesh Parliamentary (SAT), 2018]


63. Write a program to sort a string in alphabetic order. [Assistant Programmer, Export Promotion Beureau of Bangladesh (SAT), 2018]
Sample Input: adc1a2
Sample Output: 12aacd


64. Write a C program to find maximum and minimum element in array.
[Assistant Programmer, Export Promotion Beureau of Bangladesh (SAT), 2018]


65. Given a sentence, task is to remove spaces from the sentence and rewrite in Camel case. It is a style of writing where we don’t have spaces and all words begin with capital letters.
[Assistant Programmer, Export Promotion Beureau of Bangladesh (SAT), 2018]
Sample Input: I got intern at geeksforgeeks
Sample Output: IGotInternAtGeeksforgeeks

Answered by Birds of the sky (2 Golds) Wednesday, 29 Dec 2021, 04:35 PM

Please log in to Upvote, Downvote and Report

#DPDC-2018
#Sub Assistant Engineer (Computer)
#Venue: MIST
1. What is IPv6? What are the advantages of IPv6 over IPv4? 5 Marks
2. Write the steps of System Development Life Cycle (SDLC). 5 Marks
3. What are the differences between Software and Firmware? 5 Marks
4. Write the structure of C++ Program. 5 Marks
5. There are 4 digits in a Locker. Each digit can be 0,1,2,3,4,5,6,7,8,9. How many times it can be tried to open the locker? 5 Marks
6. Write the truth table and Draw the Logic Circuit for F = A'B'+C. 5 Marks
7. Write a program to add all numbers from 1 to N, where N should be taken as input from the console. 5 Marks
8. What do you mean by Single-Core Processor and Multi-core Processor? How many cores are there in Core i7 Processor? 5 Marks

Answered by Birds of the sky (2 Golds) Wednesday, 29 Dec 2021, 04:46 PM

Please log in to Upvote, Downvote and Report
           

Related Q/A:

1 Ans Write a C program to check a Palindrome Number

1 Ans The general rules for constructing names for variables (unique identifiers)

1 Ans Write a C program for Interest Calculation

1 Ans Write a C program to print Fibonacci number using recursion

1 Ans Write a C program to find the highest and lowest number in a series

1 Ans Best Web development site in the internet ?

3 Ans Three ways to find Greatest Common Divisor (GCD) and Least Common Multiple (LCM) in a C program

1 Ans Write a C program to reverse a number

2 Ans BPSC Programming Aptitude Lab Test Important programs

2 Ans BPSC aptitude test all programs solutions here


AL MaMun (active on Monday, 06 Sep 2021, 11:15 AM) (4 Golds)
Birds of the sky (active on Wednesday, 27 Apr 2022, 12:16 PM) (2 Golds)
Tajrimun Elisha (active on Friday, 22 Nov 2019, 08:56 AM) (2 Golds)
Hena Begum (active on Friday, 15 Feb 2019, 11:04 PM) (8 Bronzes)
Ghost (active on Saturday, 05 Jan 2019, 10:37 AM) (1 Silver)
BrandonDug (active on Thursday, 17 Dec 2020, 05:25 AM) ( New Contributor )
APU KUMAR ROY (active on Sunday, 22 Sep 2019, 02:42 AM) (1 Bronze)
Md Hasan (active on Saturday, 02 Nov 2019, 10:02 AM) (4 Bronzes)
student (active on Monday, 27 Jul 2020, 07:28 PM) (2 Bronzes)
GoMedii (active on Monday, 21 Dec 2020, 02:28 PM) ( New Contributor )
Shahansha Habib (active on Monday, 21 Oct 2019, 04:09 PM) (2 Bronzes)
عبد الحنان سلفي (active on Friday, 28 Aug 2020, 05:04 PM) (2 Bronzes)
Miskatul Zannat Bristy (active on Friday, 16 Jul 2021, 02:08 AM) ( New Contributor )
Jackson99 (active on Monday, 27 Apr 2020, 02:44 PM) ( New Contributor )
Md Mondol (active on Tuesday, 23 Jul 2019, 10:28 PM) (2 Bronzes)
Hazrat (active on Sunday, 26 May 2019, 05:55 AM) (2 Bronzes)
MD SAIFUL ISLAM (active on Friday, 24 Jan 2020, 04:13 PM) ( New Contributor )
Daily Science (active on Friday, 03 Jan 2020, 07:52 PM) ( New Contributor )
Sowrov (active on Thursday, 14 Feb 2019, 10:48 AM) (7 Bronzes)
Abdul Halim (active on Thursday, 03 Oct 2019, 05:36 PM) ( New Contributor )
Show All Members

Online Now 1
Today's Unique PageViews 295
Today's Total PageViews 2263
Site's Total PageViews 3489209