Question
What is the outpur of the following part of python
program? s="india" 1=0 for x in s: if(X!="i"): 1=1+1 else: pass print(1)Solution
- String "india" → characters = i, n, d, i, a
- Condition if(x != "i") counts all characters except "i" .
- "n" , "d" , "a" satisfy condition → count = 3.
- Output = 3 .
- Why Others are Wrong:
- 1: Wrong, only counts one.
- 5: Would mean all counted.
- 6: Impossible (string length is 5).
CMOS stands for__
Which of the following techniques can be used to store a large number of files in a small amount of storage space?
Routing is done on which layer?
This type of disk can be written only once.
For predicting the weather which of the following is used?
Trackball is a...........
Term hub is related to which of the following topology?
Unauthorized copying of software to be used for personal gain instead of for personal backups is called
What kind of memory is both static and non -volatile?
Fourth generation of computer system is based on ?