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