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