Assistant Programmer2025

JKSSB • Information Technology Department

120Questions
8Subjects
100%Solved
📚 8 Subjects Tested in this ExamView Subjects ▾
C Programming & Data StructuresDatabase Management Systems & SQLOperating Systems & System SoftwareC++ & Object-Oriented ProgrammingJava Programming & JVM Architecture.NET Framework & VB.NET DevelopmentSoftware Engineering, Testing & Quality AssuranceComputer Networks, Web Technologies & Cybersecurity

📝 Solved Questions with Detailed Explanations100% Free • No Login Required

Mode: Interactive Practice (Click any option to test yourself)
Q1
C Programming & Data StructuresC Functions & Return Types

Which keyword is used to declare a function that returns no value?

Q2
C Programming & Data StructuresArrays in C

What is the index of the first element in a C array?

Q3
C Programming & Data StructuresControl Flow & Loops

What type of loop is guaranteed to execute at least once?

Q4
C Programming & Data StructuresPointers in C

What is the correct way to declare a pointer to an integer in C?

Q5
C Programming & Data StructuresFunctions & Recursion

What is recursion in C?

Q6
C Programming & Data StructuresPointers & Address Operator

What does the & operator do in C?

Q7
C Programming & Data StructuresPointer Dereferencing

What does the following code output?
int x = 10;
int p = &x; printf("%d", p);

Q8
C Programming & Data StructuresStrings in C

Which of the following is a valid string declaration in C?

Q9
C Programming & Data StructuresFile Handling in C

What will happen if fopen() fails to open a file?

Q10
C Programming & Data StructuresStructures and Unions

Which of the following statements about unions is TRUE?

Q11
C Programming & Data StructuresData Types & sizeof Operator

What will sizeof(char) return in C?

Q12
C Programming & Data StructuresPointer Arithmetic & Strings

What is the output of this code?
char str[] = "Hello";
printf("%c", *(str + 1));

Q13
Database Management Systems & SQLDBMS Architecture & Components

Which of the following is not a component of a DBMS?

Q14
Database Management Systems & SQLDBMS Advantages & Concepts

Which of the following is not an advantage of a DBMS?

Q15
Database Management Systems & SQLEntity-Relationship Modeling

An attribute in an E-R model is represented by:

Q16
Database Management Systems & SQLSQL Aggregate Functions

Which function returns the number of rows in a SQL query?

Q17
Database Management Systems & SQLRelational Integrity & Foreign Keys

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:

Q18
Database Management Systems & SQLWeak Entities & E-R Diagrams

In an E-R diagram, a weak entity is identified by:

Q19
Database Management Systems & SQLRelational Keys & Constraints

A foreign key in one table refers to:

Q20
Database Management Systems & SQLSQL Clauses & Grouping

Which clause is used with GROUP BY to filter groups?

Q21
Database Management Systems & SQLQuery Processing & Optimization

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:

Q22
Database Management Systems & SQLSQL DDL & Constraints

Which of the following SQL statements creates a foreign key constraint?

Q23
Database Management Systems & SQLNormalization & Functional Dependencies

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?

Q24
Database Management Systems & SQLDatabase Security & SQL Injection

Which of the following mechanisms is most effective for preventing SQL injection attacks?

Q25
Operating Systems & System SoftwareProcess Synchronization & Concurrency

Process synchronization is necessary to:

Q26
Operating Systems & System SoftwareI/O Systems & Spooling

What is the main purpose of spooling in I/O systems?

Q27
Operating Systems & System SoftwareMemory Management Techniques

Which memory management technique loads the entire process into memory before execution?

Q28
Operating Systems & System SoftwareDeadlocks & Banker's Algorithm

The Banker's Algorithm is used for:

Q29
Operating Systems & System SoftwareMemory Partitioning & Fragmentation

In fixed partitioning, if the process size is smaller than the partition size, the remaining memory is called:

Q30
Operating Systems & System SoftwareCPU Scheduling Algorithms

