Who is the father of C language?

C programming Quiz

Quiz
•
Computers
•
1st Grade
•
Medium
Sheetal Patil
Used 7+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Steve Jobs
James Gosling
Dennis Ritchie
Rasmus Lerdorf
Answer explanation
Dennis Ritchie
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which of the following does not initialize ptr to null (assuming variable declaration of a as int a=0;)?
int *ptr = &a;
int *ptr = &a – &a;
int *ptr = a – a;
All of the mentioned
Answer explanation
int *ptr = &a;
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following C code?
#include <stdio.h>
int x = 0;
void main()
{
int *ptr = &x;
printf("%p\n", ptr);
x++;
printf("%p\n ", ptr);
}
Same address
Different address
Compile time error
Varies
4.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 0;
int *ptr = &x;
printf("%d\n", *ptr);
}
Address of x
Junk value
0
Run time error
5.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
#include <stdio.h>
int main()
{
char str[10] = "hello";
char *str1 = "world";
strncat(str, str1, 9);
printf("%s", str);
}
helloworld
Undefined behaviour
helloworl
hellowor
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Strcat() function adds null character
Only if there is space
Always
Depends on the standard
Depends on the compiler
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword can be used for coming out of recursion?
break
return
exit
both break and return
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Tipe Data dalam Basisdata

Quiz
•
1st - 12th Grade
12 questions
C++15лекция

Quiz
•
1st - 5th Grade
14 questions
Data Types in Python

Quiz
•
1st - 5th Grade
10 questions
Q3 ADT ArrayList

Quiz
•
1st Grade
10 questions
Competitive Programming

Quiz
•
1st Grade
10 questions
Quiz ComPro 18-12-66

Quiz
•
1st Grade
15 questions
Python Basics

Quiz
•
KG - University
15 questions
Основы языка C

Quiz
•
1st Grade
Popular Resources on Quizizz
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
Discover more resources for Computers
10 questions
American Flag

Quiz
•
1st - 2nd Grade
10 questions
Identifying equations

Quiz
•
KG - University
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
•
1st - 3rd Grade
15 questions
Music 2016

Quiz
•
KG - 12th Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
44 questions
logos

Quiz
•
KG - University
20 questions
Guess that Disney

Quiz
•
KG - 5th Grade
20 questions
Cartoon Characters!

Quiz
•
KG - 5th Grade