SlideShare ist ein Scribd-Unternehmen logo
1 von 4
Downloaden Sie, um offline zu lesen
KNOW YOUR CODING SKILLS

DEMO TEST
Name : ………………………………….. Class: ………….. Date : ………………..
Total Questions: 20

Max. Time : 30 Minutes

Note: 1 Mark for right answer and -0.25 mark for Wrong Answer.

Q.1 Which of the following special symbol allowed in a variable name?
A.

* (asterisk)

B.

| (pipeline)

C.

- (hyphen)

D.

_ (underscore)

Q.2 Point Out The error in the following program.
#include<stdio.h>
int main()
{
display();
return 0;
}
void display()
{
printf("Know Your Coding Skills");
}
A. No error

B. display() doesn't get invoked.

C. display() is called before it is defined

D. None of these

Q.3 What is the name of the man who is invented to c?
A. Charles Babbage
C. Dennis & Ritchie

B. Dennis Ritchie
D. None

Q.4 what will be the output?
main()
{ int n=125,sum=0,res ;
while(n>0)
{
res=n%10; sum +=res; n/=10;
}
printf("Sum is %d",sum);
}
a) error

b)8

Q.5 What will be the output?
main()
{

c)7

d) none
KNOW YOUR CODING SKILLS
int a=9;
if(a=5){
printf("Bye");
}
printf("Welcome");}
A. error
C. welcome

B. compile failed
D. Bye

Q.6 Which one is the correct order of evaluation for the below expression?
z=x+y*z/4%2-1
A. * / % + - =
C. / * % - + =

B. = * / % + D. * % / - + =

Q.7 What will be the output of printf("n");
A. n

B.  n

C. error

D. none

Q.8 In C , the execution of the program starts from ?
A. the firstly defined function

B. main( ) function

C . the lastly defined function

D. none of these

Q.9 How many time the following function be called
main( )
{
int j;
j=10;
fun(j);
}
fun(int j)
{
if( j !=5)
fun( j-1 );
}

A.10 times

B.5 times

C.6 times

D.Infinite loop

Q.10. C++ was invented by
A. Donald Drum
C. Bjarne Stroustrup

B. Ken Thompson
D. Dennis Ritchie
KNOW YOUR CODING SKILLS

Q.11. Find out the error in following block of code.
If (x = 100)
Cout << “x is 100”;
A. 100 should be enclosed in quotations
B. There is no semicolon at the end of first line
C. Equals to operator mistake
D. Variable x should not be inside quotation

Q12. C provides loop constructs for performing loop operations. They are

A. The WHILE statement
C. The FOR statement

B. The DO statement
E. None of above

D. All of above

Q.13.What will this program display?
#include <stdio.h>
main()
{
float f;
f=10/3;
printf ("%d",f);
}

A. 3.3

B. 3.0

C. 3

D. 0

Q.14. The traditional way to create an infinite loop in C is

A. FOR ( ; ; )…
D. All of above

B. IF (=) BREAK;

C. WHILE ()…
E None of above

Q.15 The comma operator (,) is primarily used in conjunction with

A.FOR statement
D. All of above

B.IF-ELSE statement

C.DO-While statement
E. None of above

Q.16. Overloaded functions are
A.

Very long functions that can hardly run

B..

One function containing another one or more functions inside it.

KNOW YOUR CODING SKILLS

C.
Two or more functions with the same name but different number of parameters or
type.
D.

None of above

