Input And Output in C
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Chi Quang
Used 13+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A format specifier does what?
specifies the format of input or output
specifies the format of input only
specifies the format of output only
specifies the format of your hard drive
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which format specifier is often used to print integers?
%c
%d
%f
%x
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a valid way to accept user input in the form of an integer value and store it in a variable named entry?
scanf(%d, &entry);
scanf("%s", &entry);
scanf("%d", &entry);
scanf(%s, &entry);
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Assume we've used a float variable to store a price in dollars that we want to display in standard currency format (ex. $3.75). Which of the following uses printf() to correctly display that price?
printf("Price: $%d", price);
printf(Price: $%f, price);
printf("Price: $", %f, price);
printf("Price: $%f", price);
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
To print out a and b given below, which of the following printf() statement will you use?
#include<stdio.h>
float a=3.14;
double b=3.14;
printf("%f %lf", a, b);
printf("%Lf %f", a, b);
printf("%Lf %Lf", a, b);
printf("%f %Lf", a, b);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
To scan a and b given below, which of the following scanf() statement will you use?
#include<stdio.h>
float a;
double b;
scanf("%f %f", &a, &b);
scanf("%Lf %Lf", &a, &b);
scanf("%f %Lf", &a, &b);
scanf("%f %lf", &a, &b);
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the program if value 25 given to scanf()?
25
2.5
1
0
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Kiểm tra 15 phút Tin học 10 - DA - Bài 26,27,28
Quiz
•
10th Grade - University
12 questions
ロジックテスト (Đề kiểm tra năng lực IT)
Quiz
•
University
10 questions
Asesment Informatika
Quiz
•
University
10 questions
Repaso teoría 1er Parcial - SISOP UTN-FRBA
Quiz
•
University
15 questions
Peliculas
Quiz
•
University
10 questions
KUIS PERTEMUAN KE-15
Quiz
•
University
10 questions
Struktur dan pemrosesan data
Quiz
•
University
12 questions
Quiz PTI Multimedia 23/24 Pertemuan 3-4
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
