PCDS LAB VIVA I B.TECH ECE-C
  • 1. Each Algorithm begins with a ___.
A) Return Statement
B) Condition
C) Header
D) Parameter
  • 2. Parameters can be passed by___.
A) Value
B) Reference
C) Both A & B
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) Secondary data type
B) All the above
C) Derived data type
D) Aggregate data type
  • 5. The total number of comparisons in bubble sort is?
A) O (2n)
B) O (nlogn)
C) O (n2)
D) None of the above
  • 6. In Linked List there are no NULL links in?
A) None of the above
B) Double Linked List
C) Single 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) + * A / B C D
D) None of the above
  • 8. Choose a correct statement about C String. char ary[]="Hello..!";
A) String can not contain special characters.
B) Character array, ary is a string
C) String size is not mentioned
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) %C
D) %s
  • 10. A function which calls itself is called a ___ function.
A) Auto Function
B) Recursive Function
C) Self Function
D) Static Function
  • 11. Identify wrong C Keywords below.
A) break, else, long, switch
B) case, enum, register, typedef
C) auto, double, int, struct
D) char, extern, intern, return
  • 12. Find a correct C Keyword below
A) shorter
B) breaker
C) default
D) go to
  • 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) -1
C) 0
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) 2,6
B) 0,0
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) GRADE=A, GRADE=some address of array
B) GRADE=some address of array, GRADE=A
C) GRADE=A, GRADE=A
D) Compiler error
  • 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) Multiplying by 2
B) adding 2
C) Division by 2
D) Subtracting 2
  • 19. What is the another name for .C file.?
A) Executable code
B) Distributable Code
C) Source Code
D) Macro Code
  • 20. What are the C functions used to read or write a file in Text Mode.?
A) read(), write()
B) fread(), fwrite()
C) fprintf(), fscanf()
D) fprint(), fscan()
  • 21. Who is the father of C language?
A) Rasmus Lerdorf
B) Narendra modi
C) James Gosling
D) Dennis Ritchie
  • 22. The standard header _______ is used for variable list arguments (…) in C.
A) <math.h>
B) <stdlib.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) Process of inserting an element in stack is called ____________
B) Create
C) Evaluation
D) Pop
  • 25. A normal queue, if implemented using an array of size MAX_SIZE, gets full when?
A) Rear = front
B) Rear = MAX_SIZE – 1
C) Front = MAX_SIZE – 1
D) Front = rear + 1
Created with That Quiz — where test making and test taking are made easy for math and other subject areas.