Ques # :19 The number of leaf nodes in a complete binary tree of depth d is
Asked in RPSC 23Feb 2016Question Paper for VicePrincipal/Superintendent ITI Screening Test 2012(Information Technology)VICE PRINCIPAL/SUPDT. ITI - 2012
Show answer
Answer: A. 2^d
More RPSC Prelims previous year questions questions
- Ques # :21 What does the following declaration mean? int (*ptr)[10];
- Ques # :22 What will be the output of the program ? #include<stdio.h> int main() { int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m); return 0; }
- Ques # :23 Which of the following is not a valid variable name declaration?
- Ques # :24 Read the following statements for a program in C? A. Keyword "extern" is used to indicate the functions/ variables defined in another file but used in the current file. B. In case, an external variable and local (automatic) variables use the same identifier, the external variable will have precedence over the local variable if scope resolution operator is not used. Which is correct option with regard to the two statement ?
- Ques # :25 In a C program, one student writes float a; a=5/3;. The other student writes; float a; a=5.0/3;. What will be the value of "a" if printed using printf function ?
- Ques #: 27 Assume a singly linked list with head and tail pointer (i.e., pointers to the first last nodes in the list). Given that representation, which of the following operations could be implemented in O(1) time? I. Insert item at the front of the list II. Insert item at the rear of the list III. Delete front item from list IV. Delete item from rear of list 1) I and II 2) I and III 3) I, II, and III 4) I, II, and IV
- Ques #: 28 In which testing all the modules of the system are tested and integrated as complete system 1) Bottom up testing 2) Top-down testing 3) Sandwich testing 4) Big-Bang testing
- Ques #: 29 ..........model couples the iterative nature of the prototyping with the controlled and systematic aspects of the linear sequential model. 1) Spiral 2) Rapid Application Development (RAD) 3) Iterative Development 4) Incremental Development