NEW
Font size
WorksheetsC PROGRAMMING -II INTERNALS EXAMINATIONS - SEP 2021
Total questions: 50
Worksheet time: 27mins
What will be the output of the C code?
Hello World! x;
Hello World! followed by a junk value
Compile time error
Hello World!
The format identifier ‘%i’ is also used for _____ data type.
char
int
float
double
What will be the output of the following C code?
2
8
9
10
#include statement must be written __________
Before main()
Before any scanf() / printf()
After main()
It can be written anywhere
What will happen when the following code is executed?
void main()
{
printf("MIET");
main();
}
Wrong statement
It will keep on printing MIET
It will print MIET once
None of these
Which of the following is not a correct variable type?
int
real
float
char
What punctuation is used to signal the beginning and end of code blocks?
{ }
-> and <-
BEGIN and END
( and )
The "\n" character does which of the following operations?
Double line spacing
Character deletion
Character backspace
Places cursor on the next line
Is the syntax for the following C statement correct?:
scanf("%d", input);
True
False
The compiler ignores comments and they are not translated into machine language.
True
False
C language developed at _____?
AT & T's Bell Laboratories of USA in 1972
AT & T's Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
Is it possible to run program without main() function?
yes
no
may be
Who is Father of C Language
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
C programs are converted into machine language with the help of
An Editor
A compiler
An operating system
None of these.
Which one of the following is not a valid identifier?
_examveda
1examveda
exam_veda
examveda1
A name having a few letters, numbers and special character _(underscore) is called
keywords
reserved keywords
tokens
identifiers
Which of the following is not a valid variable name declaration?
int a3;
int 3a;
int _A3;
int a_3
All keywords in C are in ____________
Lowercase
Uppercase
Camelcase
None of these
A translator which reads an entire program written in a high level language and converts it into machine language code is:
Assembler
Compiler
Linker
Loader
Diamond shaped symbol is used in flowcharts to show the-
decision box
statement box
error box
if-statement box
Which is correct with respect to size of the data types?
char > int > float
int > char > float
char < int < double
double > char > int
Which is valid C variable declarations?
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
The functions printf() and scanf() are defined in which of the following library file:-
math.h
conio.h
stdio.h
stdlib.h
#include <stdio.h>
void main()
{
int k = 4;
float k = 4;
printf("%d", k)
}
A.
4
4.000000
No output
Compile time Error
What will be the output of the following program?
#include <stdio.h>
int main()
{
float c = 5.0;
printf ("Temperature in Fahrenheit is %.2f", (9/5)*c + 32);
return 0;
}
Temperature in Fahrenheit is 41.00
Temperature in Fahrenheit is 37.00
Temperature in Fahrenheit is 0.00
Compiler Error
Who developed C language
Dennis Ritchie
Bill Gates
Dennis Lilly
Stephen
Which is variable declaration?
int a,b;
c=a+b;
printf("%d%d",a,b)
scanf("%d%d",&a,&b);
how to print a and b variable of int and float respectively
scanf("%d%f",&a,&b);
printf("%d%f",a,b);
printf("%f%d",&a,&b);
printf("%f%d",&a,&b);
1. What will be the output of the following C code?
No Output
TESTING
Compiler error
None of the above
The process of removing a bug is known as
Debugging
Compilation
Executing
Running
Every C Program Statement must be terminated with a
.
#
;
!
n the following which one is not a C keyword?
Choice
Case
For
Volatile
What does the following code fragment write to the monitor?
Under
Over
Under the limit
Over the limit
Program is a list of_______________, written in a _______________________ to determines the behaviour of a machine.
word, english
instructions , programming language
instructions, word
A flowchart is a graphical representation that helps programmer to develop algorithms in programming.
True
False
Process of writing the C source code is called as ___________________
Editing
LInking
Executing
C programming consists of two section which are _________________ and ___________________
Pre-processor directives ; Main function
Pre-processor directives ; end statement
statements ; Main function
#include<stdio.h> is important line in c. The stdio.h contains information on input output routines.
True
False
