Lab 2 Activity

Lab 2 Activity

University

10 Qs

quiz-placeholder

Similar activities

C PROGRAMMING

C PROGRAMMING

University

15 Qs

HTML PHP C++

HTML PHP C++

University

10 Qs

Java Quiz

Java Quiz

University

10 Qs

Operator Quiz

Operator Quiz

University

10 Qs

C++ Programming Language

C++ Programming Language

University

12 Qs

Haskell Quiz

Haskell Quiz

University

8 Qs

Round 3

Round 3

University

11 Qs

Dasar C-Kelas B

Dasar C-Kelas B

University

10 Qs

Lab 2 Activity

Lab 2 Activity

Assessment

Quiz

Other

University

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?