0% found this document useful (0 votes)
113 views64 pages

DXC-Technical - 2

The document contains a series of technical questions and answers. It appears to be from a training course on technical topics like programming, databases, networking and computer architecture. The questions cover areas such as web services, databases, caching, networking, RFID, C programming, assembly language, memory addressing and microprocessor architecture.

Uploaded by

kishan chauhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views64 pages

DXC-Technical - 2

The document contains a series of technical questions and answers. It appears to be from a training course on technical topics like programming, databases, networking and computer architecture. The questions cover areas such as web services, databases, caching, networking, RFID, C programming, assembly language, memory addressing and microprocessor architecture.

Uploaded by

kishan chauhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 64

DXC

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
TECHNICAL -2

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
1. ____________ is associated with web services.
(a) WSDL
(b) WML
(c) web sphere
(d) web logic

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
2. Any large single block of data stored in a database, such as a
picture or sound file, which does not include record fields, and
cannot be directly searched by the database s search engine.
(a) TABLE
(b) BLOB
(c) VIEW
(d) SCHEME

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
3. Are served area of the immediate access memory used to increase
the running speed of the computer program.
(a) session memory
(b) bubble memory
(c) cache memory
(d) shared memory

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
4. A small subnet that sit between a trusted internal network and an
un trusted external network, such as the public internet.
(a) LAN
(b) MAN
(c) WAN
(d) DMZ

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
5. Technologies that use radio waves to automatically identify people
or objects, which is very similar to the barcode identification
systems, seen in retail stores every-day.
(a) BLUETOOTH
(b) RADAR
(c) RSA SECURE ID
(d) RFID

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
6. What is the output?
Main(){
float fl = 10.5;
double dbl = 10.5
if(fl ==dbl)
printf( UNITED WE STAND );
else
printf( DIVIDE AND RULE )
}
(a) compilation error (b) UNITED WE STAND
(c) DIVIDE AND RULE (d) linkage error

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
7. What is the output?
main(){
static int ivar = 5;
printf( %d ,ivar--);
if(ivar)
main();
}
(a) 1 2 3 4 5
(b) 5 4 3 2 1
(c) 5
(d) compiler error : main cannot be recursive function

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
8. What is the output?
main()
{
extern int iExtern;
iExtern = 20;
printf( %d ,iExtern);
}
(a) 2
(b) 20
(c) compile error
(d) linker error

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
9. What is the output?
#define clrscr() 100
main(){
clrscr();
printf( %d\n\t , clrscr());
}
(a) 100
(b) 10
(c) compiler error
(d) linkage error

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
10. what is the output?
main()
{
void vpointer;
char cHar = g , *cHarpointer = GOOGLE ;
int j = 40;
vpointer = &cHar;
printf( %c ,*(char*)vpointer);
vpointer = &j;
printf( %d ,*(int *)vpointer);
vpointer = cHarpointer;
printf( %s ,(char*)vpointer +3);
}
(a) g40GLE (b) g40GOOGLE
(c) g0GLE (d) g4GOO

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
11. What is the output?
#define FALSE -1
#define TRUE 1
#define NULL 0
main() {
if (NULL)
puts ( NULL );
else if(FALSE)
puts ( TRUE );
else
puts ( FALSE );
}
(a) NULL (b) TRUE (c) FALSE (d) 0

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
12. What is the output?
main() {
int i =5,j= 6, z;
printf( %d ,i+++j);
}
(a) 13
(b) 12
(c) 11
(d) compiler error

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
13. What is the output?
main() {
int i ;
i = accumulator();
printf( %d ,i);
}
accumulator(){
_AX =1000;
}
(a) 1 (b) 10 (c) 100 (d) 1000

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
14. What is the output?
main() {
int i =0;
while(+(+i--)!= 0)
i- = i++;
printf( %d ,i);
}
(a) –1
(b) 0
(c) 1
(d) will go in an infinite loop

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
15. What is the output?
main(){
int i =3;
for(; i++=0;)
printf(( %d ,i);
}
(a) 1
(b) 2
(c) 1 2 3
(d) compiler error : L value required

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
16. What is the output?
main(){
int i = 10, j =20;
j = i ,j?(i,j)?i :j:j;
printf( %d%d ,i,j);
}
(a) 20
(b) 20
(c) 10
(d) 10

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
17. What is the output?
main(){

extern i;
printf( %d\t ,i);{
int i =20;

printf( %d\t ,i);


}

(a) Extern value of i 20

(b) Extern value of i

(c) 20
(d) linker Error : unresolved external symbol i

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
18. What is the output?
int DIMension(int array[]){
return sizeof(array/sizeof(int);}
main(){
int arr[10];
printf( Array dimension is %d ,DIMension(arr));
}
(a) array dimension is 10
(b) array dimension is 1
(c) array dimension is 2
(d) array dimension is 5

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
19. What is the output?
main()

{
void swap();
int x = 45, y = 15;

swap(&x,&y);
printf( x = %d y=%d x,y);

void swap(int *a, int *b){

*a^=*b, *b^=*a, *a^ = *b;

(a) x = 15, y =45 (b) x =15, y =15


(c) x =45, y =15 (d) x =45 y = 45

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
20. What is the output?
main(){
int i =257;
int *iptr =&i;
printf ( %d%d ,*((char*)iptr),* ((char *)iptr+1));
}
(a) 1, 257
(b) 257 1
(c) 0 0
(d) 1 1

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
21. What is the output?
main(){
int i =300;
char *ptr = &i;
*++ptr=2;
printf( %d ,i);
}
(a) 556
(b) 300
(c) 2
(d) 302

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
22. What is the output?
#include
main(){
char *str = yahoo ;
char *ptr =str;
char least =127;
while(*ptr++)
least = (*ptr
printf ( %d ,least);
}
(a) 0 (b) 127 (c) yahoo (d) y

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
23. Declare an array of M pointers to functions returing pointers to
functions returing pointers to characters.
(a) (*ptr[M]()(char*(*)());
(b) (char*(*)())(*ptr[M])()
(c) (char*(*)(*ptr[M]())(*ptr[M] ()
(d) (char*(*)(char*()))(*ptr[M]) ();

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
24. What is the output?
void main(){

int I =10, j=2;


int *ip = &I ,*jp =&j;

int k = *ip/*jp;
printf( %d ,k);
}

(a) 2
(b) 5

(c) 10
(d) compile error : unexpected end of file in comment started in line 4

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
25. What is the output?
main()
{
char a[4] = GOOGLE;
printf( %s ,a);
}
(a) 2
(b) GOOGLE
(c) compile error: yoo mant initializers
(d) linkage error

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
26. For 1MB memory, the number of address lines required
(a) 12
(b) 16
(c) 20
(d) 32

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
27. There is a circuit using 3 n and gates with 2 inputs and 1 output,
find the output.
(a) AND
(b) OR
(c) XOR
(d) NAND

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
28. What is done for push operation?
(a) SP is incremented and then the value is stored.
(b) PC is incremented and then the value is stored.
(c) PC is decremented and then the value is stored.
(d) SP is decremented and then the value is stored.

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
29. Memory allocation of variables declared in a program is
____________.
(a) Allocated in RAM
(b) Allocated in ROM
(c) Allocated in stack
(d) Assigned in registers

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
30. What action is taken when the processer under execution is
interrupted by TRAP in 8085MPU?
(a) Processor serves the interrupt request after completing the
execution of the current instruction.
(b) Processer serves the interrupt request after completing the
current task.
(c) Processor serves the interrupt immediately.
(d) Processor serving the interrupt request depent deprnds upon
the priority of the current task under execution.

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
31. Purpose of PC (program counter)in a microprocessor is
____________.
(a) To store address of TOS(top of stack)
(b) To store address of next instructions to be executed
(c) count the number of instructions
(d) to store the base address of the stack

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
32. Conditional results after execution of an instruction in a
microprocess is stored in
(a) register
(b) accumulator
(c) flag register
(d) flag register part of PSW (program status word)

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
33. The OR gate can be converted to the NAND function by adding
____________ gate(s)to the input of the OR gate.
(a) NOT
(b) AND
(c) NOR
(d) XOR

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
34. In 8051microcontroller, ____________ has a dual function.
(a) port 3
(b) port 2
(c) port 1
(d) port 0

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
35. An 8085 based microprocessor with 2MHz clock frequency, will
execute the following chunk of code with how much delay?

MVI B, 38H
HAPPY: MVI C, FFH

SADDY: DCR C

JNZ SADDY
DCR B

JNC HAPPY
(a) 102.3
(b) 114.5
(c) 100.5
(d) 120
SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
36. In 8085 MPU what will be the status of the flag after the
execution of the following chunk of code.
MVI B, FFH
MOV A, B
CMA
HLT
(a) S = 1, Z = 0, CY = 1
(b) S = 0, Z = 1, CY = 0
(c) S = 1, Z = 0, CY = 0
(d) S = 1, Z = 1, CY = 1

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
37. A positive going pulse which is always generated when 8085 MPU
begins the machine cycle.
(a) RD
(b) ALE
(c) WR
(d) HOLD

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
38. When a ____________ instruction of 8085 MPU is fetched, its
second and third bytes are placed in the W and Z registers.
(a) JMP
(b) STA
(c) CALL
(d) XCHG

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
39. What is defined as one subdivision of the operation performed in
one clock period?
(a) T- State
(b) Instruction Cycle
(c) Machine Cycle
(d) All of the above

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
40. At the end of the following code, what is the status of the flags.
LXI B, AEC4H
MOV A, C
ADD B
HLT
(a) S = 1, CY = 0, P = 0, AC = 1
(b) S =0 , CY = 1, P = 0, AC = 1
(c) S = 0, CY = 1, P = 0, AC = 1
(d) S = 0, CY = 1, P = 1, AC = 1

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
41. In binary search tree which traversal is used for ascending order
values
(a) Inorder
(b) preorder
(c)post order
(d) None of these

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
42. You are creating an index on ROLLNO colume in the STUDENT
table. Which statement will you use?
(a) CREATE INDEX roll_idx ON student, rollno;
(b) CREATE INDEX roll_idx FOR student, rollno;
(c) CREATE INDEX roll_idx ON student( rollno);
(d) CREATE INDEX roll_idx INDEX ON student (rollno);

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
43. A ____________ class is a class that represents a data structure
that stores a number of data objects
(a) container
(b) component
(c) base
(d) derived

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
44. Which one of the following phases belongs to the compiler Back-
end.
(a) Lexical Analysis
(b) Syntax Analysis
(c) Optimization
(d) Intermediate Representation

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
45. Every context _sensitive language is context_free
(a) true
(b) false

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
46. The repeated execution of a loop of code while waiting for an
event to occur is called ____________.The CPU is not engaged
in any real productive activity during this period, and the process
doesn’t progress towards completion.
(a) dead lock
(b) busy waiting
(c) trap door
(d) None of these

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
47. Transparent DBMS is defined as
(a) A DBMS in which there are no program or user access
languages.
(b) A DBMS which has no cross file capabilities but is user
friendly and provides user interface management.
(c) A DBMS which keeps its physical structure hidden from user
(d) None of these

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
48. Either all actions are carried out or none are. Users should not
have to worry about the effect of incomplete transactions. DBMS
ensures this by undoing the actions of incomplete transactions.
This property is known as
(a) Aggregation
(b) atomicity
(c) association
(d) data integrity

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
49. ____________ algorithms determines where in available to
load a program. Common methods are first fit, next fit, best fit.
____________ algorithm are used when memory is full , and
one process (or part of a process) needs to be swaped out to
accommodate a new program. The ____________ algorithm
determines which are the partions to be swaped out.
(a) placement, placement, replacement
(b) replacement, placement, placement
(c) replacement, placement, replacement
(d) placement, replacement, replacement

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
50. Trap door is a secret undocumented entry point into a program
used to grant access without normal methods of access
authentication. A trap is a software interrupt, usually the result of
an error condition.
(a) true
(b) false

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
51. In recursive implementations which of the following is true for
saving the state of the steps
(a) as full state on the stack
(b) as reversible action on the stack
(c) both a and b
(d) None of these

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
52. Which of the following involves context switch?
(a) previliged instruction
(b) floating point exception
(c) system calls
(d) all
(e) None of these

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
53. Piggy backing is a technique for
(a) acknowledge
(b) sequence
(c) flow control
(d) retransmission

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
54. A functional dependency XY is ____________ dependency if
removal of any attribute A from X means that the dependency
does not hold any more
(a) full functional
(b) multi valued
(c) single valued
(d) None of these

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
55. A relation schema R is in BCNF if it is in ____________ and
satisfies an additional constraints that for every functional
dependency XY,X must be a candidate key
(a) 1 NF
(b) 2 NF
(c) 3 NF
(d) 5 NF

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
56. A ____________ sub query can be easily identified if it
contains any references to the parent sub query columns in the
____________ clause
(a) correlated, WHERE
(b) nested, SELECT
(c) correlated, SELECT
(d) None of these

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
57. Hybrid devise that combines the features of both bridge and
router is known as
(a) router
(b) bridge
(c) hub
(d) brouter

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
58. Which of the following is the most crucial phase of SDLC?
(a) testing
(b) code generation
(c) analysys and design
(d) implementation

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
59. To send a data packet using datagram ,connection will be
established
(a) no connection is required
(b) connection is not established before data transmission
(c) before data transmission
(d) None of these

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
60. A software that allows a personal computer to pretend as
computer terminal is
(a) terminal adapter
(b) terminal emulation
(c) modem
(d) None of these

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
61. Super key is
(a) same as primary key
(b) primary key and attribute
(c) same as foreign key
(d) foreign key and attribute

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.
Thank You …

SMART TRAINING RESOURCES INDIA PVT. LTD. © 2018 SMART Training Resources Pvt. Ltd.

You might also like