Capgemini
Company
Logical Reasoning
Blood Relations
1. Given that "Namebreak" indicates a name which has not occurred before in the file, indicate
which of the following does the flow chart do?
A. The flow chart processes every line in the file
B. The flow chart processes the lines with the first occurrence of a name
C. The "Number of records" indicate the number of unique names in the file
D. The flow chart would process only the first line in the file
2. How will the flowchart handle a scenario where the file is empty?
A. The flow chart will throw an error
B. This will get into an infinite loop
C. There will be no error and it will not print anything
D. There will be no error and it prints "Number of records read" as zero
3 . What will the variable 'ctr' hold at the end of the flowchart execution?
A. The total number of records in the file
B. The total number of unique names in the file
C. The number of records for the last name in the file
D. Zero
Read Solution (Total 3)
-
- 1.ans is Athat the flow chart processes every line in the file
2.ans is D
3.ans is D
- 11 years agoHelpfull: Yes(18) No(0)
- Ans 1-c
2-c
3-b
- 10 years agoHelpfull: Yes(1) No(6)
- 1.c
2.D
3.D
- 10 years agoHelpfull: Yes(1) No(1)
Capgemini Other Question