Posts

Showing posts from October, 2020

Insertion Sort

#include <stdio.h> int main() {     int length=6, i, j, k, key;     int A[6]={5,2,4,6,1,3};         for (j=1; j<=length; j++){        key=A[j];        i=j-1;        while (i>=0 && A[i]>key){           A[i+1]=A[i];           i=i-1;           }        A[i+1]=key;            }     for (i=0;i<length;i++){        printf( "%d " , A[i]);     }     return 0; }

Math Percentage Shortcuts

Image
প্রশ্ন : 100 টাকায় 10 টি ডিম কিনে 100 টাকায় 8টি ডিম বিক্রয় করলে শতকরা লাভ কত হবে? (৩৭-তম বিসিএস প্রিলি) (ক) 16% (খ) 20% (গ) 25% (ঘ) 28% [কোন সংখ্যক কেনা বেচা করলেও যদি টাকার পরিমান দু ক্ষেত্রে সমান হয় তাহলে 5 সেকেন্ডে বলার জন্য এভাবে ভাবতে হবে 8 টাতে লাভ 2টা বা 25%] প্রশ্ন : Apples are bought at the rate of 8 per 100 Taka and sold at the rate of 5 per 100 Taka. What is the gain or loss in this process? (৮টি কলা ১০০ টাকায় কিনে ৫টি কলা ১০০ টাকয় বিক্রি করলে শতকরা লাভ/ক্ষতি কত?) (Janata Bank Off:- 2009) a.82.5% b.75% c.72% d.60% e. none [ Help: ৫টাতে ৩টা লাভ হলে উত্তর ৫ ভাগের ৩ ভাগ বা ৬০%] প্রশ্ন : 02: Apples are bought at the rate of 8 per 100 Taka and sold at the rate of 5 per 100 Taka. What is the gain or loss in this process? (৮টি কলা ১০০ টাকায় কিনে ৫টি কলা ১০০ টাকয় বিক্রি করলে শতকরা লাভ/ক্ষতি কত?) (Janata Bank Off:- 2009) a.82.5% b.75% c.72% d.60% e. none [ Help: ৫টাতে ৩টা লাভ হলে উত্তর ৫ ভাগের ৩ ভাগ বা ৬০%]" প্রশ্ন: ৮ টি প্যান্টের বিক্রয়মূল্য ১০ টি প্যান্টের ক্রয়মূল্যের সমান হলে...

What is the network address for a host with the IP address 201.100.5.68/28?

A. 201.100.5.0 B. 201.100.5.32 C. 201.100.5.64 D. 201.100.5.65 E. 201.100.5.31 F. 201.100.5.1 Answer: C Explanation: This is a C ip with a subnet mask of 255.255.255.240 the host 201.100.5.68/28 belong to the second subnet which is 201.100.5.64 this is determined by doing the following:   Subnets = 2^4-2=14   Hosts = 2^4-2=14   Valid subnet range=256-240=16 16+16=32,16+32=48,16+48=64,64+16=80 and so as you can see the ip 201.100.5.68 belongs to the second subnet which is.64