1. You specify the save details of your file in the
2. While typing in a paragraph, you will
3. The save As…. Dialog box can be used
4. When Microsoft word gets loaded, the operating screen displays a document named
5. Word offers certain ways by which you can move around in a document
6. If you click on the Undo button
7. To delete the selected sentence, we can press the following key.
8. To copy character formatting press the keys
9. 39. Word text can be make Italic by
10. 40. In word you can align the selected paragraph to its right by pressing
11. In order to create a new layer via cut, use -
12. In order to close all the documents that are open, use -
13. A Photoshop document can be searched using the ____ key combination.
14. Shortcut key to start help -
15. Shortcut key to cut a selection -
16. Tally package is developed by
17. Single Entry mode is applied for
18. We can create multiple users in tally activating
19. The shortcut used to activate calculator is
21. Who is the father of C language?
<div class="flex-shrink-0 flex flex-col relative items-end">
<div>
<div class="pt-0">
<div class="gizmo-bot-avatar flex h-8 w-8 items-center justify-center overflow-hidden rounded-full"> </div>
</div>
</div>
</div>
<div class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn">
<div class="flex-col gap-1 md:gap-3">
<div class="flex max-w-full flex-col flex-grow">
<div class="min-h-[20px] text-message flex w-full flex-col items-end gap-2 whitespace-pre-wrap break-words [.text-message+&]:mt-5 overflow-x-auto" dir="auto" data-message-author-role="assistant" data-message-id="068255a4-6efa-4944-8001-16ca5c6fd11c">
<div class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]">
<div class="markdown prose w-full break-words dark:prose-invert light">
<p>The father of the C programming language is <strong>Dennis Ritchie</strong>. He developed C in the early 1970s at Bell Labs. Dennis Ritchie’s work on C significantly influenced modern programming languages and contributed to the development of Unix, which was originally written in C.</p>
<p>His contributions laid the foundation for many languages that followed, including C++, Java, and C#. Ritchie’s C language is renowned for its efficiency and flexibility, making it a preferred choice for system-level programming and embedded systems.</p>
<p>Steve Jobs, James Gosling, and Rasmus Lerdorf are notable figures in technology but are associated with other innovations and languages.</p>
</div>
</div>
</div>
</div>
</div>
</div>
22. What is short int in C programming?
In C programming, short int is a data type where short acts as a qualifier to the basic data type int.
This combination is used to define a variable that requires less memory compared to the standard int.
Typically, short int occupies 2 bytes of memory (though this can vary depending on the system), which is less than the 4 bytes usually occupied by a standard int.
Therefore, short is the qualifier that modifies the size of the basic data type int. This allows for the efficient use of memory when working with smaller numerical ranges.
23. Which of the following typecasting is accepted by C language?
In C language, typecasting is used to explicitly convert a variable from one data type to another. The language supports both widening and narrowing conversions:
Widening conversions: Converting a smaller data type to a larger one (e.g., int to float). This is generally safe and supported in C.
Narrowing conversions: Converting a larger data type to a smaller one (e.g., float to int). This can lead to loss of data but is also supported in C.
24. Functions can return enumeration constants in C?
In C, functions can return enumeration constants. Enumerations (enums) are a user-defined data type that consists of integral constants.
When a function is declared to return an enum type, it can indeed return any of the defined enumeration constants. This is a standard feature of the C language and is not dependent on the compiler or specific standards beyond the C standard itself.
25. Which of the following are C preprocessors?
C preprocessors include directives like ‘#ifdef’,’ #define, ’and ‘#endif’, which are used to control the compilation process before the actual compilation begins.
26. Which of the following return-type cannot be used for a function in C?
All the return types listed (‘char *’, ‘struct’, and ‘void’) can be used as return types for a function in C.
27. In C language, FILE is of which data type?
All the return types listed ('char *',' struct', and 'void') can be used as return types for a function in C.
28. What will be the output of the following C code? 1. #include <stdio.h> 2. int main() 3. { 4. signed char chr; 5. chr = 128; 6. printf("%d\n", chr); 7. return 0; 8. }
When assigning 128 to a signed char, the binary representation for 128 is 1000 0000. Since the first bit is the sign bit and it's set to 1, this indicates a negative number in two's complement representation. The rest of the bits are all zeros, so the value becomes -128.
The final output of the code will indeed be -128.
29. Which of the following is not a valid C variable name?
In C, variable names cannot start with a special character like '$'. They must begin with a letter (uppercase or lowercase) or an underscore ('_'). The other options ('int number; ',' float rate; ', ' int variable_count; ') are valid variable names.
30. Which of the following cannot be a variable name in C?
In C, a) volatile cannot be used as a variable name because it is a reserved keyword in the C language.
Keywords are reserved words that have special meanings and purposes in the language, so they cannot be used as identifiers (such as variable names, function names, etc.).
31. What is the result of logical or relational expression in C?
In C, logical and relational expressions evaluate to either '0' (representing false) or '1' (representing true).
32. Where in C the order of precedence of operators do not exist?
In C, the order of precedence of operators is a fundamental aspect of the language that applies consistently across different contexts, including conditional statements ('if', 'else'), loops ('while', 'do-while'), and macro definitions.
The precedence rules are always in effect and determine how expressions are evaluated in these contexts.
33. Functions in C Language are always _________
By default, functions in C are considered external, meaning they are visible to other files (translation units) if declared as 'extern'. However, you can also have functions defined within a file that are only visible within that file, but this is not commonly referred to as "internal" in the standard terminology.
So while the term "internal" isn't standard for describing C functions, the concept of functions being external is the most accurate answer among the choices provided.
34. Property which allows to produce different executable for different platforms in C is called?
Conditional compilation in C is achieved using preprocessor directives like '#ifdef, '#ifndef', '#if', '#elif', '# else', and '#endif'.
These directives allow you to include or exclude code based on certain conditions, such as platform-specific macros, which helps in producing platform-specific executables.
35. C preprocessors can have compiler specific features.
C preprocessors can indeed have compiler-specific features.
While the C standard specifies certain preprocessor directives, different compilers may offer additional, non-standard features or extensions to the preprocessor for specific purposes or optimizations.
These compiler-specific features are not guaranteed to be portable across different compilers.
36. How many number of pointer (*) does C have against a pointer variable declaration?
In C, there is no fixed limit on the number of asterisks (*) you can use in a pointer variable declaration. You can have pointers to pointers to pointers, and so on, with as many levels of indirection as needed.
The practical limit is usually constrained by the compiler and the system's memory, rather than a fixed number.
37. Which of the following is not possible statically in C language?
In C, a jagged array (an array of arrays with varying lengths) is not possible to create statically. C requires that all dimensions of an array be specified at compile time, so all rows of a rectangular or multidimensional array must have the same length.
You can create:
Rectangular Arrays: All rows have the same number of columns.
Cuboidal Arrays: Arrays with three or more dimensions, where each dimension is of a fixed size.
However, for jagged arrays, you would need to use pointers to dynamically allocate memory to create arrays of varying lengths.
38. When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?
When a C program starts, the operating system environment is responsible for opening and providing pointers (file descriptors) for the standard files:
Standard input (stdin): For reading input.
Standard output (stdout): For writing output.
Standard error (stderr): For writing error messages.
These are pre-opened file streams available to the program from the start.
39. What is the sizeof(char) in a 32-bit C compiler?
In C, the size of 'char' is always 1 byte, regardless of the platform or compiler. On a 32-bit compiler, a byte typically consists of 8 bits, so 'sizeof(char)' is 1 byte.
40. How is search done in #include and #include “somelibrary.h” according to C standard?
In C, the '#include' directive works as follows:
'#include <somelibrary.h>': Searches for the header file in the standard directories specified by the compiler. This usually includes system or library directories.
'#include "somelibrary.h" ': Searches for the header file first in the current directory (where the source file is located). If not found, it then searches the standard directories.
This allows for more flexibility in locating header files, with '"somelibrary.h"' giving priority to the local directory.
41. The C-preprocessors are specified with _________ symbol.
In C, preprocessor directives are specified using the '#' symbol. For example, '#include', '#define', and '#if' are preprocessor directives that control the compilation process.
42. The standard header _______ is used for variable list arguments (…) in C.
The standard header '<stdarg.h>' in C is used for handling variable list arguments, also known as variable argument lists, using macros like 'va_start', 'va_arg', and 'va_end'.
43. Which of the following is not an operator in C?
All the options listed are operators or constructs in C:
1. ' , ' : The comma operator, which separates expressions.
2. ' sizeof() ' : An operator used to determine the size of a data type or object.
3. ' ~ ; : The bitwise NOT operator.
So, none of the options are incorrect in terms of being C operators.
44. scanf() is a predefined function in______header file.
'scanf()' is a predefined function in the '<stdio.h>' header file, which is part of the C standard library.
It is used for reading formatted input from standard input.
Along with 'printf()', which handles formatted output to standard output, these functions are fundamental for performing input and output operations in C programs.
45. Which of following is not accepted in C?
c) static static int a; //a static variable prefixed with static
This option is not accepted in C because the 'static' keyword cannot be repeated in this manner. The 'static' keyword is used only once to declare a static variable or function. Using 'static' twice consecutively is invalid syntax.
Here's why the other options are accepted:
a) static a = 10; //static as: This is invalid because it lacks a type specifier. The correct syntax would be 'static int a = 10';.
b) static int func(int); //parameter as static: This is technically valid; 'static' applies to the function itself, not the parameter, so this declaration is acceptable, though uncommon.
46. Which of the following is NOT possible with any 2 operators in C?
In C, if two operators have the same precedence, they must have the same associativity. Associativity determines the order of evaluation when operators of the same precedence appear in an expression.
Therefore, it is not possible for two operators with the same precedence to have different associativity.
47. What is an example of iteration in C?
In C, all the listed options are examples of iteration constructs:
'for' : Used for iterative looping with a specified number of iterations.
'while' : Repeats a block of code as long as a specified condition remains true.
'do-while' : Similar to while, but guarantees at least one iteration because the condition is checked after the block of code is executed.
Each of these constructs supports iteration in C programming.
48. Which keyword is used to prevent any changes in the variable within a C program?
The const keyword in C is used to declare a variable as constant, meaning its value cannot be changed after initialization. This keyword ensures that the variable is read-only throughout the program.
49. Which of the following declaration is not supported by C language?
In C, String is not a standard data type. The standard C language supports char, int, float, double, and other basic types but does not include String as a built-in type. For handling strings, you would typically use char arrays or pointers, such as char *str.
Here's a breakdown:
a) String str;: Not supported in C.
b) char *str;: Supported and used for string handling in C.
c) float str = 3e2;: Supported; 3e2 is a valid floating-point literal representing 300.0.
Thus, a) is the correct answer as it is not supported by C.
50. What is #include <stdio.h>?
In both C and C++, '#include <stdio.h>' is a preprocessor directive that instructs the compiler to include the contents of the 'stdio.h' header file.
Here's a summary of how it works:
Preprocessor Directive: '#include' is a preprocessor directive that operates before the actual compilation of the code begins.
Angle Brackets <>: The use of angle brackets indicates that the header file is a standard library header file located in system directories.
Contents of Header File: The 'stdio.h' header file contains declarations for standard input and output functions such as 'printf()',' scanf()', 'getchar()', and 'putchar()'.
Pre-compilation: The contents of 'stdio.h' are inserted into the source file before compilation, allowing the program to use these functions.
This inclusion allows the program to access standard I/O functions and other related definitions provided by the standard library.
51. What is meant by ‘a’ in the following C operation? fp = fopen("Random.txt", "a");
In the C standard library function ' fopen("Random.txt", "a")' , the ' "a" ' mode stands for "append." This means that data will be added to the end of the file if it exists.
If the file does not exist, it will be created. The ' "a" ' mode ensures that all write operations are done at the end of the file, preserving the existing contents.