Which of the following scheduling algorithms allows the shortest job to execute first?

Q31
Operating Systems & System SoftwareSemaphores & Concurrency

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?

Q32
Operating Systems & System SoftwareFile System Allocation Methods

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?

Q33
Operating Systems & System SoftwareVirtual Memory & Page Replacement

What is Belady's Anomaly in memory management?

Q34
Operating Systems & System SoftwareVirtual Memory & Page Faults

In virtual memory, what is a page fault?

Q35
C Programming & Data StructuresSearching Algorithms & Complexity

What is the time complexity of linear search in the worst case?

Q36
C Programming & Data StructuresSorting Algorithms

Which sorting algorithm repeatedly compares adjacent elements and swaps them if needed?

Q37
C Programming & Data StructuresBinary Tree Traversals

Which tree traversal method visits nodes in the order: Left, Root, Right?

Q38
C Programming & Data StructuresLinked Queue Operations

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:

Q39
C Programming & Data StructuresCircular Queue Implementation

Which condition indicates a queue is full in a circular array implementation?

Q40
C Programming & Data StructuresStructured Programming Paradigms

Which of the following is NOT a characteristic of structured programming?

Q41
C Programming & Data StructuresRow-Major Memory Addressing

For an array declared as int arr[5][5]; in C, the element arr[2][3] is accessed in memory at:

Q42
C Programming & Data StructuresRecursion vs Iteration

Which of the following statements about recursion is FALSE?

Q43
C Programming & Data StructuresQueue Operations & State

What will be the state of a queue after performing the following operations on an empty queue: enqueue(10), enqueue(20), dequeue(), enqueue(30)?

Q44
C Programming & Data StructuresProblem Solving Approaches

Which of the following best describes the difference between top-down and bottom-up problem solving?

Q45
C Programming & Data StructuresBinary Tree Properties

In a binary tree, the number of null pointers is equal to:

Q46
C++ & Object-Oriented ProgrammingC++ Encapsulation & Data Hiding

In C++, the concept of data hiding is implemented using:

Q47
C++ & Object-Oriented ProgrammingC++ Inheritance Syntax

In C++, which symbol is used to indicate inheritance?

Q48
C++ & Object-Oriented ProgrammingFunction Overloading & Polymorphism

What is function overloading in C++?

Q49
C++ & Object-Oriented ProgrammingFile Streams in C++

What does the eof() function do in file handling?

Q50
C++ & Object-Oriented ProgrammingVirtual Functions & Dynamic Binding

What is runtime polymorphism achieved through in C++?

Q51
C++ & Object-Oriented ProgrammingOOP Concepts & Abstraction

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?

Q52
C++ & Object-Oriented ProgrammingOOP vs POP Paradigms

Which of the following best differentiates Object Oriented Programming from Procedure Oriented Programming?

Q53
C++ & Object-Oriented ProgrammingFunction Overloading

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?

Q54
C++ & Object-Oriented ProgrammingOperators & Pre-increment

What will be the output of the following code?
int x = 5;
int y = ++x * 2;
cout << y;

Q55
C++ & Object-Oriented ProgrammingMultiple & Virtual Inheritance

Identify the correct statement regarding multiple inheritance:

Q56
C++ & Object-Oriented ProgrammingPointers to Member Functions

Which of the following statements about pointers to member functions is true?

Q57
C++ & Object-Oriented ProgrammingFile I/O Streams in C++

In the context of file I/O in C++, which of the following statements is false?

Q58
C++ & Object-Oriented ProgrammingC++ Class Declarations

Which of the following is not allowed in a class definition in C++?

Q59
Java Programming & JVM ArchitectureJava Compilation & Bytecode

What is the extension of a compiled Java file?

Q60
Java Programming & JVM ArchitectureJava Multithreading

Which method is used to start a thread in Java?

Q61
Java Programming & JVM ArchitectureJava Operators & String Concatenation

