What is the problem in the following C declarations?
int func(int); double func(int); int func(float);
invicta
Quiz
•
Education
•
University
•
Hard
sowmya lakskmi
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the problem in the following C declarations?
int func(int); double func(int); int func(float);
A function with same name cannot have different signatures
A function with same name cannot have different return types
A function with same name cannot have different number of parameters
All of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of thr following snippet?
void main()
{
for(int i=0;i<3;i++);
printf("AAC\n");
}
AAC
AAC
AAC
AAC
AAC
AAC
AAC
AAC
AAC
AAC
AAC
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this C code?
#include <stdio.h>
int main()
{
float f = 0.1;
if (f == 0.1)
printf("True");
else
printf("False");
}
true
false
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
C language was developed by ?
Dennis Rechard
Bjarne Stroustrup
Dennis M. Ritchie
Anders Hejlsberg
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
C language is a successor to which language?
B
Basic
Cobol
C++
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the datatype of the var in the below code snippet?
var = 10
print(type(var))
var = "Hello"
print(type(var))
int and str
str and str
int and int
str and int
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
a = [1, 2, 3]
a = tuple(a)
a[0] = 2
print(a)
[2,2,3]
(2,2,3)
(1,2,3)
Error
15 questions
DSA & Code Snippets
Quiz
•
University
11 questions
Python - Data Types
Quiz
•
12th Grade - University
20 questions
Quiz
Quiz
•
University
20 questions
Bio Tech Batch 1 MCQ
Quiz
•
University
10 questions
1.0 Introduction To Fundamentals Of Programming
Quiz
•
University
10 questions
C program
Quiz
•
University
10 questions
Module 1- Python Basics_2nd_Semester
Quiz
•
University
15 questions
Quiz on Data Types in C
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade