ThatQuiz Test Library Take this test now
PCDS LAB VIVA I B.TECH ECE-C - Quiz
Contributed by: VENKATRAO
  • 1. Each Algorithm begins with a ___.
A) Return Statement
B) Parameter
C) Condition
D) Header
  • 2. Parameters can be passed by___.
A) Value
B) Both A & B
C) None of the above
D) Reference
  • 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 (nlogn)
B) O (n2)
C) None of the above
D) O (2n)
  • 6. In Linked List there are no NULL links in?
A) Double Linked List
B) Circular Linked List
C) Single Linked List
D) None of the above
  • 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) Character array, ary is a string
B) Character array, ary is a string
C) String size is not mentioned
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) %c
B) %s
C) %w
D) %C
  • 10. A function which calls itself is called a ___ function.
A) Self Function
B) Static Function
C) Auto Function
D) Recursive Function
  • 11. Identify wrong C Keywords below.
A) char, extern, intern, return
B) break, else, long, switch
C) auto, double, int, struct
D) case, enum, register, typedef
  • 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) %s prints string constants
B) All the above
C) %c prints unsigned or signed character constants.
D) %l or %L prints long 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) 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) Compiler error
B) GRADE=A, GRADE=some address of array
C) GRADE=A, GRADE=A
D) GRADE=some address of array, GRADE=A
  • 17. What is the output of Bitwise OR operation | on (0110 | 1100).?
A) 1000
B) 1001
C) 1100
D) 1110
  • 18. Left Shift operation is equivalent to.?
A) adding 2
B) Subtracting 2
C) Multiplying by 2
D) Division by 2
  • 19. What is the another name for .C file.?
A) Macro Code
B) Distributable Code
C) Source 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) fprintf(), fscanf()
D) read(), write()
  • 21. Who is the father of C language?
A) Dennis Ritchie
B) Narendra modi
C) James Gosling
D) Rasmus Lerdorf
  • 22. The standard header _______ is used for variable list arguments (…) in C.
A) <math.h>
B) <stdlib.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) char *
C) struct
D) void
  • 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) Front = rear + 1
B) Front = MAX_SIZE – 1
C) Rear = front
D) Rear = MAX_SIZE – 1
Created with That Quiz — where test making and test taking are made easy for math and other subject areas.