
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
20 questions
C programming syntax quiz

Quiz
•
University
18 questions
Programming in C language

Quiz
•
12th Grade - University
20 questions
CCE-III Programming in C Language

Quiz
•
University
15 questions
Java Method

Quiz
•
University
20 questions
C-Quest

Quiz
•
Professional Development
20 questions
SPARK FIDDLE

Quiz
•
Professional Development
11 questions
Basics of JAVA

Quiz
•
University
13 questions
C programming-1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University