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 ?
Asked in RPSC 23Feb 2016Question Paper for VicePrincipal/Superintendent ITI Screening Test 2012(Information Technology)VICE PRINCIPAL/SUPDT. ITI - 2012
Show answer
Answer: C. 1.0 for first and 1.6667 for the second
More RPSC Prelims previous year questions questions
- 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
- Ques #: 30 All activities lying on critical path have slack time equal to 1) 0 2) 1 3) 2 4) None of thses
- Ques #: 31 How Risk Exposure (RE) is computed if P and L corresponds to risk probability and loss respectively 1) RE = P/L 2) RE = P + L 3) RE = P*L 4) RE = 2* P*L
- Ques #: 32 How many test cases a boundary value analysis yields for a function of two variables. 1) 4n + 3 2) 4n + 1 3) n + 4 4) None of these
- Ques #: 33 The Incremental Model is a result of combination of elements of which two models? 1) Build & FIX Model and Waterfall Model 2) Linear Model and RAD Model 3) Linear Model and Prototyping Model 4) Waterfall Model and RAD Model
- Ques #: 34 A key concept of quality control is that all work products 1) are delivered on time and under budget 2) have complete documentation 3) have measurable specification for process outputs 4) are thoroughly tested before delivery to the customer