int zap(int n)
{
if(n<=1)then zap=1;
else zap=zap(n-3)+zap(n-1);
}
Question 1
Answer
Question 1
then the call zap(6) gives the values of zap
a) 8
b) 9
c) 6
d) 12
Answer
b) 9
Question 2
Answer
Question 2
A 12 address lines maps to the memory of
a) 1k bytes
b) 0.5k bytes
d) 2k bytes
d) none
Answer
b) 0.5k bytes
Question 3
Answer
Question 3
In a processor these are 120 instructions . Bits needed to impliment this instructions
a) 6
b) 7
c) 10
d) none
Answer
b) 7
Question 4
Answer
Question 4
In a compiler there is 36 bit for a word and to store a character 8bits are needed. IN this to store a character two words are appended .Then for storing a K characters string, How many words are needed.
a) 2k/9
b) (2k+8)/9
c) (k+8)/9
d) 2*(k+8)/9
Answer
a) 2k/9
n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
Question 5
Answer
Question 5
What will be the output of the above code?
a) 3467
b) 3657
c) 3267
d) 3980
Answer
c) 3267
Also Checkout: TCS NQT Sample Question Paper
Question 6
Answer
Question 6
A device can operate without Application layer in a network. State True or False.
a) False
b) True
Answer
b) True.
Routing devices like bridges need not necessarily have application layer.
Question 7
Answer
Question 7
OSI stands for
a) Open Systems Interconnection
b) Open Systems Integration
c) Open Servers Interconnection
d) None
Answer
a) Open Systems Interconnection
Question 8
Answer
Question 8
Find the odd man out
HTTP, FTP, MPEG, SNMP
a) HTTP
b) FTP
c) MPEG
d) SNMP
Answer
c) MPEG
This is a file format and not a Protocol like other options.
Question 9
Answer
Question 9
Amount of work a computer can do in a given period is called
a) Throughput
b) Job
c) Process
d) None of the above
Answer
a) Throughput
Question 10
Answer
Question 10
Which of the following addresses is always unique and unchanged for a machine
a) IP Address
b) MAC Address
c) Both of the above
d) none
Answer
b) MAC Address
Question 11
Answer
Question 11
What is a running program under execution called?
a) Task
b) Job
c) Process
d) Any of the above
Answer
d) Any of the above
Question 12
Answer
Question 12
CPU Scheduling is a function of OS under
a) Process Management
b) Memory Management
c) I/O Management
d) None of the above
Answer
a) Process Management
Question 13
Answer
Question 13
Background running processes are typically called
a) Daemons
b) Tasks
c) Processes
d) None of the above
Answer
a) Daemons
Question 14
Answer
Question 14
The process in which OS saves all data associated with current process and switches over to the next is called
a) Process Switching
b) Task Switching
c) Context Switching
d) None
Answer
c) Context Switching
Also Checkout