Technical Questions

Q:

What would be the output of the following program?

main()

{

    int i = -3, j =2, k =0, m ;

    m = ++j && ++i || ++k ;

    Printf ( "\n%d%d%d%d", i , j , k , m );

}

Answer

-2  3  0  1

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 1891
Q:

What would be the output of the following program?

main()

{

    printf (" %d%d%d ", sizeof (3.14f), sizeof (3.14), sizeof (3. 141);

}

Answer

4  8  10

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1890
Q:

C program to find whether a number is palindrome or not.

Answer

 #include<stdio.h>
int main(){
    int num,r,sum=0,temp;

    printf("Enter a number: ");
    scanf("%d",&num);

    temp=num;
    while(num){
         r=num%10;
         num=num/10;
         sum=sum*10+r;
    }
    if(temp==sum)
         printf("%d is a palindrome",temp);
    else
         printf("%d is not a palindrome",temp);

    return 0;
}

Sample output:
Enter a number: 131
131 is a palindrome

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 1890
Q:

CM is about managing the different items in the product, and changes in them.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Configuration Management is a support for software in managing the different items in the product, and changes in them.

Report Error

View Answer Workspace Report Error Discuss

2 1885
Q:

How to clear Computer Motherboard CMOS password?

Answer

To clear the CMOS password you just remove the CMOS Battery or else you can also use a jumper settings.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

1 1881
Q:

What's the maximum hard drive size for FAT16-based Windows system?

Answer

Maximum hard drive size for FAT16-based windows system is 2GB.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1880
Q:

Swap two variables without using third variable.

Answer

#include<stdio.h>
int main(){
    int a=5,b=10;
    a=b+a;
    b=a-b;
    a=a-b;
    printf("a= %d  b=  %d",a,b);
}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1878
Q:

What is an operating system?

Answer

 


An operating system is a program that acts as an intermediary between the user and the computer hardware. The purpose of an OS is to provide a convenient environment in which user can execute programs in a convenient and efficient manner. It is a resource allocator responsible for allocating system resources and a control program which controls the operation of the computer hardware.

Report Error

View answer Workspace Report Error Discuss

2 1878