.
  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 » Subex Placement Papers » Subex Previous Year Placement Paper

 

Subex Placement Paper -: Programming Questions With Answers


Advertisements
Advertisements




Subex Previous Years Solved Sample Placement Papers

    1. The output of the following program is:
      
      #include
      main( )
      {
        int i = -1;
        while(i < 5)
        {
      #ifdef _X_printf("%d", i++);
      #endif
        }
      }
              

      A. Compiler error

      B. -1, 0, 1, 2, 3, 4

      C. Infinite loop

      D. 1, 2, 3, 4

    2. Ans: Compiler error (Option A)

    3. The output of the following program is:
      
      #include
      void f(char* p);
      main( )
      {
        char *p = (char*)l;
        f(p);
        printf("%s\n", p);
      }
      void f(char *p)
      {
        char sz[] = "hello";
        p = sz;
      }
              

      A. Runtime error

      B. NULL

      C. hello

      D. Compiler error

    4. Ans: Compiler error (Option D)

    5. The output of the following program is:
      
      #include 
      void f(char **p)
      {
        char *sz = "hello";
        *p = sz;
      }
      main( )
      {
        char *p = "NULL";
        f(&p);
        printf("%s\n", p);
      }
              

      A. Compiler error

      B. Runtime error

      C. hello Answer: Option C

      D. 1

    6. The output of the following program is:
      
      #include
      main( )
      {
        int n;
        if(n <= -1)
        {
          int x = 1;
        }
        else
        {
          int x = 1;
        }
      }
              

      A. Compiler error Answer: Option A

      B. Unpredictable output

      C. 10

      D. 1

    7. The correct declaration of a pointer “func” to function returning a “char” and taking no parameters is:

      A. char func( )* func;

      B. char (*func)( ); Answer: Option B

      C. char* ( ) func;

      D. None of the above

    8. The output of the following program is:
      
      #include
      #define arbit 5
      main( )
      {
        printf("%d\n", arbit);
      }
              

      A. 5 Answer: Option A

      B. 6

      C. Compiler error

      D. Runtime error

    9. Determine which of the following are valid identifiers:
      • i. Return
      • ii. 123 45 6789
      • iii. Record_1
      • iv. $Tax

      A. iii & iv Answer: Option A

      B. i & iii

      C. i, ii & iv

      D. i & iv




 


.

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-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy