[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-391248-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-391248-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","hcl-interview-questions-for-freshers","HCL Interview Questions for Freshers","","HCL interview question bank for freshers covering core programming and computer science concepts, with concise answers and examples across C, C++, Java, and SQL. Topics include pointers and dynamic memory, virtual functions, access specifiers, multiple inheritance via interfaces, compiler vs interpreter vs assembler, database keys (primary/unique/foreign), and SQL constraints and joins. Also covered are DBMS fundamentals and .NET topics such as CLS, role-based security, and delegates, suitable for preparation and revision.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/exam/","Exam",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/hcl-interview-questions-for-freshers/391248/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/hcl-interview-questions-for-freshers/391248.png","ImageObject",300,407,{"name":42,"@type":43},"Stanford","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-09","2026-09-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",20,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"How are pointers used in C?","Question",{"text":63,"@type":64},"Pointers are used for call by reference, constructing data structures like graphs/trees/linked lists, accessing array elements, and supporting dynamic memory allocation (allocation and deallocation at runtime).","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What is the difference between a compiler, an interpreter, and an assembler?",{"text":68,"@type":64},"A compiler converts the whole high-level program to machine language at once, an interpreter converts line by line, and an assembler converts assembly language programs to machine language.",{"name":70,"@type":61,"acceptedAnswer":71},"What are SQL constraints and what are common examples?",{"text":72,"@type":64},"SQL constraints are limits or rules applied to data in a table to ensure accuracy and reliability. Examples include NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK, and DEFAULT.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},391248,1790351210,{"code":4,"msg":82,"data":83},"success",[84,88,92,95,100,105,110,115,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":93,"slug":94},70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":55,"slug":118},9,"Religion & Spirituality","religion-spirituality",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":55,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":33,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":111,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":55,"preview_page_count":4},2336477552062,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","HCL Interview Questions for Freshers  \nHCL Technical Interview Questions & Answers for Freshers  \n1. What is the use of the pointer in C?  \n● Call by Reference: The pointers are used to pass the reference of a variable to another function.  \n● Data Structures like a graph, tree, linked list, etc.: The pointers are used to construct a number of data structures like graphs, trees, linked lists, and so on.  \n● To access array elements: Pointers are used in traversing through an array of integers and strings. The string is an array of characters that is terminated by a null character '\\0' .  \n● For dynamic memory allocation: Pointers are used in the allocation and deallocation of memory while the program is being executed.  \n2. What is input-output (I/O) in C++?  \nIn C++ , the input stream is used to get inputs from the console i.e. the user. The output stream is used to display the results of the operations to the console, or to the output device. iostream represents the standard input-output stream in C++ . It contains different methods like cin, court, etc.  \n3. Explain about virtual functions  \nVirtual functions are used in C++ as member functions that are declared (and perhaps defined) in the base class and (re)defined by the derived class. That is, a virtual function can be overridden by the derived class with its own implementation.  \n4. Can we have a Private Constructor in Java?  \nPrivate Constructor is used if you do not want other class to instantiate the object. Private Constructor is used in Singleton design Pattern, Factory Method Design Pattern.  \n5. How is a constant variable different from a global variable?  \nGlobal variables can be modified and are accessible by all the functions in a program. Constant variables have a fixed value that cannot be changed throughout the program.  \n[https://www.freshersnow.com/](https://www.freshersnow.com/)  \nHCL Interview Questions for Freshers  \n6. What are access specifiers?  \nAccess specifiers or modifiers define the access of a particular class, method, or variable to the other parts of the application. There are mainly 3 access specifiers – Public, Private, and Protected.  \n7. How do you achieve multiple inheritances in Java?  \nThe only way to implement multiple inheritances is to implement multiple interfaces in a class. In Java, one class can implement two or more interfaces. As all methods declared in interfaces are implemented in the class, this does not cause any ambiguity.  \n8. What is the difference between compiler, interpreter, and assembler?  \nOne of the key differences is-The compiler converts the whole high-level language program to machine language at a time. On the other hand, an interpreter converts high-level language programs to machine language line by line. An assembler converts assembly language  \nprograms to machine language. Copyright to [https://www.freshersnow.com/](https://www.freshersnow.com/)  \n9. Difference Between Primary Key and Unique Key  \n● Primary Key: In the need of a primary key there must be at least one key at the table and the use of this key helps in blocking the duplicate and also the null value.  \n● Unique Key: Whereas, in the unique key process, there can be more than one key in the table and here it will block the duplicated value and will rather accept the null value.  \n10. What are constraints in SQL?  \nConstraints in SQL are the limits or rules that we can apply to the different types of data in a given table. Constraints are used to ensure the accuracy and reliability of the data in the table.  \n● NOT NULL: This particular constraint informs us that one cannot store a null value within a column.  \n● UNIQUE: When specified with a column, this constraint informs that all the values in a given column must be unique.  \n● PRIMARY KEY: A primary key is a field that can uniquely identify each row in a table. This is typically used to specify a field in a table as the primary key.  \n● FOREIGN KEY: A Foreign key is a field that can uniqu","cbCaigdavP4Gabvq","https://ap.wps.com/l/cbCaigdavP4Gabvq","pdf",118117,"English","# Programming Fundamentals\n## C and C++ Concepts\n## Java and OOP\n## Compilation and Execution\n# Databases and SQL\n## Keys and Constraints\n## Joins and Queries\n# .NET and Security\n## CLS and Interoperability\n## Role-Based Security\n## Delegates","[{\"question\":\"How are pointers used in C?\",\"answer\":\"Pointers are used for call by reference, constructing data structures like graphs/trees/linked lists, accessing array elements, and supporting dynamic memory allocation (allocation and deallocation at runtime).\"},{\"question\":\"What is the difference between a compiler, an interpreter, and an assembler?\",\"answer\":\"A compiler converts the whole high-level program to machine language at once, an interpreter converts line by line, and an assembler converts assembly language programs to machine language.\"},{\"question\":\"What are SQL constraints and what are common examples?\",\"answer\":\"SQL constraints are limits or rules applied to data in a table to ensure accuracy and reliability. Examples include NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK, and DEFAULT.\"}]","HCL Interview Questions for Freshers | PDF",1790350372]