What does System.out.println(10 + 20 + "Java"); print?

Q62
Java Programming & JVM ArchitectureJVM Garbage Collection

What is garbage collection in Java?

Q63
Java Programming & JVM ArchitectureType Casting & Polymorphism

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:

Q64
Java Programming & JVM ArchitectureJava Arrays

Which of the following statements about Java arrays is true?

Q65
Java Programming & JVM ArchitectureException Handling & Finally

What does the finally block do in exception handling?

Q66
Java Programming & JVM ArchitectureJava Thread Methods

Which of the following is not a valid Java thread method?

Q67
Java Programming & JVM ArchitectureException Propagation in Java

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:

Q68
Java Programming & JVM ArchitectureJVM Architecture & Platform Independence

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:

Q69
Java Programming & JVM ArchitectureJava Pre/Post Increment Evaluation

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

Q70
Java Programming & JVM ArchitectureThread Priorities in Java

What is the default priority of a thread in Java?

Q71
Java Programming & JVM ArchitectureJava Array Bounds Exception

What will be the output of the following Java code?
int[] arr = new int[]{1, 2, 3};
System.out.println(arr[3]);

Q72
.NET Framework & VB.NET Development.NET Framework Overview

What does .NET Framework primarily provide?

Q73
.NET Framework & VB.NET DevelopmentVB.NET Variable Declaration

In VB.NET, how do you declare a variable of type Integer?

Q74
.NET Framework & VB.NET DevelopmentVB.NET Namespaces & Imports

In VB.NET, what does the Imports keyword do?

Q75
.NET Framework & VB.NET DevelopmentVB.NET Looping Structures

In VB.NET, which of the following is NOT a valid loop?

Q76
.NET Framework & VB.NET Development.NET Framework Architecture

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:

Q77
.NET Framework & VB.NET DevelopmentVB.NET Function Calls

What is the correct syntax to call a function with two arguments in VB.NET?

Q78
.NET Framework & VB.NET DevelopmentWindows Forms Controls

Which control is used to display multiple items, allowing multiple selections?

Q79
.NET Framework & VB.NET DevelopmentException Handling in .NET

In a Try...Catch block, what is the use of the Finally block?

Q80
.NET Framework & VB.NET DevelopmentVB.NET Arrays

Which of the following correctly declares and initializes a 2-dimensional array in VB.NET?

Q81
.NET Framework & VB.NET DevelopmentCommon Language Runtime (CLR)

Which component of the .NET architecture handles security, memory management, and exception handling?

Q82
.NET Framework & VB.NET DevelopmentADO.NET & DataSets

Which of the following types supports multiple table representations in ADO.NET?

Q83
.NET Framework & VB.NET DevelopmentVB.NET Function Overloading

Which of the following statements about Function Overloading in VB.NET is true?

Q84
.NET Framework & VB.NET DevelopmentVB.NET Control Flow & Loops

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:

Q85
Software Engineering, Testing & Quality AssuranceSoftware Quality Standards (ISO 9126)

What does ISO 9126 focus on?

Q86
Software Engineering, Testing & Quality AssuranceSoftware Development Life Cycle (Agile)

Which model emphasizes working software over documentation?

Q87
Software Engineering, Testing & Quality AssuranceSDLC Models & History

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:

Q88
Software Engineering, Testing & Quality AssuranceSoftware Metrics & Quality Assurance

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:

Q89
Software Engineering, Testing & Quality AssuranceCapability Maturity Model (CMM)

The Capability Maturity Model (CMM) is primarily used for:

Q90
Software Engineering, Testing & Quality AssuranceSoftware Verification & Testing

Static analysis in software quality assurance refers to:

Q91
Software Engineering, Testing & Quality AssuranceFormal Technical Reviews & Inspection

What is a major output of Formal Technical Reviews (FTRs)?

Q92
Software Engineering, Testing & Quality AssuranceSoftware Testing Techniques

Which of the following is not a valid black box testing technique?

