SUPERSTARWEBTECH

There is no elevator to success. You have to take the stairs. Take your first steps with SSWT!

CS201-Intro to Programming Quiz MCQs Lecture 1-22 Midterm Objective Questions

CS201-Intro to Programming Quiz  MCQS #Objective #Questions #Midterm
1. The increment of a pointer depends on its ___

  • variable
  • value
  • data type ✔
  • None

2. Given a two dimensional array of integers, what would be the correct way of assigning the value 6 to the element at third row and fourth column?

  • array[3][4] = 6;
  • array[2][4] = 6;
  • array[4][3] = 6;
  • array[2][3] = 6; ✔

3. ___ returns true if c is a digit and false otherwise.

  • int isalpha(int c)
  • int isalnum(int c)
  • int isxdigit(int c)
  • int isdigit(int c) ✔

4. ___ are conventional names of the command line parameters of the ‘main()’ function.

  • ‘argb’ and ‘argv’
  • ‘argc’ and ‘argv’ ✔
  • ‘argc’ and ‘argu’
  • None

5. To get the value stored at a memory address, we use the ___

  • referencing operator
  • dereferencing operator  ✔
  • simple operator
  • None

6. We can define a matrix as ___ array

  • Sorted
  • Unsorted
  • Single dimensional
  • Multi dimensional ✔

7. We can say that a pointer is a variable that hold the ___ address.

  • byte code
  • source code
  • memory ✔
  • compiler

8. dereferencing operator is represented by ___

  • * ✔
  • +
  • None

9. Base address is the memory address of ___ element of an array.

  • 1st ✔
  • 2nd
  • 3rd
  • 4th

10. A character is stored in the memory in ___

  • byte ✔
  • integer
  • string
  • None

11. At the ___, we try to break up the problem into functional units.

  • analysis phase
  • design phase ✔
  • implementation phase
  • None

12. We use ___ to open a file or stream for insertion.

  • in  ✔
  • out
  • app
  • ate
SHARE THIS POST