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