Explore topic-wise MCQs in Siemens.

This section includes 21 Mcqs, each offering curated multiple-choice questions to sharpen your Siemens knowledge and support exam preparation. Choose a topic below to get started.

1.

What is mutex?

A. binary semaphore
B. multitasking facility
C. bit addressable memory
D. register
Answer» B. multitasking facility
2.

A multiprocessor system is

A. loosely coupled system
B. tightly coupled system
C. distributed system
D. none
Answer» D. none
3.

Which of the following statements is true on demand paging

A. used to Increase speed of memory access
B. causes external fragmentation.
C. technique to mange existing main memory efficiently
D. allows variable sized segments.
Answer» D. allows variable sized segments.
4.

which of the following is not a scheduling algorithm.

A. FCFS scheduling
B. SJF scheduling
C. Priority based scheduling
D. Shortest fit scheduling
Answer» E.
5.

the basic criteria of selecting a page replacement algorithm for virtual memory management is

A. low page fault rate
B. high page fault rate
C. high page modification rate
D. low page size
Answer» C. high page modification rate
6.

a page fault occurs when

A. system crashes due to lack of memory
B. page reffered belongs to a different program,
C. request for the page currently made is not in memory,
D. 1 & 2
Answer» D. 1 & 2
7.

void main(void) { Int x=2; Int y=4; Cout<<x++<< --y; Cout<<x<<y; }

A. 2 4 3 4
B. 3 3 3 4
C. 2 3 2 4
D. 2 3 3 3
Answer» E.
8.

Main() { Const int val=5; Const int *ptrval; Ptrval=&val; *ptrval=10; Printf(“%d”,val); }

A. 5
B. 10
C. Garbage
D. Error
Answer» E.
9.

Main() { Int I; I=010; Printf(“%d”,i); }

A. 2
B. 8
C. 10
D. 4
Answer» C. 10
10.

 char *p; short i; long l; (long)i= l;

A. both 1 & 2 are correct;
B. both 1 &2 are incorrect.
C. Statm 1 is correct.
D. Statm 2 is correct.
Answer» C. Statm 1 is correct.
11.

Main() { Char arr[12]; Printf(“%d”,sizeof(arr)); }

A. 24
B. 12
C. 36
D. 2
Answer» C. 36
12.

static member functions can access “this” pointer

A. true
B. false
C. compiler dependent
D. none.
Answer» C. compiler dependent
13.

difference b/w c++ struct and c++ class is

A. both are same.
B. Struct defaults to public member access while class defaults to private member access.
C. Struct defaults to public base class inheritance while class defaults to private base class inheritance.
D. B & C.
Answer» E.
14.

which of the following will be automatically generated by the complier

A. default constructor,default destructor,copy constructor,assignment operator.
B. Default constructor,copy constructor.
C. Address operator,assignment operator
D. B& C.
Answer» E.
15.

which kind of function can access private data members

A. friend functions
B. private member functions
C. public member function
D. all
Answer» E.
16.

when do preprocessor directives get executed

A. before compilation
B. during compilation
C. after compilation
D. none
Answer» B. during compilation
17.

void main(void) { Int y=128; Const int x=y; Printf(“%d”,x); }

A. 128
B. Garbage
C. 0
D. Error
Answer» B. Garbage
18.

void main(void) { FILE *p; p=fopen(“c:\tc\trial”, ”w”); if(!fp) { Exit(0); } Fclose(p);

A. fopen() not used correctly
B. path should be C:crial
C. file pointer incorrect
D. error
Answer» C. file pointer incorrect
19.

void f(int x,int &y) { x++; y++; } Void main() { Int i=1,j=1; F(I,j) Cout<<i<<j; }

A. 1 1
B. 1 2
C. 2 1
D. 2 2
Answer» C. 2 1
20.

The prototype declaration for a pointer to a function which returns a pointer to an integer is:

A. int (**pfi)();
B. int (*)(*pfi)();
C. (*int) pfi ();
D. int * (*pfi)();
Answer» E.
21.

main() { static int a[20]; int i=0; a[i]=i++; printf(“%d%d%d”, a[0],a[i],i ); }

A. 0 0 0
B. 0 0 1
C. 1 1 1
D. Error
Answer» C. 1 1 1