
UC_TM03_Arrays_Functions

Quiz
•
Computers, Professional Development
•
University - Professional Development
•
Hard

Koushik Thutupalli
Used 44+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
________ is a collection of variables of the same type.
Array
Constant
Variable
Literal
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is incorrect?
int x[5] ={1,2,3,4,5}
int x[]={1,2,3,4,5}
int x[]={1,2,3,4,5,6}
int x[5]={1,2,3,4,5,6}
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
what will be output?
int main() {
int x[]={1,2,3,4,5}; // Line number 1
for(int i=0;i<=5;i++){
printf("%d\n",x[i]);
}
return 0;
}
run time error
compile time error - error in line number 1
1 2 3 4 5
none of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is incorrect?
Every C program should have at least one function
A function can be called by another function
Parameter names are important while declaring a function
Call by reference and Call by value are the two methods of passing arguments
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be output of the following code?
void f1();
void f2();
int main()
{
f1();
return 0;
}
void f1()
{
f2();
printf("Welcome\n");
}
void f2()
{
printf("Hai\n");
}
Welcome
Hai
Hai
Welcome
compile time error
Welcome
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is correct way of declaring a function ?
Function with no arguments and no return value.
Function with no arguments and a return value.
Function with arguments and no return value
All of the above
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The actual and formal arguments will be created in the same memory location in ___________.of function call.
Call by value
Call by name
Call by Reference
Call by address
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Coding and Debugging

Quiz
•
University
15 questions
BASIC C QUIZ

Quiz
•
University
15 questions
module3

Quiz
•
University
20 questions
Test Final

Quiz
•
University
20 questions
แบบทดสอบภาษาซี

Quiz
•
Professional Development
15 questions
C++ Quiz-1

Quiz
•
University
20 questions
BS TEST2

Quiz
•
University
20 questions
HACKATHON HUSTLE(ROUND 2)

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
15 questions
Fun Random Trivia

Quiz
•
Professional Development