Assistant Programmer2025
JKSSB • Information Technology Department
📚 8 Subjects Tested in this ExamView Subjects ▾
📝 Solved Questions with Detailed Explanations100% Free • No Login Required
What is the index of the first element in a C array?
What type of loop is guaranteed to execute at least once?
What is the correct way to declare a pointer to an integer in C?
What is recursion in C?
What does the & operator do in C?
What does the following code output?
int x = 10;
int p = &x;
printf("%d", p);
int x = 10;
int p = &x; printf("%d", p);
Which of the following is a valid string declaration in C?
What will happen if fopen() fails to open a file?
Which of the following statements about unions is TRUE?
What will sizeof(char) return in C?
What is the output of this code?
char str[] = "Hello";
printf("%c", *(str + 1));
char str[] = "Hello";
printf("%c", *(str + 1));
Which of the following is not a component of a DBMS?
Which of the following is not an advantage of a DBMS?
An attribute in an E-R model is represented by:
Which function returns the number of rows in a SQL query?
What is the correct sequence to create and link two tables with a foreign key?
I. Create the parent table
II. Define the foreign key in the child table
III. Create the child table
Options:
I. Create the parent table
II. Define the foreign key in the child table
III. Create the child table
Options:
In an E-R diagram, a weak entity is identified by:
A foreign key in one table refers to:
Which clause is used with GROUP BY to filter groups?
Arrange the following steps involved in query compilation in the correct order:
I. Translation of high-level query into relational algebra
II. Parsing and validating the SQL query
III. Optimization of the relational algebra query
IV. Generating an execution plan for the query
Options:
I. Translation of high-level query into relational algebra
II. Parsing and validating the SQL query
III. Optimization of the relational algebra query
IV. Generating an execution plan for the query
Options:
Which of the following SQL statements creates a foreign key constraint?
Consider a relation R(A, B, C) with the following functional dependencies:
1. A -> B
2. B -> C
What is the candidate key of R?
1. A -> B
2. B -> C
What is the candidate key of R?
Which of the following mechanisms is most effective for preventing SQL injection attacks?
Process synchronization is necessary to:
What is the main purpose of spooling in I/O systems?
Which memory management technique loads the entire process into memory before execution?
The Banker's Algorithm is used for:
In fixed partitioning, if the process size is smaller than the partition size, the remaining memory is called:
Which of the following scheduling algorithms allows the shortest job to execute first?
About process synchronization and semaphores:
I. A binary semaphore is used for mutual exclusion.
II. Spinlocks are efficient for single-core systems.
III. Semaphores can lead to starvation if not handled properly.
IV. A race condition occurs only in single-threaded environments.
Which statements are correct?
I. A binary semaphore is used for mutual exclusion.
II. Spinlocks are efficient for single-core systems.
III. Semaphores can lead to starvation if not handled properly.
IV. A race condition occurs only in single-threaded environments.
Which statements are correct?
Consider the following file allocation techniques:
Column-A (Allocation Type)
i. Contiguous Allocation
ii. Linked Allocation
iii. Indexed Allocation
iv. Index node
Column-B (Property)
1. Simple, fast access but causes external fragmentation
2. Uses pointers; poor random access
3. Supports direct access using index block.
4. Stores metadata and block pointers in UNIX.
Which of the pairs given above is correctly matched?
Column-A (Allocation Type)
i. Contiguous Allocation
ii. Linked Allocation
iii. Indexed Allocation
iv. Index node
Column-B (Property)
1. Simple, fast access but causes external fragmentation
2. Uses pointers; poor random access
3. Supports direct access using index block.
4. Stores metadata and block pointers in UNIX.
Which of the pairs given above is correctly matched?
What is Belady's Anomaly in memory management?
In virtual memory, what is a page fault?
What is the time complexity of linear search in the worst case?
Which sorting algorithm repeatedly compares adjacent elements and swaps them if needed?
Which tree traversal method visits nodes in the order: Left, Root, Right?
Arrange the operations in correct order to delete an element from the rear of a queue implemented using a singly linked list:
I. Traverse to second last node
II. Set its next to NULL
III. Free the last node
IV. Check if queue is empty
Choose the correct option:
I. Traverse to second last node
II. Set its next to NULL
III. Free the last node
IV. Check if queue is empty
Choose the correct option:
Which condition indicates a queue is full in a circular array implementation?
Which of the following is NOT a characteristic of structured programming?
For an array declared as int arr[5][5]; in C, the element arr[2][3] is accessed in memory at:
Which of the following statements about recursion is FALSE?
What will be the state of a queue after performing the following operations on an empty queue: enqueue(10), enqueue(20), dequeue(), enqueue(30)?
Which of the following best describes the difference between top-down and bottom-up problem solving?
In a binary tree, the number of null pointers is equal to:
In C++, the concept of data hiding is implemented using:
In C++, which symbol is used to indicate inheritance?
What is function overloading in C++?
What does the eof() function do in file handling?
What is runtime polymorphism achieved through in C++?
Evaluate these statements about data abstraction and data hiding in C++:
I. Data abstraction is achieved through access specifiers like private and protected.
II. Data hiding prevents external code from accessing internal class data directly.
III. Data abstraction and data hiding are unrelated concepts.
IV. Abstraction focuses on what an object does, not how it does it.
Which are true?
I. Data abstraction is achieved through access specifiers like private and protected.
II. Data hiding prevents external code from accessing internal class data directly.
III. Data abstraction and data hiding are unrelated concepts.
IV. Abstraction focuses on what an object does, not how it does it.
Which are true?
Which of the following best differentiates Object Oriented Programming from Procedure Oriented Programming?
Consider the following function:
int sum(int a, int b) { return a + b; }
float sum(float a, float b) { return a + b; }
What concept is demonstrated here?
int sum(int a, int b) { return a + b; }
float sum(float a, float b) { return a + b; }
What concept is demonstrated here?
What will be the output of the following code?
int x = 5;
int y = ++x * 2;
cout << y;
int x = 5;
int y = ++x * 2;
cout << y;
Identify the correct statement regarding multiple inheritance:
Which of the following statements about pointers to member functions is true?
In the context of file I/O in C++, which of the following statements is false?
Which of the following is not allowed in a class definition in C++?
What is the extension of a compiled Java file?
Which method is used to start a thread in Java?
What does System.out.println(10 + 20 + "Java"); print?
What is garbage collection in Java?
Match the casting types with their example:
Column - A
i. Widening Cast
ii. Narrowing Cast
iii. Upcasting
iv. Downcasting
Column - B
1. int i = (int) 3.5;
2. double d = 5;
3. Animal a = new Dog();
4. Dog d = (Dog) new Animal();
Options:
Column - A
i. Widening Cast
ii. Narrowing Cast
iii. Upcasting
iv. Downcasting
Column - B
1. int i = (int) 3.5;
2. double d = 5;
3. Animal a = new Dog();
4. Dog d = (Dog) new Animal();
Options:
Which of the following statements about Java arrays is true?
What does the finally block do in exception handling?
Which of the following is not a valid Java thread method?
Determine the correct order for exception propagation in Java when a method throws a checked exception:
I. Method declares exception with throws
II. Calling method handles using try-catch
III. Checked exception is thrown
IV. JVM checks exception declaration
Options:
I. Method declares exception with throws
II. Calling method handles using try-catch
III. Checked exception is thrown
IV. JVM checks exception declaration
Options:
Which of the following statements about the Java Virtual Machine (JVM) are correct?
I. JVM converts bytecode directly to source code
II. JVM is platform dependent but the bytecode it runs is platform independent
III. JVM provides memory management and garbage collection
IV. JVM runs only .java files directly
Choose the correct option:
I. JVM converts bytecode directly to source code
II. JVM is platform dependent but the bytecode it runs is platform independent
III. JVM provides memory management and garbage collection
IV. JVM runs only .java files directly
Choose the correct option:
Consider the following snippet. What will be the output?
int x = 10;
int y = ++x * 2 + x--;
System.out.println(y);
Options:
A) 21
B) 22
C) 23
D) 24
int x = 10;
int y = ++x * 2 + x--;
System.out.println(y);
Options:
A) 21
B) 22
C) 23
D) 24
What is the default priority of a thread in Java?
What will be the output of the following Java code?
int[] arr = new int[]{1, 2, 3};
System.out.println(arr[3]);
int[] arr = new int[]{1, 2, 3};
System.out.println(arr[3]);
What does .NET Framework primarily provide?
In VB.NET, how do you declare a variable of type Integer?
In VB.NET, what does the Imports keyword do?
In VB.NET, which of the following is NOT a valid loop?
Arrange the following components in .NET Framework architecture from bottom to top:
I. Common Language Runtime (CLR)
II. Base Class Library (BCL)
III. ASP.NET, Windows Forms, ADO.NET
IV. User Application
Choose the correct option:
I. Common Language Runtime (CLR)
II. Base Class Library (BCL)
III. ASP.NET, Windows Forms, ADO.NET
IV. User Application
Choose the correct option:
What is the correct syntax to call a function with two arguments in VB.NET?
Which control is used to display multiple items, allowing multiple selections?
In a Try...Catch block, what is the use of the Finally block?
Which of the following correctly declares and initializes a 2-dimensional array in VB.NET?
Which component of the .NET architecture handles security, memory management, and exception handling?
Which of the following types supports multiple table representations in ADO.NET?
Which of the following statements about Function Overloading in VB.NET is true?
Which of the following statements about VB.NET loops and decision structures are correct? (Choose all that apply)
I. The For Each loop is used to iterate through elements in a collection.
II. The Select Case statement is used only for numeric values.
III. Nested loops are allowed in VB.NET.
IV. The If...ElseIf...Else structure allows multiple conditional checks sequentially.
V. The Do While loop executes its body at least once regardless of the condition.
Options:
I. The For Each loop is used to iterate through elements in a collection.
II. The Select Case statement is used only for numeric values.
III. Nested loops are allowed in VB.NET.
IV. The If...ElseIf...Else structure allows multiple conditional checks sequentially.
V. The Do While loop executes its body at least once regardless of the condition.
Options:
What does ISO 9126 focus on?
Which model emphasizes working software over documentation?
Arrange the following models in order of their historical development:
I. Waterfall Model
II. Spiral Model
III. Agile Model
IV. Prototyping Model
Choose the correct option:
I. Waterfall Model
II. Spiral Model
III. Agile Model
IV. Prototyping Model
Choose the correct option:
About software productivity and quality measurement, which are correct?
I. Productivity can be improved by using better tools and techniques.
II. Quality metrics often include defect density and mean time to failure.
III. Software quality and productivity are inversely related in all cases.
IV. Customer satisfaction is a key measure of software quality.
Options:
I. Productivity can be improved by using better tools and techniques.
II. Quality metrics often include defect density and mean time to failure.
III. Software quality and productivity are inversely related in all cases.
IV. Customer satisfaction is a key measure of software quality.
Options:
The Capability Maturity Model (CMM) is primarily used for:
Static analysis in software quality assurance refers to:
What is a major output of Formal Technical Reviews (FTRs)?
Which of the following is not a valid black box testing technique?
Which of the following is a formal method for software specification?
In COCOMO II, the term "scale factors" refers to:
Which of the following is NOT an activity in Configuration Management?
What is the loopback IP address in IPv4?
Which protocol uses public and private keys for encryption?
What type of attack floods a server with requests to crash it?
Arrange the following types of IP addresses in the correct order of usage priority during troubleshooting:
I. Loopback Address
II. Public IP Address
III. Private IP Address
IV. Link-local Address (for IPv6)
Choose the correct options:
I. Loopback Address
II. Public IP Address
III. Private IP Address
IV. Link-local Address (for IPv6)
Choose the correct options:
Match Special IP Addresses with Their Purpose:
List - A
i. 127.0.0.1
ii. 255.255.255.255
iii. 0.0.0.0
iv. 169.254.x.x
List - B
1. Loopback testing
2. Broadcast address
3. Default or unknown address
4. APIPA (Automatic Private IP Assignment) address
Options:
List - A
i. 127.0.0.1
ii. 255.255.255.255
iii. 0.0.0.0
iv. 169.254.x.x
List - B
1. Loopback testing
2. Broadcast address
3. Default or unknown address
4. APIPA (Automatic Private IP Assignment) address
Options:
About network switching concepts, which statements are TRUE?
I. Message switching sends the entire message to the destination before forwarding.
II. Circuit switching is inefficient for bursty data traffic but guarantees bandwidth.
III. Packet switching allows multiple sessions to share the same physical link simultaneously.
IV. Logical addressing is only used in circuit switching networks.
Options:
I. Message switching sends the entire message to the destination before forwarding.
II. Circuit switching is inefficient for bursty data traffic but guarantees bandwidth.
III. Packet switching allows multiple sessions to share the same physical link simultaneously.
IV. Logical addressing is only used in circuit switching networks.
Options:
What is the subnet mask for a network with 512 hosts per subnet?
What is a major advantage of asymmetric encryption over symmetric encryption?
Which of the following protocols uses asymmetric cryptography to exchange symmetric keys for data encryption?
Which of the following describes the primary role of the ARP (Address Resolution Protocol)?
Which layer in the TCP/IP model is responsible for logical addressing and routing?
Consider the following about Uniform Resource Locators (URLs):
I. URLs can include a protocol, domain, port, path, query, and fragment.
II. The query component in a URL is used to send data to the server.
III. Fragment identifiers are processed on the client side and are not sent to the server.
IV. URL registration is optional and not managed by any authority.
Choose the correct option:
I. URLs can include a protocol, domain, port, path, query, and fragment.
II. The query component in a URL is used to send data to the server.
III. Fragment identifiers are processed on the client side and are not sent to the server.
IV. URL registration is optional and not managed by any authority.
Choose the correct option:
Match the items in Column A with their correct descriptions in Column B:
Column - A
1. Hypermedia
2. Internet Explorer
3. Social Engineering
4. Digital Signature
5. Encryption
Column - B
i. Hypertext plus multimedia elements
ii. Web browser
iii. Attacking users by manipulating trust
iv. Ensures message authenticity and integrity
v. Process of converting data to unreadable form
Options:
Column - A
1. Hypermedia
2. Internet Explorer
3. Social Engineering
4. Digital Signature
5. Encryption
Column - B
i. Hypertext plus multimedia elements
ii. Web browser
iii. Attacking users by manipulating trust
iv. Ensures message authenticity and integrity
v. Process of converting data to unreadable form
Options:
Arrange the steps for DNS resolution when a user requests a website:
I. Recursive DNS resolver queries root DNS server
II. User types URL in browser
III. Recursive resolver queries authoritative DNS server for domain IP
IV. Browser receives IP address and initiates connection
V. Recursive resolver queries Top-Level Domain (TLD) DNS server
Options:
I. Recursive DNS resolver queries root DNS server
II. User types URL in browser
III. Recursive resolver queries authoritative DNS server for domain IP
IV. Browser receives IP address and initiates connection
V. Recursive resolver queries Top-Level Domain (TLD) DNS server
Options:
Which of the following best describes hypermedia?
Which technology allows digital data transmission over ordinary telephone lines at higher speeds?
What does authentication in web security refer to?
In HTTP/2, which feature allows multiplexing multiple requests over a single TCP connection?
In the context of proxy servers, what is the primary difference between a forward proxy and a reverse proxy?
Which RF link frequency bands are commonly used for VSAT satellite communication?
Which of the following correctly matches URL components?
Which HTTP response status code indicates a redirection to another resource?
Which browser engine powers both Google Chrome and Microsoft Edge (2020+)?
Which of the following is not part of a URL?
What kind of encryption is primarily used in SSL for data transmission after secure handshake?
🎯 Ready for a Timed Mock Test?
Simulate the real exam experience with a countdown timer, negative marking, and instant detailed scorecards.
About JKSSB Assistant Programmer 2025 Previous Year Paper
This page provides the full solved question paper for the JKSSB Assistant Programmer examination conducted in 2025 by the Information Technology Department. Every MCQ is presented with verified answer keys and detailed bilingual explanations to support concept building.
Key subjects covered in this paper include C Programming & Data Structures, Database Management Systems & SQL, Operating Systems & System Software, C++ & Object-Oriented Programming, Java Programming & JVM Architecture, .NET Framework & VB.NET Development, Software Engineering, Testing & Quality Assurance, Computer Networks, Web Technologies & Cybersecurity. Practicing authentic previous year questions is the proven way to master question patterns and improve accuracy for upcoming exams across Jammu & Kashmir.
