C Programming C-Programming MCQs

Showing 34 questions (Total: 34)

Upazila Post Master of Postal Directorate of Ministry of Posts and Telecommunication #1

নিচের কোনটি প্রোগ্রামিং ল্যাংগুয়েজ?

ক: পাওয়ার পয়েন্ট
খ: এমএস এক্সেল
গ: সি
ঘ: উইন্ডোজ
Bank Alfalah Ltd #2

In a computer program, the process of executing the same instructions over is called :

A: Branching
B: Looping
C: Circulating
D: Hierarchical Charting
Agrani Bank Ltd #3

The place value in a string of decimal digits are expressed by

A: fractions of 10
B: multiples of 10
C: powers of 10
D: squares of 10
Sonali Bank Ltd #4

নিচের কোনটি সেকেন্ডারি স্টোর ডিভাইজ (Secondary Store Device)-এর উদাহরণ নয়?

ক: হার্ড ডিস্ক (Hard disk)
খ: র‌্যাম (RAM)
গ: ম্যাগনেটিক টেপস্‌ (Magnetic Tapes)
ঘ: সি ডিস (CDs)
Janata Bank Ltd #5

which of the declaration is correct?

A: Int length,
B: char int,
C: int long,
D: float double ;
Combined Bank #6

___ is a statement that is executed automatically by the system.

A: trigger constraint
B: assertion
C: durability
D: integrity
Combined Bank #7

what does a COMMIT statement do to a CURSOR :

A: Open the Cursor
B: Fetch the Cursor
C: Close the Cursor
D: None of these
Janata Bank Ltd #8

what is the time complexity of Huffman Coding?

A: O (N)
B: O (NLogN)
C: O (N(logN)^2
D: O (N^2)
Janata Bank Ltd #9

which function overloads the>> operator?

A: gt()
B: more ()
C: ge ()
D: None of these
Janata Bank Ltd #10

which of these is not a core data type?

A: Lists
B: Dictionary
C: Class
D: Tuples
Janata Bank Ltd #11

Which of the following function convert a string to a float in python ?

A: int (x. [.base])
B: float (x)
C: long (x.[base])
D: str(x)
Combined Bank #12

which of the following will produce an answer that is closest in value to a double , d. while not being greater than d?

A: (int) Math . min (d);
B: (int)Math. max(d);
C: (int)Math .abs (d);
D: (int)Math.Floor(d);
Janata Bank Ltd #13

which of the declaration is correct ?

A: Int length,
B: char int;
C: int long ;
D: float double;
Combined Bank #14

which operator is used to declare the destructor in C++ ?

A: #
B: ~
C: @
D: $
Combined Bank #15

which alternative can replace the throw statement in C++ ?

A: for
B: break
C: return
D: exit
Combined Bank #16

what type of reference should be used in vector arithmetic in C++ =?

A: Dynamic
B: Const
C: both dynamic & const
D: static
Combined Bank #17

which of the following is an incorrect statement about packages?

A: Package defines a namespace in which classes are stored
B: A package can contain other packages within it
C: Java uses file system directories to store packages
D: A package can be renamed without renaming the directory in which the classes are stored.
Combined Bank #18

which of the following statements is the negation of the statements '4 is odd or -9 is positive'?

A: 4 is even or - 9 is not negative
B: 4 is odd or 9 is not negative
C: 4 is even and - 9 is negative
D: 4 is odd and - 9 is not negative
Combined Bank #19

why do we need to handle exceptions?

A: To prevent abnormal termination of program
B: To encourage exception prone program
C: To avoid syntax errors
D: To save memory
Combined Bank #20

How to access the overridden method of base class from the derived class?

A: Using arrow operator
B: using dot operator
C: using scope resolution operator
D: Can't be accessed once overridden
Combined Bank #21

Int C = 10 , system out println (C-) , gives a output of

A: 10
B: 11
C: 9
D: 8
Janata Bank Ltd #22

Suppose a C program has floating constant 1.414, what's the best way to convert this as 'float' data type?

A: (float) 1.414
B: Float (1,414)
C: 1,414f or 1.414 F
D: None of these
Janata Bank Ltd #23

Consider the following variable declarations and definations in C . (i) int var _ 9 =1 ; (ii) int 9 _ var =2; (iii) int + =3; Choose the correct statement w.r.t above variables.

A: Both i. and ii. are valid
B: Only i. is valid
C: Both i. & iii. are valid
D: All of these
Janata Bank Ltd #24

For a given integer, which of the following operators can be used to 'Set' and 'reset ' a particular bit respectively?

A: I and &
B: && and II
C: & and I
D: II and &&
Sonali Bank Ltd #25

what is an example of iteration in C?

A: for
B: while
C: do -while
D: all of the above
Janata Bank Ltd #26

How many time the following for loop will be executed ? unsigned int i for ( i=100; i > = 0, i --) printf ("%d", i)

A: Undefined
B: 100
C: 99
D: 10
Sonali Bank Ltd #27

What is the process of defining two or more methods within the same class that have same name but different parameters declaration?

A: method overding
B: method overloading
C: method hiding
D: method duplication
Sonali Bank Ltd #28

Which of the following is a valid declaration of an object of class Box?

A: "Box obhj -new BOx();"
B: Box obj=new Box;"
C: obj=new Box();"
D: new Box obj;"
Sonali Bank Ltd #29

Which of the following is a correct format for declaration of function?

A: "return-type function name (argument type;)"
B: "return-type function -name (argument type){}"
C: "return -type (argument type ) function-name"
D: "return-type {} function -name"
Sonali Bank Ltd #30

Which of the following doesn't requirement an & for the input in Scant()?

A: "char name [10]."
B: "int name [10];"
C: "float name [10];
D: "double name [10];
Pubali Bank Ltd #31

Virtual memory consists of __ .

A: Static RAM
B: Dynamic RAM
C: Magnetic memory
D: None
Government Job and Other Recruitment Exams #32

The expression x+3 is______

A: one variable
B: two variables
C: no variable
D: none of these
Probashi Kallyan Bank #33

Which one of the following is a loop construct that will always be executed be execited once?

A: for
B: while
C: switch
D: do while
Government Job and Other Recruitment Exams #34

The delay that occurs between the time a check is written and the money is deducted from the client's account is known as-

A: maturity
B: overdraft
C: float
D: amortzation
← Previous Page 1 of 1 Next →