LawMint Sign in

Karnataka SET (KSET) Programming Languages and Computer Graphics Previous Year Questions

Try the preview and open any solution for a worked explanation.

Karnataka SET (KSET) practice pack

The practice pack for Karnataka SET (KSET) is coming soon to LawMint.

Question 1

Match the following:

File ExtensionFile Format
a. .wav(i) structured
b. .pdf(ii) image
c. .pcd(iii) video
d. .WMV(iv) audio

Select one answer

Question 2

What is the output of the following code snippet?

public class Test
{
    public int getData ()
    {
        return 0;
    }
    public long getData ()
    {
        return 1;
    }
    public static void main (String [] args)
    {
        Test t = new Test ();
        System.out.println(t.getData());
    }
}
Select one answer

Question 3

What will be the output of the following code snippet?

# include <stdio.h>
void solve ()
{
    int x = 2;
    printf ("% d ", (x<<1) + (x>>1));
}
int main ()
{
    solve ();
    return 0;
}
Select one answer

Question 4

What is the output of the following program?

# include <stdio.h>
int main ()
{
    struct emp
    {
        char name[20];
        int age;
        float sal;
    };
    struct emp e = {"computer", 0, 0};
    printf ("%d \t % f ", e.age, e.sal);
    return 0;
}
Select one answer

Question 5

What pair of union sizes, in bytes, does the following code print? Assume sizeof(int) = 4, sizeof(char) = 1, and no trailing padding beyond the largest member in either union.

#include <stdio.h>
union u1
{
    int x;
    char y;
};
union u2
{
    int a[10];
    char y1;
};
int main ()
{
    printf("size of u1 = %zu\t", sizeof (union u1));
    printf("size of u2 = %zu", sizeof (union u2));
    return 0;
}
Select one answer

Question 6

A 16 × 16 array having only black and white pixels could be represented by __________

Select one answer

Question 7

Which of the following matrices represents a 2D rotation by an angle θ?

Select one answer

Question 8

How much memory is required to implement a z-buffer for a 512 × 512 image with 24-bit depth?

Select one answer

Question 9

Given 3D-triangle with co-ordinate points A(3, 4, 1), B(6, 4, 2) and C(5, 6, 3). Apply the reflection on the XY plane and find out new co-ordinates of the object.

Select one answer

Question 10

How many times will the following C Loop execute?

for (j = 1; j <= 10; j = j - 1)
Select one answer

Continue practising

The practice pack for Karnataka SET (KSET) is coming soon to LawMint.

Karnataka SET (KSET) practice pack

The practice pack for Karnataka SET (KSET) is coming soon to LawMint.