Q.17 What is the output of code given below?
#include<stdio.h>
main()
{
const int i =4;
float j;
j = ++i;
printf(“ %d",i++);
}
A.5

B. 6

C. 4

D. Compiler error

Q.18 Which of the following can not be used as Identifier ?
A.Letters

B.Digits

Q.19 In an assignment statement

C.Underscores

D Spaces

a=b; Which of the following statement is true?

A. The variable a and the variable b are equal.
B. The value of b is assigned to variable a but the later changes on variable b will not
effect the value of variable a
C. The value of b is assigned to variable a and the later changes on variable b will effect
the value of variable a
D. The value of variable a is assigned to variable b and the value of variable b is assigned
to variable a.

Q.20 Evaluate ! (1&&!(0||1)).

A. True

B. False

C. Unevaluatable

D. 0

Weitere ähnliche Inhalte

Mehr von manish katara

Some important tips for control systems
Some important tips for control systemsSome important tips for control systems
Some important tips for control systemsmanish katara
 
Electronics ckts symbols
Electronics ckts symbolsElectronics ckts symbols
Electronics ckts symbolsmanish katara
 
Ece interview questions with answers
Ece interview questions with answersEce interview questions with answers
Ece interview questions with answersmanish katara
 
ppt on embedded system
ppt on embedded systemppt on embedded system
ppt on embedded systemmanish katara
 
embedded system report
embedded system reportembedded system report
embedded system reportmanish katara
 
Syllabuswise analyse of gate
Syllabuswise analyse of gate Syllabuswise analyse of gate
Syllabuswise analyse of gate manish katara
 
Gate ece question paper with answers 2011
Gate ece question paper with answers 2011Gate ece question paper with answers 2011
Gate ece question paper with answers 2011manish katara
 
Gate 2013 complete solutions of ec electronics and communication engineering
Gate 2013 complete solutions of ec  electronics and communication engineeringGate 2013 complete solutions of ec  electronics and communication engineering
Gate 2013 complete solutions of ec electronics and communication engineeringmanish katara
 
Final ppt w o optical fiber
Final ppt w o optical fiberFinal ppt w o optical fiber
Final ppt w o optical fibermanish katara
 
3 broadband servies-250611
3 broadband servies-2506113 broadband servies-250611
3 broadband servies-250611manish katara
 
Fina lindustrial tour report
Fina lindustrial tour reportFina lindustrial tour report
Fina lindustrial tour reportmanish katara
 
New final bsnl training report
New final bsnl training report New final bsnl training report
New final bsnl training report manish katara
 

Mehr von manish katara (20)

Some important tips for control systems
Some important tips for control systemsSome important tips for control systems
Some important tips for control systems
 
Electronics ckts symbols
Electronics ckts symbolsElectronics ckts symbols
Electronics ckts symbols
 
Ece interview questions with answers
Ece interview questions with answersEce interview questions with answers
Ece interview questions with answers
 
ppt on embedded system
ppt on embedded systemppt on embedded system
ppt on embedded system
 
all india radio
 all india radio all india radio
all india radio
 
embedded system report
embedded system reportembedded system report
embedded system report
 
1 6
1 61 6
1 6
 
Ch05
Ch05Ch05
Ch05
 
Syllabuswise analyse of gate
Syllabuswise analyse of gate Syllabuswise analyse of gate
Syllabuswise analyse of gate
 
Os
OsOs
Os
 
Gate ece question paper with answers 2011
Gate ece question paper with answers 2011Gate ece question paper with answers 2011
Gate ece question paper with answers 2011
 
Gate 2013 complete solutions of ec electronics and communication engineering
Gate 2013 complete solutions of ec  electronics and communication engineeringGate 2013 complete solutions of ec  electronics and communication engineering
Gate 2013 complete solutions of ec electronics and communication engineering
 
Pcm
PcmPcm
Pcm
 
Final ppt w o optical fiber
Final ppt w o optical fiberFinal ppt w o optical fiber
Final ppt w o optical fiber
 
3 broadband servies-250611
3 broadband servies-2506113 broadband servies-250611
3 broadband servies-250611
 
Final ppt
Final pptFinal ppt
Final ppt
 
Fina lindustrial tour report
Fina lindustrial tour reportFina lindustrial tour report
Fina lindustrial tour report
 
Gsm overview
Gsm overviewGsm overview
Gsm overview
 
New final bsnl training report
New final bsnl training report New final bsnl training report
New final bsnl training report
 
Gate college
Gate collegeGate college
Gate college
 

Kürzlich hochgeladen

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Kürzlich hochgeladen (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Test for computer languages

  • 1. KNOW YOUR CODING SKILLS DEMO TEST Name : ………………………………….. Class: ………….. Date : ……………….. Total Questions: 20 Max. Time : 30 Minutes Note: 1 Mark for right answer and -0.25 mark for Wrong Answer. Q.1 Which of the following special symbol allowed in a variable name? A. * (asterisk) B. | (pipeline) C. - (hyphen) D. _ (underscore) Q.2 Point Out The error in the following program. #include<stdio.h> int main() { display(); return 0; } void display() { printf("Know Your Coding Skills"); } A. No error B. display() doesn't get invoked. C. display() is called before it is defined D. None of these Q.3 What is the name of the man who is invented to c? A. Charles Babbage C. Dennis & Ritchie B. Dennis Ritchie D. None Q.4 what will be the output? main() { int n=125,sum=0,res ; while(n>0) { res=n%10; sum +=res; n/=10; } printf("Sum is %d",sum); } a) error b)8 Q.5 What will be the output? main() { c)7 d) none KNOW YOUR CODING SKILLS
  • 2. int a=9; if(a=5){ printf("Bye"); } printf("Welcome");} A. error C. welcome B. compile failed D. Bye Q.6 Which one is the correct order of evaluation for the below expression? z=x+y*z/4%2-1 A. * / % + - = C. / * % - + = B. = * / % + D. * % / - + = Q.7 What will be the output of printf("n"); A. n B. n C. error D. none Q.8 In C , the execution of the program starts from ? A. the firstly defined function B. main( ) function C . the lastly defined function D. none of these Q.9 How many time the following function be called main( ) { int j; j=10; fun(j); } fun(int j) { if( j !=5) fun( j-1 ); } A.10 times B.5 times C.6 times D.Infinite loop Q.10. C++ was invented by A. Donald Drum C. Bjarne Stroustrup B. Ken Thompson D. Dennis Ritchie KNOW YOUR CODING SKILLS Q.11. Find out the error in following block of code.
  • 3. If (x = 100) Cout << “x is 100”; A. 100 should be enclosed in quotations B. There is no semicolon at the end of first line C. Equals to operator mistake D. Variable x should not be inside quotation Q12. C provides loop constructs for performing loop operations. They are A. The WHILE statement C. The FOR statement B. The DO statement E. None of above D. All of above Q.13.What will this program display? #include <stdio.h> main() { float f; f=10/3; printf ("%d",f); } A. 3.3 B. 3.0 C. 3 D. 0 Q.14. The traditional way to create an infinite loop in C is A. FOR ( ; ; )… D. All of above B. IF (=) BREAK; C. WHILE ()… E None of above Q.15 The comma operator (,) is primarily used in conjunction with A.FOR statement D. All of above B.IF-ELSE statement C.DO-While statement E. None of above Q.16. Overloaded functions are A. Very long functions that can hardly run B.. One function containing another one or more functions inside it. KNOW YOUR CODING SKILLS C. Two or more functions with the same name but different number of parameters or type.
  • 4. D. None of above Q.17 What is the output of code given below? #include<stdio.h> main() { const int i =4; float j; j = ++i; printf(“ %d",i++); } A.5 B. 6 C. 4 D. Compiler error Q.18 Which of the following can not be used as Identifier ? A.Letters B.Digits Q.19 In an assignment statement C.Underscores D Spaces a=b; Which of the following statement is true? A. The variable a and the variable b are equal. B. The value of b is assigned to variable a but the later changes on variable b will not effect the value of variable a C. The value of b is assigned to variable a and the later changes on variable b will effect the value of variable a D. The value of variable a is assigned to variable b and the value of variable b is assigned to variable a. Q.20 Evaluate ! (1&&!(0||1)). A. True B. False C. Unevaluatable D. 0