Home>
DCSA Question andAnswer> Computer Programming 111
For DCSA
Visual Programming Question and Answer
Office Automation Question and Answer 131
Computer Skill Quiz and Answer
MS Word Quiz and Answer
MS Excel Quiz and Answer
MS PowerPoint Quiz and Answer
Adobe Photoshop Quiz and Answer
Adobe Illustrator Quiz and Answer
Logo Design Quiz and Answer
|
Question 1. Which of the following is not valid identifier?
a. Sum_1
b. TABLE
c. "X"
d. Names
Answer : c
Question 2. Which of the following represent for integer quantity?
a. Char
b. int
c. float
d. double
Answer : b
Question 3. Which of the following is the valid expression for character constant?
a. 'A'.
b. "A"
c. 'A
d. '"A"'
Answer : a
Question 4. Which of the following is called 'modulus operator' in C?
a. %
b. +
c. -
d. *
Answer : a
Question 5. If V1 and V2 are floating-point variables whose values are 12.5 and 2.0 respectively, then value of the expression V1*V2 is
a. 14.5
b. 12.5
c. 25.0
d. 24.0
Answer : c
Question 6. The most commonly used assignment is.
a. ==
b. =
c. >=
d. +
Answer : b
Question 7. Which of the following is library function in C?
a. printf(...)
b. &&
c. print(...)
d. printf.
Answer : a
Question 8. The getchar function is a part of the standard C
a. I/O library
b. input library
c. output library
d. all of the above
Answer : a
Question 9. Each character group must begin with a sign
a. %
b. *
c. #
d. $
Answer : a
Question 10. The printf function interprets S-type conversation different than
a. getchar function
b. scanf function
c. include
d. putchar function
Answer : b
Question 11. The large clear space beneath the menu bar is
a. a scroll bars
b. an editing bar
c. a tool bar
d. a screen editing
Answer : b
Question 12. Which one is not the debugging technique?
a. Error isolation
b. Tracing
c. Watch values
d. calculation
Answer : d
Question 13. Most C compiler will generate
a. error message
b. diagnostic message
c. debugging message
d. syntactic error
Answer : b
Question 14. The else portion of the if-else statement in C is
a. compulsory
b. optional
c. general form
d. all of the above
Answer : b
Question 15. The while statement is used to carry out
a. looping operation
b. logical test
c. numerical calculation
d. all of the above
Answer : a
Question 16. The break statement in C is used to
a. terminate loop or to exit from a switch
b. complete loop or to exit from a switch
c. terminate loop and exit from a switch
d. exit from a switch only
Answer : a
Question 17. The continue statement can be included within
a. for statement
b. a do-while or a for statement
c. a do-while and a for statement
d. a while, a do-while or a for statement
Answer : d
Question 18. In general form, the goto statement is written as
a. goto statement
b. goto label
c. goto {expression}
d. goto
Answer : b
Question 19. Function prototypes are usually written
a. at the end of the programme
b. middle of the programme
c. at the beginning of a programme
d. all of the above
Answer : c
Question 20. Passing an argument by value has
a. advantages
b. disadvantages
c. advantages and disadvantages
d. all of the above
Answer : c
Question 21. passing by value is restricted to an one way transfer of
a. information
b. data
c. information and data
d. arguments
Answer : a
Question 22. Recursion is a process by which a function calls itself
a. repeatedly
b. only one time
c. two times
d. all of the above
Answer : b
Question 23. Which of the following is often to as global variables?
a. Automatic variables
b. External variables
c. Static variables
d. Automatic and External variables
Answer : b
Question 24. A external variable declaration must begin with the storage-class specifies
a. Auto
b. Extern
c. Static
d. Extern and Static
Answer : b
Question 25. Within a multi-file program, a function definition may beeither
a. External or Static
b. Static or Automatic
c. External or Automatic
d. Automatic or Static
Answer : a
Question 26. Which of the following statement is true?
a. Most C compliers include library functions that allow string to be compared, copies or concatenated
b. Most C compliers include library functions that allow string to be concatenated
c. Most C compliers include library functions that allow string to be copies and concatenated
d. Most C compliers include library functions that allow string to be copied
Answer : a
Question 27. An entire array can be passed to be a function as
a. a function
b. an argument
c. data
d. function and argument
Answer : b
Question 28. Multidimensional array are passed in the same manner as one-dimensional arrays
a. on element-by-element basis
b. on function-by-function basis
c. on argument-by-argument basis
d. none of the above
Answer : b
Question 29. For one-dimensional array, the size is specified by
a. a negative integer expression, enclosed in square brackets
b. a positive integer expression, enclosed without brackets
c. a positive integer expression, enclosed in square brackets
d. a positive integer expression, enclosed within braces.
Answer : c
Question 30. Which of the following statement is true?
a. Pointer variable can point to only numeric variables
b. Pointer variable can point to numeric or character variables
c. Pointer variable can point to only pointer variables
d. Pointer variable can point to only arrays and functions.
Answer : b
Question 31. When a pointer variables is declared, the variable name must be preceded by
a. A sterisk (*) sign
b. & sign
c. %% sign
d. (**) sign
Answer : a
Question 32. Each pointer will indicate the beginning of a seperate
a. (n-1) dimensional array
b. 2n-dimensional array
c. n-dimensional array
d. (2n-1) dimensional array
Answer : a
Question 33. Which of the following statement is correct?
a. Successive calls to the host function can pass different pointers to the guest
b. Successive calls to the host function can pass different pointers to the host
c. Successive calls to the guest function can pass different pointers to the host
d. Successive calls to the host function can pass different pointers to the guest and host
Answer : b
Question 34. Structure declarations are somewhat more complicated than
a. pointer declaration
b. array declaration
c. array and pointer declaration
d. function declaration
Answer : b
Question 35. A structured number can be accessed by writing
a. Variable character
b. Variable member
c. variable
d. var.number.
Answer : b
Question 36. The typedef feature allows users to define new data types that are equivalent to
a. existing data types
b. new data types
c. initial data types
d. all of the above
Answer : a
Question 37. a data file must be created before it can be
a. processed
b. closed
c. opened
d. stated
Answer : a
Question 38. The pointer ptvar is often referred to as
a. null pointer
b. a stream pointer
c. buffer area
d. all of the above
Answer : b
Question 39. The syntax of library function fclose is
a. ffclose(ptvar);
b. close(ptvar);
c. fclose(ptvar);
d. fclosed(ptvar);
Answer : c
Question 40. Which of the following statement is correct?
a. A stream-oriented data files can be created in three ways
b. A stream-oriented data files can be created in four ways
c. A stream-oriented data files can be created in two ways
d. A stream-oriented data files can be created in one ways
Answer : c
|
|