TechZoom24-BugBash_Prelims
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
PANCHAMI (RA2332241010031)
Used 2+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a valid C variable name?
float rate;
int variable_count;
int $main;
int number;
Answer explanation
The variable name int $main; is not valid in C because it contains a special character ($). Variable names in C cannot start with special characters.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements best explains why C is not considered a platform-independent programming language?
C does not have a standard specification.
C programs cannot be compiled on different operating systems.
C code is not capable of running on embedded systems.
C code may rely on platform-specific features and behaviors.
Answer explanation
C code may rely on platform-specific features and behaviors, making it not considered a platform-independent programming language.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is #include ?
Preprocessor directive
Inclusion directive
File inclusion directive
None of the mentioned
Answer explanation
The correct choice is 'Preprocessor directive' because #include is used in C/C++ to include the contents of another file during compilation.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is meant by 'a' in the following C operation? fp = fopen("Random.txt", "a");
Attach
Append
Apprehend
Add
Answer explanation
The 'a' in the fopen() function stands for 'Append', which means the file will be opened for writing at the end of the file, preserving the existing content.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C code?
Compile time error
Hello World! 34
Hello World! 1000
Hello World! followed by a junk value
Answer explanation
The correct answer is 'Compile time error' because the code is missing the 'main' function which is required in C programs.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What are mandatory parts in the function declaration in c?
return type, function name
return type, function name, parameters
parameters, function name
parameters, variables
Answer explanation
The mandatory parts in a function declaration in C are the return type and the function name.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is more effective while calling the functions?
call by value
call by reference
call by pointer
call by object
Answer explanation
Call by reference is more effective while calling functions as it allows the function to directly access and modify the original data without making a copy.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Python Recap
Quiz
•
7th Grade - University
20 questions
IT Essential UIUX Chapter 1 & 2
Quiz
•
University
20 questions
STM 2013 : FORMATIF T3-FORM & REPORT
Quiz
•
University
20 questions
Chapter 3: Strategic Initiatives for implementing CA
Quiz
•
University
20 questions
From Binary To Denary Conversion - IGCSE
Quiz
•
7th Grade - Professio...
20 questions
DWDM-2
Quiz
•
University
20 questions
PC Safety and Maintenance
Quiz
•
University
20 questions
Kiến thức về Thuật toán và Chương trình
Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
