
Lab 2 Activity

Quiz
•
Other
•
University
•
Medium

Saif Eldeen Radwan
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first line of a C program that includes the standard I/O library?
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a basic component of a C program?
Preprocessor commands
Functions
Variables
HTML tags
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for declaring an integer variable in C?
int var;
integer var;
var int;
variable int;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data type is used to store floating-point numbers in C?
int
char
float
void
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following statement?
printf("Hello World!");
HelloWorld!
Hello World!
"Hello World!"
Compilation Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which format specifier is used to read an integer input in C?
%d
%c
%f
%s
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the range of a signed 2-byte integer in C?
0 to 65535
-32768 to 32767
-65535 to 65535
-127 to 128
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Web Dev

Quiz
•
University
15 questions
Quize on c language and html

Quiz
•
University
10 questions
Bài tập biến mảng

Quiz
•
1st Grade - University
10 questions
funciones en c++

Quiz
•
University
15 questions
Technoquiz..3

Quiz
•
University
12 questions
C++ Programming Language

Quiz
•
University
15 questions
Object Oriented Programming Language Quiz 3

Quiz
•
University
15 questions
DEPTH DIVE

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade