Guess the output of the following code:

FT1 Basics of C

Quiz
•
Computers
•
University
•
Hard
Girirajan S
Used 3+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.500000
2.000000
2
Compilation Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times will the loop execute?
4
5
6
Infinite times
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare an integer pointer is
int ptr;
int *ptr;
ptr *int;
int &ptr;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of the following code is:
10
15
20
40
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This function returns ---------
Fibonacci sequence
Factorial of n
Sum of first n numbers
Power of n
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output of the following code is:
True
False
Error
Undefined Behaviour
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
3.14
3.140000
3.1
Error
Create a free account and access millions of resources
Similar Resources on Quizizz
26 questions
C Language Basics

Quiz
•
University
26 questions
String in C Programming

Quiz
•
University
25 questions
GNIDOC ROUND 1

Quiz
•
University
25 questions
C- Geniusia

Quiz
•
University
25 questions
Python Module 1

Quiz
•
University
25 questions
C/C++ Programming Quiz

Quiz
•
University
25 questions
Latihan soal Algoritma dan Pemrograman

Quiz
•
University
25 questions
Compro. Final 1/64 part1

Quiz
•
University
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