? GTU Engineering 1st Year MCQ | Computer Programming and Utilization-2110003 Summer 2017 Sem-2

MCQ(s) of Computer Programming and Utilization (2110003) - Summer 2017 Sem-2

    • Q. 1  In flowchart for what purpose diamond symbol is used?
    • (A) Processing
      (B) Condition
    • (C) Data Flow
      (D) Input/Output
    • (B) Condition
    • Q. 2  Continue statement
    • (A) Breaks loop and goes to next statement after loop.
      (B) Does not break loop but starts new iteration.
    • (C) Exits the program.
      (D) Starts from beginning of program.
    • (B) Does not break loop but starts new iteration.
    • Q. 3  Which of the following loop is executed at least once
    • (A) for loop
      (B) while loop
    • (C) do while loop
      (D) None of the above
    • (C) do while loop
    • Q. 4  ASCII value of ‘a’ is
    • (A) 97
      (B) 65
    • (C) 47
      (D) None of the above
    • (A) 97
    • Q. 5  A float requires ______bytes in memory
    • (A) 2 bytes
      (B) 1 byte
    • (C) 8 bytes
      (D) 4 bytes
    • (D) 4 bytes
    • Q. 6  The format string to accept a string is
    • (A) %c
      (B) %d
    • (C) %f
      (D) %s
    • (D) %s
    • Q. 7  Which header file is necessary for strlen() function?
    • (A) conio.h
      (B) strings.h
    • (C) string.h
      (D) stdio.h
    • (C) string.h
    • Q. 8  When a key is pressed on keyboard, which standard is used for converting the keystroke into the corresponding bits
    • (A) ANSI
      (B) ASCII
    • (C) EBCDIC
      (D) ISO
    • (B) ASCII
    • Q. 9  Which of the following is used as a string termination character?
    • (A) 0
      (B) \0
    • (C) /0
      (D) None of these
    • (B) \0
    • Q. 10  Which of the following operator is used to select a member of a structure variable
    • (A) .(dot)
      (B) ,(comma)
    • (C) : (colon)
      (D) ;(semicolon)
    • (A) .(dot)
    • Q. 11  C is a ___ language
    • (A) Machine Level
      (B) Low Level
    • (C) Middle Level
      (D) High Level
    • (C) Middle Level
    • Q. 12  What is the output of the following code:
      void main()
      {
      int i;
      for(i=1;i<=10;i++);
      printf(“%d\n”,i);
      }
    • (A) 10
      (B) 1 to 10
    • (C) 11
      (D) None of the above
    • (D) None of the above
    • Q. 13  What is the output of the following code:
      void main()
      {
      int i;
      for(i=65;i<70;i++)
      printf(“%c,”,i);
      }
    • (A) 65,66,67,68,69,70
      (B) a,b,c,d,e,
    • (C) A,B,C,D,E,
      (D) A,B,C,D,E
    • (C) A,B,C,D,E,
    • Q. 14  What is the output of following code:
      void main()
      {
      int i=5;
      switch(i)
      {
      case 3: printf(“three”);
      case 4: printf(“four”);
      case 5: printf(“five”);
      case 6: printf(“six”);break;
      case 7: printf(“seven”);
      default: printf(“default”);
      }
      }
    • (A) five
      (B) fivesixsevendefault
    • (C) fivesix
      (D) None of the above
    • (C) fivesix