Embed UR
Embed UR
2022 - 2023
Which of the following problems is not NP complete?
a. Hamiltonian circuit
b. Bin packing
c. Partition problem
d. Halting problem
Which is the correct form to declare main with command line arguments?
a. 1
b. 6
c. 15
d. 0
Which of the following statements are correct about an array?
Statement 1 → The array int num[26];can store 26 elements.
Statement 2 → The expression num[1] designates the very first element in the array.
Statement 3 → It is necessary to initialize the array at the time of declaration
Statement 4 → The declaration num[SIZE] is allowed if SIZE is a macro.
a. 1
b. 1,4
c. 2,3
d. 2,4
Which of the following bitwise operators can be used efficiently to swap two numbers?
#include <stdio.h>
int main()
{
int a = 5; int b = 7;
printf("Before swapping: a = %d, b = %d\n", a, b);
a = a ^ b;
b = a ^ b;
a = a ^ b; a. &
printf("After swapping: a = %d, b = %d\n", a, b); b. ^
return 0; c. I
} d. II
What will be printed as the result of the operation below:
main()
{
int x=20, int y=35;
x=y++ + x++;
y= ++y + ++x;
printf(“%d %d”,x,y);
}
a. 56 93
b. 57 94
c. 58 95
d. 57
e. 84
Which one of the following functions is the correct choice for moving blocks of binary data that are
arbitrary size and position in memory?
a. memset()
b. memcpy()
c. strncpy()
d. memmove()
Given the piece of code: int a[50]; int *pa; pa = a; to access the 6th element of the
array which of the following is incorrect?
a. *(a+5)
b. a[5]
c. *(*pa+5)
d. Pa[5]
An investor purchased shares of stock at a certain price. If the stock increased in price Rs. 0.25 per
share and the total increase for the x shares was Rs.12.50, how many shares of stock had been
purchased?
Let's call the number of shares purchased "x" and the increase in price per
share "0.25." The total increase in value is given as Rs. 12.50.
a. affect
b. manner
c. effect
d. delay
During the early period of ocean navigation, __________ any need for sophisticated instruments /n
and techniques.
a. so that hardly
b. where there hardly was
c. hardly was
d. there was hardly
What will be the output of the program:
#include<stdio.h>
int main()
{
enum days {MON =-1,TUE, WED=6, THU, FRI,SAT};
printf(“%d, %d,%d,%d,%d,%d”, MON,TUE,WED,THU, FRI,SA);
return 0;
}
a. -1,0,1,2,3,4
b. -1,2,6,3,4,5
c. -1,0,6,2,3,4
d. -1,0,6,7,8,9
Linux kernel code is written in
a. C ++
b. Pyhthon
c. C
d. Depends on vendor
The fact _________ money orders can usually be easily cashed has made them a popular form of
payment.
a. Of
b. That
c. Is that
d. Which is
The year is 2012. Dylan is the oldest and will turn 25 in the year of 2015. John is half the age of Dylan
and mike is four years older than john. How old will john be in 2015?
a. 15
b. 14
c. 18
d. 20
The access time is less for
a. Hard disk
b. Cache
c. Registers
d. Main memory
Of the storage classes in C, Which is faster?
a. Auto
b. Static
c. Extern
d. Register
The logic gate that will have a LOW output when any one of its inputs is HIGH is the
a. NAND gate
b. AND gate
c. NOR gate
d. OR gate
How many classes are in IP address (IPV4)
a. 3
b. 4
c. 5
d. 6
Size of a union is determined by the size of the
a. j=6, k=10
b. i=5, k=6
c. j=6, k=8
d. i=4, j=6
Peter could get equal number of Rs.55 , Rs.85, and Rs.105 tickets for a movie. He spends Rs.2940 for
all tickets. How many of each he did buy?
a. 12
b. 18
c. 16
d. 14
In which layer the bridges are used?
a. Session layer
b. Data Link layer
c. Physical layer
d. Network layer
Can we have a pointer to a function?
a. Not possible
b. Possible
c. Depends on the return value
d. Depends on the # of arguments
A women says / my age is my husband’s age reversed. If you take the difference between my age
and my husband’s it will be equal to one by eleventh of the sum of our ages. What is my age?
a. 45
b. 35
c. 54
d. 63
Rajeev’s age after 15 years will be 5 times his age 5 years back. What is Rajeev’s present age?
a. 5
b. 10
c. 15
d. 11
The communication mode that supports 2 way traffic but only one direction at a time is
a. Simplex
b. Duplex
c. Half Duplex
d. Multiplex
Length of the Internet protocol address (IPv4) & (IPv6)- in bytes
a. 4,16
b. 32,48
c. 32,64
d. 32,128
The sum of the digits of a two digit number is 8. When 18 is added to the number, the digits are
reversed Find the number.
a. 26
b. 35
c. 17
d. 53
How many address lines and data lines in 8086?
a. 16,8
b. 16,32
c. 20,16
d. 32,64
A man fixed an appointment to meet the manager. Manager asked him to come two days after the
day before the day after tomorrow. Today is friday. When will the manager expect him?
a. Monday
b. Tuesday
c. Wednesday
d. Thursday
Which of the following TCP/IP protocol is used for transferring electronic mail messages from one
machine to another?
a. FTP
b. SNMP
c. SMTP
d. RPC
e. None
Zener diode is a
a. Current regulator
b. Voltage regulator
c. Power regulator
d. Resistor
Ethernet is
a. Star topology
b. Ring topology
c. Mesh topology
d. Bus topology
The access time is less for
a. Hard disk
b. Cache
c. Registers
d. Main memory
Number of nibbles making one byte is
a. 1
b. 2
c. 4
d. 8
The maximum combined length of the command-line arguments including the spaces between
adjacent arguments is
a. 128 characters
b. 256 characters
c. 67 characters
d. It may vary from one operating system to
another
What is argv[0] in command line arguments?
a. Crystal
b. Weinbridge
c. Colpit ts
d. Hartley
Which organization/institution defined Wi-Fi standard?
a. ISO
b. IETF
c. IEEE
d. OSI
Which among the following is never possible in C when members in a Structure are the same as that
in a Union?
Let P be a structure. Let Q be a union.\n
a. 1 Byte
b. 1 Nibble
c. 1 Bit
d. 32 Bit
Number of diodes used in a full wave bridge rectifier is
a. 1
b. 2
c. 3
d. 4
Of the storage classes in C, Which is faster?
a. Auto
b. Static
c. Extern
d. Register
Which is not an application layer protocol?
a. TELNET
b. FTP
c. SMTP
d. TCP
e. HTTP
What is the built in library function to compare two strings?
a. string cmp()
b. strcmp()
c. equals()
d. str.compare()
For 1MB memory No. of address lines required,
a. 11
b. 16
c. 20
d. 24
Which is the highest priority interrupt?
a. rst5.5
b. rst6.5
c. TRAP
d. HLD
Length of the MAC address-In bytes
a. 16
b. 24
c. 32
d. 48
Which of the following does not contain in a Process Control Block (PCB) ?"
a. Code
b. Stack
c. Bootstrap program
d. Data
Which algorithm is defined in Time quantum?
a. 0010
b. 1010
c. 1100
d. 0011
The microprocessor 8085 has following address pins
a. CPU Scheduling
b. Memory Management
c. Transaction
d. None
A latch is
a. Edge Triggered
b. Level Triggered
c. Both Edge & Level Triggered
d. Combinational logic circuit
Length of the Internet Protocol address (IPv4) & (IPv6) - In bytes
a. 16, 32
b. 32, 48
c. 32, 64
d. 32, 128
I's complement of 11010110 is
a. 00011001
b. 10000001
c. 00011010
d. 00101001
e. 00000000
In Thevenin's theorem Vth is
a. 5693
b. 5794
c. 5895
d. 5784
e. 5894
There are 2 pots each filled with water and milk respectively. Some amount of milk is poured into
water pot and then the same amount of mixture in water pot is poured into milk pot. which is true?
a. The amount of milk in water pot is greater than the amount of water in milk pot.
b. The amount of milk in water pot is less than the amount of water in milk pot.
c. The amount of water in milk pot is same as that of amount of milk in water pot.
d. Cannot be determined
Hero is to cowardice as cheat is to
a. fraud
b. honesty
c. diligence
d. bravery
28 shake hands were exchanged in a meeting, each person shakes hands with every other person
only once. How many people were present in the meeting ?
a. 6
b. 7
c. 8
d. 9
Find the synonyms of the following word "Diligent"
a. Hardworking
b. Remiss
c. Delinquent
d. Neglectful
A woman says " my age is my husband's age reversed. If you take the difference between my age
and my husband's it will be equal to one by eleventh of the sum of our ages". what is my age?
a. 35
b. 45
c. 54
d. 63
Raveena could get equal number of Rs.55, Rs.85 and Rs.105 tickets for a movie. She spent Rs.2,940
for all the tickets. How many of each did she buy?
a. 12
b. 13
c. 16
d. Cannot be determined
For IMB memory No. of address lines required
a. 11
b. 16
c. 20
d. 24
The formula for current as per Ohm’s Law is
a. Voltage / Resistance
b. Resistance * Voltage
c. Voltage + Resistance
d. Resistance/Voltage
D e p a r t m e n t o f Tr a i n i n g Company Specific