Asked by
Birds of the sky (2 Golds)
Thursday, 30 Dec 2021, 03:24 AM
at (Education
Tutorials)
|
|
|
|
Answered by
Birds of the sky (2 Golds)
Thursday, 30 Dec 2021, 03:35 AM
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)
Thursday, 30 Dec 2021, 03:46 AM
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 |