Write a C program to fill a rectangle using window scrolling
316
Write a program that accepts a string where multiple spaces
are given in between the words. Print the string ignoring
the multiple spaces.
Example:
Input: “ We Are Student “
Output: "We Are Student"
281
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS
CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS
TELL ME THE ANSWER
90
Device an algorithm for weiler-atherton polygon clipping,
where the clipping window can be any specified polygon
472
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S
LENGTH .
23
I have written a pro*C program to fetch data from the
cursor. where in i have used the concept of BULK FETCH....
each FETCH statement is taking lots of time to fetch
specified number of rows at...
hai iam working in sap sd module for one year and working
in lumax ind ltd in desp department but my problem is i
have done m.b.a in hr/marketing and working sap sd there is
any combination it. can you give right solution of my
problem. and what can i do?
Write an interactive c program that will encode or decode a
line of text. To encode a line of text, proceed as follows:
Convert each character, including blank spaces, to its
ASCII equivalent.
Generate a positive random integer. Add this integer to the
ASCII equivalent of each character. The same random integer
will be used for the entire line of text.
Suppose that N1 represents the lowest permissible value in
the ASCII code, and N2 represents the highest permissible
value. If the number obtained in step 2 above exceeds N2,
then subtract the largest possible multiple of N2 from this
number, and add the remainder to N1. Hence the encoded
number will always fall between N1 and N2, and will
therefore always represent some ASCII character.
Display the characters that correspond to the encoded ASCII
values.
The procedure is reversed when decoding a line of text. Be
certain, however, that the same random number is used in
decoding as was used in encoding.
Juxtapose the use of override with new. What is shadowing?
334
compare array with pointer?
13
in iso what are the common technological language?
102
WAP to find that given no is small or capital
33
Write a function stroverlap that takes (at least) two
strings, and concatenates them, but does not duplicate any
overlap. You only need to worry about overlaps between the
end of the first string and the beginning of the second
string.
Examples:
batman, manonthemoon = batmanonthemoon
batmmamaman, mamamanonthemoon = batmmamamanonthemoon
bat, man = batman
batman, batman = batman
batman, menonthemoon = batmanmenonthemoon
136
Define function pointers?
11
what are bit fields? What is the use of bit fields in a
structure declaration?
9
what does ‘Bus Error’ mean?
6
The OS is a program that uses various data structures. Like
all programs in execution, you can determine the
performance and other behavior of the OS by inspecting its
state - the values stored in its data structures. In this
part of the assignment, we study some aspects of the
organization and behavior of a Linux system by observing
values of kernel data structures exposed through the /proc
virtual file system.
The /proc virtual file system:
Linux uses the /proc file system to collect information
from kernel data structures. The /proc implementation
provided with Linux can read many different kernel data
structures. If you cd to /proc on a Linux machine, you will
see a number of files and directories at that location.
Files in this directory subtree each corresponds to some
kernel data structure. The subdirectories with numeric
names contain virtual files with information about the
process whose process ID is the same as the directory name.
Files in /proc can be read like ordinary ASCII files. You
can open each file and read it using library routines such
as fgets() or fscanf(). The proc (5) manual page explains
the virtual files and their content available through
the /proc file system.
Requirements in detail:
In this part, you are asked to write a program to report
the behavior of the Linux kernel. Your program should run
in two different versions. The default version should print
the following values on stdout:
• Processor type
• Kernel version
• The amount of memory configured into this computer
• Amount of time since the system was last booted
A second version of the program should run continuously and
print lists of the following dynamic values (each value in
the lists is the average over a specified interval):
• The percentage of time the processor(s) spend in
user mode, system mode, and the percentage of time the
processor(s) are idle
• The amount and percentage of available (or free)
memory
• The rate (number of sectors per second) of disk
read/write in the system
• The rate (number per second) of context switches in
the kernel
• The rate (number per second) of process creations
in the system
If your program (compiled executable) is called proc_parse,
running it without any parameter should print out
information required for the first version. Running it with
two parameters "proc_parse <read_rate> <printout_rate>"
should print out information required for the second
version. read_rate represents the time interval between two
consecutive reads on the /proc file system. printout_rate
indicates the time interval over which the average values
should be calculated. Both read_rate and printout_rate are
in seconds. For instance, proc_parse 2 60 should read
kernel data structures once every two seconds. It should
then print out averaged kernel statistics once a minute
(average of 30 samples). The second version of your program
doesn't need to terminate.