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