Write a function to find how many binary 1s nd 0s present in a number
What is the output of the program?
Main() { char a='123' printf ("%c n",a); return 0; } a. Ascii value of 121 b. 1 c. 3 d. None of these
The answer is either 3 or its ascii value 51 depending on the compiler.
ANSWER:(A)ASCII Value of 123
Main() { int a[]={0 1 2 3}; int *b; b=&a[2]; printf("%d",b[-1]); } technical interview
6
The answer is 1. Negative subscripts are definitely allowed in C and C++.
Its both because in some books it is
1:Uniform Resource Locator and in some other books its 2:Universal Resource Locator because they both
suggesting that the location of the resource at Universally and Uniformly hope you have got right thing from this answer
A. universal resource locator
what is the output? int i=7 printf("%dn",i++*i++);
Its 49n because compiler starts execution from right to left then it founds that ++i (remember,this is compiler execution) means it will take just 7 simply then again it founds that ++i (remember,this...
Since i=7
hence i++*i++=7+1*i++
=8*7++
=56++
=57
Since it is printf("%dn",i++*i++)
The output is 57n
Applet life cycle: applet life cycle 1.init() [born of applet] 2.start() [start of applet] ...
An applet can react to major events in the following ways:
It can initialize itself.
It can start running.
It can stop running.
It can perform a final cleanup, in preparation for being unloaded.
a
A. Language Independence
What is l value r value and I value
l value refers to memory location and r value is known as read values.
l values are present on the left side of = sign and r value are present on the right side of = sign
int j;
j=6;
here j is l value and 6 is r value..as we cannot write 6=j,hence l value is required.
what is the output of the program? int n=f,m; n==m++; m==++n; printf(n, m);
"n=m m=1+n"
Code
"n=m m=1+n"
Error bcoz there is no initilization of numeric value.
which is a command interpreter? a. Shell b. Kernel c. Both a and b d. None of these
shell
A. shell
cdrom access is a. Random b. Semi random c. Sequential d. None of these
A. Random
A. Random
What function will read a specified number of elements from a file ?
A) fread() b) readfile() c) fileread() d) gets()
fread()
readfile()
What is the name given to the process of initializing a micro computer with its os?
It is known as Kenbak.
Booting
Why does wave length increase when waves entering a waveguide?
Waves in open space propagate in all directions, as spherical waves. In this way they lose their power proportionally to the square of the distance; that is, at a distance R from the source, the power...
This question answer is (a).
C
Virtual memory depends on the Disc Space.
the ans will be none of these.
because scanf("%[^a]",dummy); means it will store characters in dummy upto 1st a is encountered in the input
buffer stdin .
so it will show output to the string upto 1st 'a';
eg. if we will enter "hello sapan"
it will show :- hello s
it will print the characters till 'a' encounter..
If you will write scanf("%[^g]",dummy);
then
It will print all the characters till the 'g' encounter.
it's the Symbol Table
B) Symbol Table
How can we reverse a string using bourne shell scripting?
[~/temp]$ cat deepak.sh #! /bin/sh # reverse a string [[ -z "$@" ]] && STR=" a b c d e f g h i j k l m n o p q r s t u v w x y z " || STR="$@" len=${#STR} REV="" for (( i=$len ; i>0 ; i-- )) do ...
Explain the concept of unary and binary operator overloading giving suitable examples.
Please guys, check your answer before, I saw many of them wrong on this website. The above "binary operators" description should say this: (++ and -- are Unary by the way....) The binary operators ...
Unary operator is used to operate two operands. ex +,-,*. Mostly there are will be used only for Arithmatic operations.
Binary operators are used to operate the single operand values ex.++,--,==
which key in any windows screen is used to invoke file menu?
alt+f
alt+f
file menu can be accssd by F10 OR ALT+F