.
  Vyom World.com . Let's Touch the Sky Together!  
.

Home
VyomWorld.com Home
Interview Questions
VyomLinks.com Home
JobsAssist.com Home
Vyom Network
Contact Us
Jobs & Careers
Resume Submitter
Placement Papers
IT Companies Directory
Computer Jobs
Interview Questions
Online Exams
Vyom Career eMag.
Fun
Send FREE SMS!
SMS Jokes
Source Codes Library
Source Codes Home
ASP Source Codes
C Source Codes
C++ Source Codes
COBOL Source Codes
Java Source Codes
Pascal Source Codes
Submit Source Codes
GATE
GATE an Overview
GATE Preparation
Study Materal
GRE
GRE an Overview
GRE Questions
GRE Preparation
GRE Universities
TOEFL Preparation
TOEFL Resources
GMAT Preparation
GMAT Resources
MBA Preparation
MBA Resources
Networking Concepts
Networking Concepts
Testing Preparation
Testing Resources
Webmasters
Free Traffic Builder
Webmaster Articles
Web Hosting
Tutorials
Hardware Tutorial
1500 Free eBooks New!


Home » Placement Papers » Siemens Placement Papers » Siemens Previous Year Placement Paper

 

Siemens Placement Paper -: Data Structures Questions With Answers


Advertisements
Advertisements




Siemens Previous Years Solved Sample Placement Papers

  1. The prototype declaration for a pointer to a function which returns a pointer to an integer is:
    1. int (**pfi)();
    2. int (*)(*pfi)();
    3. (*int) pfi ();
    4. int * (*pfi)();
  2.             main() {
                    static int a[20];
                    int i=0;
                    a[i]=i++;
                    printf("%d%d%d", a[0],a[i],i );
                }
                
    1. 0 0 0
    2. 0 0 1
    3. 1 1 1
    4. Error
  3.             void f(int x,int &y) {
                    x++;
                    y++;
                }
                void main() {
                    int i=1,j=1;
                    f(i,j);
                    cout << i << j;
                }
                
    1. 1 1
    2. 1 2
    3. 2 1
    4. 2 2
  4.             void main(void) {
                    FILE *p;
                    p=fopen("c:\\tc\\trial", "w");
                    if(!fp) {
                        exit(0);
                    }
                    fclose(p);
                }
                
    1. fopen() not used correctly
    2. path should be C:\\tc\\trial
    3. file pointer incorrect
    4. error
  5.             void main(void) {
                    int y=128;
                    const int x=y;
                    printf("%d",x);
                }
                
    1. 128
    2. Garbage
    3. 0
    4. Error
  6. When do preprocessor directives get executed:
    1. before compilation
    2. during compilation
    3. after compilation
    4. none
  7. Which kind of function can access private data members:
    1. friend functions
    2. private member functions
    3. public member function
    4. all
  8. Which of the following will be automatically generated by the compiler:
    1. default constructor,default destructor,copy constructor,assignment operator.
    2. Default constructor,copy constructor.
    3. Address operator,assignment operator
    4. B & C.
  9. Difference between C++ struct and C++ class is:
    1. both are same.
    2. Struct defaults to public member access while class defaults to private member access.
    3. Struct defaults to public base class inheritance while class defaults to private base class inheritance.
    4. B & C.
  10. Static member functions can access “this” pointer:
    1. true
    2. false
    3. compiler dependent
    4. none
  11.             main() {
                    char arr[12];
                    printf("%d",sizeof(arr));
                }
                
    1. 24
    2. 12
    3. 36
    4. 2
  12.             char *p;
                short i;
                long l;
                (long)i= l;
                
    1. both 1 & 2 are correct
    2. both 1 & 2 are incorrect
    3. Statement 1 is correct
    4. Statement 2 is correct
  13.             main() {
                    int I;
                    I=010;
                    printf("%d",i);
                }
                
    1. 2
    2. 8
    3. 10
    4. 4
  14.             main() {
                    const int val=5;
                    const int *ptrval;
                    ptrval=&val;
                    *ptrval=10;
                    printf("%d",val);
                }
                
    1. 5
    2. 10
    3. Garbage
    4. Error
  15.             void main(void) {
                    int x=2;
                    int y=4;
                    cout << x++ << ++y << endl;
                    cout << x++ << y++;
                }
                
    1. 2 4
      3 4
    2. 3 3
      3 4
    3. 2 3
      2 4
    4. 2 3
      3 3




 


.

Recently Updated: New Placement Papers added.
Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory

Copyright ©2003-2025 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy