NEW
Font size
WorksheetsFoundation_Batch_2025
Total questions: 40
Worksheet time: 38mins
Who is the father of Computers?
James Gosling
Charles Babbage
Dennis Ritchie
Bjarne Stroustrup
Which of the following is the correct abbreviation of COMPUTER?
Commonly Occupied Machines Used in Technical and Educational Research
Commonly Operated Machines Used in Technical and Environmental Research
Commonly Oriented Machines Used in Technical and Educational Research
Commonly Operated Machines Used in Technical and Educational Research
What does the acronym RAM stand for in computing?
Random Access Memory
Read Access Memory
Rapid Access Memory
Run Access Memory
Which programming language is known as the mother of all languages?
Python
C
Java
Assembly
What is the primary function of an operating system?
To manage hardware and software resources
To compile programming code
To provide internet connectivity
To design user interfaces
Which of the following language does the computer understand?
Computer understands only C Language
Computer understands only Assembly Language
Computer understands only Binary Language
Computer understands only BASIC
What is the main purpose of a compiler?
To convert high-level code to machine code
To provide a user interface
To manage system resources
To execute code directly
Actual instructions in flowcharting are represented in __________
Circles
Boxes
Arrows
Lines
Who is the father of C language?
Steve Jobs
James Gosling
Dennis Ritchie
Rasmus Lerdorf
What is #include <stdio.h>?
Preprocessor directive
Inclusion directive
File inclusion directive
None of the mentioned
#include <stdio.h>
int main()
{
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
return 0;
}
Compile time error
Hello World! 34
Hello World! 1000
Hello World! followed by a junk value
#include <stdio.h>
int main()
{
int main = 3;
printf("%d", main);
return 0;
}
It will cause a compile-time error
It will cause a run-time error
It will run without any error and prints 3
It will experience infinite looping
#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
printf("%d",x);
}
3.75
Depends on compiler
24
3
What is the purpose of the main function in a C program?
To execute system commands
To define the entry point of the program
To declare global variables
To include libraries
Which of the following is a valid variable name in C?
1stVariable
first_variable
first-variable
first variable
What does the acronym CPU stand for?
Central Processing Unit
Computer Personal Unit
Centralized Processing Unit
Computer Processing Unit
What is the main purpose of an algorithm?
To provide a step-by-step solution to a problem
To store data efficiently
To manage hardware resources
To create user interfaces
'\n' is used for
New line
Same line
Both
non of these
The format identifier ‘%d’ is used for _____ data type.
int
char
float
double
Which of the following is a characteristic of high-level programming languages?
Machine dependent
Human-readable
Requires assembly
Only for system programming
What is the output of the following code snippet?int a = 10; int b = 20; printf("%d", a + b);
Compilation error
10
20
30
Which of the following data types can store decimal values in C?
char
int
float
string
which function is used to display text in O/P window?
print();
printe();
printf()
printg();
int x=176%10;
what is the value of x?
1
7
6
0
What is the out put of the following C code?
#include <stdio.h>
int main()
{
int i = -3;
int k = i % 2;
printf("%d\n", k);
}
Compile time error
1
-1
None
What will be the output of the following C code?
int main()
{
int i = 3;
int l = i / -2;
int k = i % -2;
printf("%d %d\n", l, k);
return 0;
}
Compile time error
-1 , 1
1 , -1
None of these
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 5;
i = i / 3;
printf("%d\n", i);
return 0;
}
Compilation Error
1
3
2
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int y = 3;
int x = 5 % 2 * 3 / 2;
printf("Value of x is %d", x);
}
1
2
3
4
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int a = 10;
double b = 5.6;
int c;
c = a + b;
printf("%d", c);
}
15
15.6
16
16.6
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int a = 10, b = 5, c = 5;
int d;
d = a == (b + c);
printf("%d", d);
}
1
10
5
Compilation Error
Which of the following is not a valid variable name declaration?
int _a3;
int _3a;
int _A3;
None of the mentioned
To accept any input from the user we use ____?
scand()
scanf()
scane()
scang()
What is the format specifier for printing a float value using printf()?
%d
%f
%lf
%c
What does a diamond-shaped symbol represent in a flowchart??
Input/Output
Process
Decision
Connector
Which symbol is used to represent the start or end in a flowchart?
Rectangle
Circle
Oval
Diamond
What does the following flowchart do?
mathematica
CopyEdit
Start → Input A, B → Sum = A + B → Print Sum → End
Finds product of A and B
Finds Sum of A and B
Finds mod of A and B
None of these
What does a rectangle represent in a flowchart?
Input/Output
Connector
Process/Operation
Decision
Which component is NOT part of a flowchart?
Input/Output
Decision
Data table
Process
Which is the correct syntax for using scanf() to input an integer?
A) scanf("%d", a);
scanf("%d", &a);
scanf("%d", *a);
scanf("%d", #a);
What will happen in the following code?
int x;
scanf("%d", x);
Input will be taken correctly
Compilation error
Runtime error or unexpected behavior
It will store a float value
