.
  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. What is the state of the marked line (i)?

    A. dangling pointer p

    B. defined

    C. memory leakage during malloc

    D. Answer: Option A

  2. Solution: The `realloc(p, 0)` makes `p` a dangling pointer because it frees the memory pointed to by `p` without assigning it a new address.
  3. What will the program return?

    A. Always 0

    B. Always 1 Answer: Option A

  4. Solution: The condition `if (i++, i)` evaluates `i` after the increment, but since the incremented value is 0 (false), it always returns 0.
  5. What will be the value of `is_keyword`?

    A. Compile error

    B. 1

    C. Error, before the `:` Answer: Option A

  6. Solution: Bitfields cannot be accessed or printed without proper initialization, leading to a compile error.
  7. What is the size of `ARRAY_SIZE`?

    A. 20

    B. 200

    C. 16

    D. 160 Answer: Option B

  8. Solution: The array size is 10, and the struct size is padded to a multiple of 20. Hence, 10 x 20 = 200.
  9. What will be the output of the following program?

    A. Hello,world0000000000

    B. Hello,worl

    C. 0000000000Hello,world

    D. Hello,world Answer: Option D

  10. Solution: The program prints the string directly without adding spaces or truncating.
  11. What will be the output of this program?

    A. The string is : First

    B. The string is : FirstSecond

    C. The string is

    D. Unknown, since the scope of the pointer is local Answer: Option C

  12. Solution: The `static` variable `xxx` is overwritten with the second value "Second," so the program outputs "The string is".
  13. What is the output of the following recursive program?

    A. 0,0,1,2,3,

    B. 4,8,12,16,0

    C. Error cannot pass element pointer

    D. 0,16,12,8,4 Answer: Option D

  14. Solution: The recursive function processes the array from the last element backward, printing the elements in reverse order.
  15. What is the output of the following line in a 32-bit OS?

    A. 4,2

    B. 1,1

    C. 1,2

    D. 2,2 Answer: Option C

  16. Solution: The size of a character literal is 1 byte, while the size of a string literal includes a null terminator, making it 2 bytes.
  17. What is the output of the following program?

    A. 150

    B. 64

    C. 125

    D. 225 Answer: Option B

  18. Solution: The function computes the cube of the number 4, which is 64.




 


.

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