Programming Interview Questions and Answers
Ques:- A portable, personal computer, small enough to fit on your lap, is called a _____
A. Desktop computer
B. Mainframe computer
C. Handheld computer
D. Notebook computer
Ques:- A personal computer is designed to meet the computing needs of a(n)
A. Department
B. Individual
C. City
D. Company
Recent Answer :
: B. Individual
Ques:- A BIT represents a
A. Binary digit
B. Hexadecimal digit
C. Octal digit
D. Decimal digit
Recent Answer :
: A. Binary digit
Ques:- Supercomputers ________
A. Are of the same size as laptops
B. Are rarely used by researchers due to their lack of computing capacity
C. Are common in majority of households
D. Contain thousands of microprocessors
Recent Answer :
: C. Are common in majority of households
Ques:- Portable computer, also known as laptop computer, weighing between 4 and 10 pounds is called
A. Printer
B. Notebook computer
C. Scanner
D. Internet
Recent Answer :
: B. Notebook computer
Ques:- Which of the following are computers that can be carried around easily?
A. PCs
B. Laptops
C. Supercomputers
D. Minicomputers
Recent Answer :
: laptops
Ques:- A _____ is a large and expensive computer capable of simultaneously processing data for hundreds or thousands of users.
A. Mainframe computer
B. Handheld computer
C. Tablet computer
D. Personal computer
Recent Answer :
: Mainframe Computers
Ques:- The first computer which provides storage is
A. ACE
B. EDSAC
C. EDBAC
D. MARK-I
Recent Answer :
: B. EDSAC
Ques:- Which is not a basic function of a computer?
A. Accept input
B. Accept and process data
C. Scan text
D. Store data
Recent Answer :
: scan data
Ques:- A bit field is a
A. One or more adjacent bits within a word.
B. Member of a structure can be passed as an argument.
C. Pointer variable in a structure.
D. None of above
Ques:- Which of the following header file must be included in your property if you want to use graphics property?
A. screen.h
B. graphics.h
C. graph.h
D. stdio.h
Ques:- Every string must be terminated by
A. Linefeed character
B. Null character
C. Newline character
D. Carriage return character
Recent Answer :
: B. Null character
Ques:- The storage class controls
A. Scope of a variable
B. Life time of a variable
C. Both a and b
D. None of above
Ques:- Which of the following is not a valid reason for using functions?
A. They use less memory than repeating the same code.
B. They keep different program activities separate.
C. They run faster.
D. They keep variables safe from other parts of the program.
Ques:- The C language provides a way to access contents of a file from a program using
A. System calls
B. Library function
C. Both a and b
D. None of above
Ques:- The continue statement is used to
A. Continue execution of the program error occurs.
B. Exit from the outermost block even it is used in the innermost block.
C. Exit the block of loop statement.
D. Continue the next iteration of the loop statement.
Ques:- The operators exclusively used with pointers are
A. * and /
B. & and *
C. & and ^
D. * and +
Recent Answer :
: D. * and +
Ques:- A structure is a data type in which
A. Elements can be of different type.
B. Each element must have the same type.
C. Each element must be of pointer type.
D. None of above
Ques:- Preprocessor does not which one of the following?
A. Macro expansion
B. Conditional compilation
C. Loading include file
D. Type checking
Recent Answer :
: D. Type checking
Ques:- Which of the following statement is true about continue statement?
A. It can be used in conjunction with switch statement.
B. It terminates the loop.
C. It terminates the current iteration.
D. None of above
Ques:- Union differs from structure in the following way
A. Only one member can be used at a time.
B. Unions cannot have more than two members.
C. Union initializes all members as structure.
D. All members are used at a time.
Recent Answer :
: A. Only one member can be used at a time.
Ques:- Which of the following statement is true about register storage class?
A. Variable always stored in processor registers.
B. Can only be used with integral data types and pointers.
C. Variable takes initial value 0 if not initialized.
D. None of above
Recent Answer :
: Hii ch
Ques:- The C language allow arguments to be passed
A. Only call by value
B. Only call by reference
C. Both call by value as well as call by reference
D. None of the above
Recent Answer :
: only call by value
Ques:- Scope of the variable refers to
A. Duration for which the variable retains a given value during program execution.
B. Part of a program in which the variable can be recognized.
C. Value of the variable.
D. Data type of the variable.
Ques:- Which of the following statement about functions of false?
A. A function can call itself.
B. A function can call another function.
C. Constants can appear in the formal argument list.
D. More than one function is allowed in a program unit.
Ques:- The Turbo C implementation of C Language supports
A. High level file I/O
B. System level file I/O
C. Both a and b
D. Executable files only
Recent Answer :
: C. Both a and b
Ques:- What is the maximum resolution supported by VGA adapter?
A. 450 x 300
B. 640 x 200
C. 640 x 480
D. 1024 x 768
Recent Answer :
: C. 640 x 480
Ques:- The address of a variable can be obtained using _____ operator.
A. *
B. &
C. ?
D. ;
Recent Answer :
: B. &
Ques:- If one or more structure are other structures, then the structure is known as
A. Nested structure
B. Structured structure
C. Invalid structure
D. Self referential structure
Recent Answer :
: A. Nested structure
Ques:- A bit field is of type
A. double
B. float
C. int
D. all of the above
D. Notebook computer