PCDS LAB VIVA I B.TECH ECE-C - Quiz
  • 1. Each Algorithm begins with a ___.
A) Condition
B) Header
C) Parameter
D) Return Statement
  • 2. Parameters can be passed by___.
A) Both A & B
B) Reference
C) None of the above
D) Value
  • 3. An array is a ___ sequence.
A) Homosequence
B) Homogeneous
C) Heterogeneous
D) Assorted
  • 4. A C Structure or User defined data type is also called.?
A) Aggregate data type
B) Derived data type
C) Secondary data type
D) All the above
  • 5. The total number of comparisons in bubble sort is?
A) O (2n)
B) O (nlogn)
C) None of the above
D) O (n2)
  • 6. In Linked List there are no NULL links in?
A) Single Linked List
B) None of the above
C) Double Linked List
D) Circular Linked List
  • 7. Convert into prefix notation: A * B + C / D
A) + * A / B C D
B) + * A B C D /
C) None of the above
D) + * A B / C D
  • 8. Choose a correct statement about C String. char ary[]="Hello..!";
A) Character array, ary is a string
B) String can not contain special characters.
C) Character array, ary is a string
D) String size is not mentioned
  • 9. What is the Format specifier used to print a String or Character array in C Printf or Scanf function.?
A) %C
B) %s
C) %w
D) %c
  • 10. A function which calls itself is called a ___ function.
A) Self Function
B) Static Function
C) Auto Function
D) Recursive Function
  • 11. Identify wrong C Keywords below.
A) auto, double, int, struct
B) break, else, long, switch
C) case, enum, register, typedef
D) char, extern, intern, return
  • 12. Find a correct C Keyword below
A) default
B) breaker
C) go to
D) shorter
  • 13. Choose a correct statement about C format Specifiers
A) %l or %L prints long constants.
B) All the above
C) %s prints string constants
D) %c prints unsigned or signed character constants.
  • 14. An array Index starts with.?
A) 1
B) [ ]
C) 0
D) -1
  • 15. What is the output of C Program.? int main() { int a[] = {1,2,3,4}; int b[4] = {5,6,7,8}; printf("%d,%d", a[0], b[0]); }
A) 0,0
B) 2,6
C) 1,5
D) Compiler error
  • 16. 8) What is the output of C Program.? int main() { char grade[] = {'A','B','C'}; printf("GRADE=%c, ", *grade); printf("GRADE=%d", grade); }
A) Compiler error
B) GRADE=some address of array, GRADE=A
C) GRADE=A, GRADE=some address of array
D) GRADE=A, GRADE=A
  • 17. What is the output of Bitwise OR operation | on (0110 | 1100).?
A) 1110
B) 1100
C) 1001
D) 1000
  • 18. Left Shift operation is equivalent to.?
A) adding 2
B) Division by 2
C) Subtracting 2
D) Multiplying by 2
  • 19. What is the another name for .C file.?
A) Distributable Code
B) Source Code
C) Executable code
D) Macro Code
  • 20. What are the C functions used to read or write a file in Text Mode.?
A) fprintf(), fscanf()
B) fprint(), fscan()
C) fread(), fwrite()
D) read(), write()
  • 21. Who is the father of C language?
A) Dennis Ritchie
B) Narendra modi
C) James Gosling
D) Rasmus Lerdorf
  • 22. The standard header _______ is used for variable list arguments (…) in C.
A) <stdlib.h>
B) <stdio.h >
C) <stdarg.h>
D) <math.h>
  • 23. Which of the following return-type cannot be used for a function in C?
A) void
B) none of the mentioned
C) char *
D) struct
  • 24. Process of inserting an element in stack is called ____________
A) Process of inserting an element in stack is called ____________
B) Pop
C) Evaluation
D) Create
  • 25. A normal queue, if implemented using an array of size MAX_SIZE, gets full when?
A) Rear = front
B) Front = MAX_SIZE – 1
C) Front = rear + 1
D) Rear = MAX_SIZE – 1
Created with That Quiz — where test making and test taking are made easy for math and other subject areas.