Q93
Software Engineering, Testing & Quality AssuranceFormal Specification Methods

Which of the following is a formal method for software specification?

Q94
Software Engineering, Testing & Quality AssuranceSoftware Estimation & COCOMO II

In COCOMO II, the term "scale factors" refers to:

Q95
Software Engineering, Testing & Quality AssuranceSoftware Configuration Management

Which of the following is NOT an activity in Configuration Management?

Q96
Computer Networks, Web Technologies & CybersecurityIP Addressing & Special Addresses

What is the loopback IP address in IPv4?

Q97
Computer Networks, Web Technologies & CybersecurityCryptography & Encryption

Which protocol uses public and private keys for encryption?

Q98
Computer Networks, Web Technologies & CybersecurityNetwork Security & Cyber Attacks

What type of attack floods a server with requests to crash it?

Q99
Computer Networks, Web Technologies & CybersecurityNetwork Troubleshooting & IP Addressing

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:

Q100
Computer Networks, Web Technologies & CybersecuritySpecial Purpose IP Addresses

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:

Q101
Computer Networks, Web Technologies & CybersecurityNetwork Switching Concepts

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:

Q102
Computer Networks, Web Technologies & CybersecuritySubnetting & IP Addressing

What is the subnet mask for a network with 512 hosts per subnet?

Q103
Computer Networks, Web Technologies & CybersecurityCryptography & Key Management

What is a major advantage of asymmetric encryption over symmetric encryption?

Q104
Computer Networks, Web Technologies & CybersecuritySSL/TLS & Cryptographic Protocols

Which of the following protocols uses asymmetric cryptography to exchange symmetric keys for data encryption?

Q105
Computer Networks, Web Technologies & CybersecurityNetwork Protocols & ARP

Which of the following describes the primary role of the ARP (Address Resolution Protocol)?

Q106
Computer Networks, Web Technologies & CybersecurityTCP/IP Architecture & Layers

Which layer in the TCP/IP model is responsible for logical addressing and routing?

Q107
Computer Networks, Web Technologies & CybersecurityWeb Architecture & URLs

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:

Q108
Computer Networks, Web Technologies & CybersecurityInformation Security & Web Basics

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:

Q109
Computer Networks, Web Technologies & CybersecurityDomain Name System (DNS)

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:

Q110
Computer Networks, Web Technologies & CybersecurityHypermedia & Web Systems

Which of the following best describes hypermedia?

Q111
Computer Networks, Web Technologies & CybersecurityTelecommunication & ISDN

Which technology allows digital data transmission over ordinary telephone lines at higher speeds?

Q112
Computer Networks, Web Technologies & CybersecurityWeb Security & Authentication

What does authentication in web security refer to?

Q113
Computer Networks, Web Technologies & CybersecurityHTTP/2 Protocols & Binary Framing

In HTTP/2, which feature allows multiplexing multiple requests over a single TCP connection?

Q114
Computer Networks, Web Technologies & CybersecurityProxy Servers & Network Architecture

In the context of proxy servers, what is the primary difference between a forward proxy and a reverse proxy?

Q115
Computer Networks, Web Technologies & CybersecuritySatellite Communication & VSAT

Which RF link frequency bands are commonly used for VSAT satellite communication?

Q116
Computer Networks, Web Technologies & CybersecurityURL Structure & Components

Which of the following correctly matches URL components?

Q117
Computer Networks, Web Technologies & CybersecurityHTTP Status Codes

Which HTTP response status code indicates a redirection to another resource?

Q118
Computer Networks, Web Technologies & CybersecurityWeb Browser Engines

Which browser engine powers both Google Chrome and Microsoft Edge (2020+)?

Q119
Computer Networks, Web Technologies & CybersecurityUniform Resource Locators (URL)

Which of the following is not part of a URL?

Q120
Computer Networks, Web Technologies & CybersecuritySSL/TLS & Bulk Data Encryption

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.

📄 More Solved J&K Papers

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.